Log in
Model

Visitor

Magento\Customer\Model\ResourceModel\Visitor

What it does

This resource model manages database operations for the customer_visitor table in Magento 2, which tracks visitor session data.

Developers use this class to save visitor information, clean up outdated visitor records based on a time threshold, and retrieve or update visitor session creation timestamps.

It's primarily used by Magento's customer tracking system to monitor site visitors and maintain session history.

Public Methods

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