Event
Magento\Reports\Model\Event
What it does
This model class tracks and manages customer behavior events in Magento 2's reporting system, such as product views, cart additions, wishlist actions, and product comparisons.
Developers use it to log customer interactions for analytics and reporting purposes, and to update event records when visitors convert to logged-in customers.
It provides methods to record events with timestamps, associate them with customers after login, and clean up old event data.
Public Methods
- beforeSave()
- updateCustomerType()
- clean()