Event
Magento\Reports\Model\ResourceModel\Event
What it does
This resource model manages the report_event table which tracks customer and visitor interactions with Magento stores (like product views, comparisons, wishlists).
Developers use this class to log user activities, apply event filters to collections for features like 'recently viewed products', and maintain event data by cleaning orphaned visitor records.
It handles store-scope configurations to determine which events are relevant based on website, store group, or individual store context.
Public Methods
- updateCustomerType()
- applyLogToCollection()
- getCurrentStoreIds()
- clean()