Storefront Views
Track page views and product views.
Updated
On this page
Overview
Track page views and product visits on your storefront. DashForDevs provides built-in analytics with optional integration to PostHog and Google Analytics.
Initialize Tracking
import dash from "@/lib/dash"
const { active } = await dash.tracking.init()
// Initializes session tracking