New Shopify Certification now available: Liquid Storefronts for Theme Developers

Setting up Cross Domain Tracking for a Headless Shopify Store

Shopify Partner
3 0 1

Hi there! So we have created 3 stores powered by Shopify in the backend & Next.js on the front-end. We run Search & Social ads so our issue is that all purchases source & medium are going to direct/none in Google Analytics 4 when we know they are coming from paid traffic.

Take a look at for instance. This is the link for the checkout button:

And when we click on the checkout button, it redirects here: We basically lose the parameters.

We've reached out to Shopify Support with no success. Could anyone explain the issues we are experiencing? Has anyone successfully integrated cross domain tracking with a Headless Shopify Store?

Reply 1 (1)
1 0 0

I have had the same issue, and they wouldn't help either. I setup Google Tag Manager manually. And then I have a custom app using the Webhook order/create to send event back to GTM. Apparently the new pixels they have, are supposed to be supported in Headless, soon and that will solve big issues, that was my solution for now.