Video tutorial · Start here

Headless Shopify tracking explained: consent, IDs and checkout

2 minOctober 2026By John BernalWatch on YouTube
In shortGoing headless splits your tracking in two. A headless store is really two websites: your custom storefront and Shopify's checkout. If they don't share the same IDs and consent, your ad platforms see sales without knowing which ad brought them. This video gives the plan in four core steps plus two optional upgrades.

Chapters

The plan

  1. Consent first: one consent choice that both the storefront and the checkout respect.
  2. Catch the IDs: keep click IDs and visitor IDs from the first page view.
  3. Storefront events: product views, add to cart and other browsing events from your custom front end.
  4. The checkout: purchases from Shopify's checkout, tied back to the same IDs.
  5. Upgrade: one front door for your data, on your own domain (for example store.com/data).
  6. Upgrade: track subscription renewals that happen with no browser involved.

Common questions

Why do headless stores lose attribution?

The storefront and the checkout run on different systems. Unless IDs and consent are passed between them, the purchase arrives without the information that links it to the ad click.

JB
John Bernal

Tracking and analytics consultant with 10+ years setting up GA4, Google Tag Manager, server-side tracking and ad platform conversions. Stape partner, Top Rated Plus on Upwork. About AnalyticsEngine

Related videos

Rather have someone set it up and keep it working?

Tracking & Analytics Ops is $500 a month per website. I set up your tracking, check it every day, fix what breaks and answer your analytics questions. AI does the daily checks; I make every decision.