Track Hydrogen page views with Shopify analytics

This tutorial shows you how to track page view events in Hydrogen and send the data to Shopify analytics.

Tracking page view events relies on collecting analytics from Remix loader functions. On each page load, Remix runs all of the loader functions required to render the page. Within those functions, you can return relevant analytics data about the rendered page.