Hi all,
We have a headless storefront (Next.js) with Shopify handling checkout. We need to add tracking to the checkout and order confirmation pages.
We set up a custom pixel that tries to load GTM on the script, but it doesn’t initialize on the checkout pages. Tag Assistant confirms “No Google tags found” on those pages, even though the pixel is connected and running.
When we use gtag.js directly instead of GTM, tracking works fine — we see begin_checkout, purchase, and add_payment_info in GA4 Realtime. So the pixel fires correctly, it’s just that
GTM itself won’t load in the sandbox.
What’s the recommended way to get GTM working on Shopify checkout pages? Is there something we’re missing, or is GTM not supported in the custom pixel sandbox?
Thanks!