Log in
Model

Visitor

Magento\Customer\Model\ResourceModel\Visitor

What it does

This resource model manages database operations for customer visitor tracking in Magento 2.

Developers use it to record and manage visitor sessions, including cleaning up old visitor records, retrieving visitor creation timestamps, and updating session data.

It's essential for tracking customer browsing activity and maintaining visitor history in the customer_visitor database table.

Public Methods

  • clean()
  • fetchCreatedAt()
  • updateCreatedAt()