Event tracking with Headless (Shopify Hydrogen)
Event tracking with Headless (Shopify Hydrogen)
It’s crucial that you track touchpoints to analyze storefront performance, create reports, and power Coveo Machine Learning (Coveo ML) models. You can do this by sending events to the Coveo Usage Analytics (Coveo UA) service.
If you use Coveo Headless to build your product discovery solutions, track events using dedicated Headless controllers. These controllers automatically log specific commerce events, such as when a user makes a purchase or adds a product to a cart.
Headless commerce controllers rely on the Event Protocol to log events.
The following table shows the types of events to track and the corresponding controllers.
|
Note
The Coveo app web pixel automatically logs purchase events for you. If you’re not using the app, implement your own web pixel. |