Skip to main content
Legacy Hydrogen

These pages refer to Hydrogen versions 2026-04 and earlier. For versions 2026-10 and later, refer to the latest Hydrogen docs. If you're not using the latest version of Hydrogen, then we recommend that you migrate your storefront. To learn more, refer to Migrate to the latest version of Hydrogen.

Analytics with Hydrogen and Oxygen

Hydrogen provides recommended patterns for collecting and transmitting website metrics to Shopify analytics, which enables you to view metrics in real time, directly in the Shopify admin.


Before you can track analytics on your Hydrogen storefront, ensure you comply with customer consent regulations.


Anchor to Tracking analytics eventsTracking analytics events

Analytics is built into Hydrogen, but you can implement it manually if required. You should also check that it's working as expected.


Was this page helpful?