We are currently trying to set up our google tag manager to track sign up conversion however our sign up page domain is labelled as shopify.com vs our store domain. This cause google tag manager to not fire on the page itself. Does anyone know how to resolve the following issue?
That happens because Shopify’s checkout (including sign-up or purchase confirmation pages) uses a different domain (checkout.shopify.com or similar), which can prevent GTM from firing properly if it’s only set up for your main domain. To fix this, you’ll need to enable cross-domain tracking in Google Tag Manager and Google Analytics. Also, make sure your GTM container code is added in your Shopify admin under Checkout settings if you’re on Shopify Plus. Let me know if you need help setting that up!
Welcome to Shopify community. You are facing a common issue when trying to track Sign-up or checkout events in Shopify using Google Tag Manager (GTM) - especially when those events happen on a Shopify-hosted domain (like checkout.myshopify.com), or sometimes on login/signup pages which aren’t under your custom store domain. Here is the proven solution for that.
If you are on Shopify Plus, you can inject Goolge tag manager into the checkout and other hosted pages by following these steps.
Go to Settings >> Checkout in your store admin.
Scroll down to Checkout scripts or additional scripts.
Paste your Google Tag manager container code here.
Solution 2 [if you are not on Shopify Plus Plan]: If you are not on the Shopify plus plan then you cannot inject the GT into the Signup or checkout pages because Shopify locks down those templates for security reason.
Here is the workaround that you can follow if you are not on the plus plan.
In Shopify, go to **Settings >> Checkout >> Aditional Scripts (**You can use this on thank you page). Now add the GTM datalayer.push() event there.
By following these steps you can ensure to fix the issue with your GTM script.
If this was helpful don’t forget to like it, mark as Solution and Buy me a coffee.