Shopify provides native Google Universal Analytics integration. It works perfectly on all subscription plans. More info and how to set up Google Analytics on Shopify you can find on their official documentation. Also, you can add GTM web container on all pages of your website if you have Advanced Shopify or Shopify Plus plans. If you are using “Basic Shopify” or “Shopify” plans, you can only add scripts on not checkout pages
And here is the problem, “Advanced Shopify” costs $299 per month while “Basic Shopify” costs $29 per month, and if the Basic plan is enough, you don’t want to pay more only for adding GTM Web container to the checkout pages.
Shopify allows changing “transportUrl” in GA settings. It means that you can set up Google Tag Manager Server container on Shopify instead of GTM Web container. I hope that this will help you solve all your tracking problems.
For example with GTM Server Side on Shopify you can:
How to send events to Google Tag Manager Server Side from Shopify
- First of all, you need to create Google Tag Manager Server Side Container.
- As an option, you also can set up your own domain for GTM SS. This will help you track users more accurately.
ga('set', 'transportUrl', 'https://your-server-side-gtm-url.com/collect');
- Now you can check that the GA library on your site started to send events to your Google Tag Manager Server Side container.
- In some rare cases, the “pageview” event sends faster than “transportUrl” setting applies. And the event does not go to GTM SS. If you have this problem just add this event after “transportUrl” setting:
ga('send', 'pageview_confirmation');this will help you measure more accurately.
I hope this guide will help to solve Shopify tracking issues. If you still have some, our team always here. Describe to us your problem, and we will help you find the solution.