Google Tag Manager Tutorial – How to install GTM in Shopify
In this Google Tag Manager Tutorial, we are going to learn How to install GTM in Shopify.
At any point, if you have any doubts then please comment below and I will answer them.
If you are an absolute starter then you need to know that there are 2 parts to installing GTM:
- Getting the codes from GTM Admin > This is independent of platform
- Placing those codes on your site > This depends on the platform of the site (eg. Shopify or wordpress or webflow or wix etc.)
Getting the code has been covered in detail in this post here.
In this post, we are going to look at what to do once we have taken the code snippets from GTM.
Alright, you first need to understand that there are various types of Shopify accounts and each one offers different features at different pricing. Just for your reference here is the list :
- Shopify Lite — $9 per month.
- Basic Shopify — $29 per month.
- Shopify — $79 per month.
- Advanced Shopify — $299 per month.
- Shopify Plus — negotiable, but usually costing around $2000 per month.
Now, until and unless you have a Shopify plus account, you can install GTM only on the non-checkout pages, that is all pages except the checkout pages.
With a shopify plus account you can access the code base of all the pages.
Please comment if you have any doubts OK?
If you are liking the content here, consider joining our FREE Facebook group for the digital analytics community : https://www.facebook.com/groups/DataVinciDOA
So, now lets jump into how to do this within Shopify for the various accounts.
Once you have logged in to your store, you need to click on settings and then themes
Next, you need to click on “Actions” dropdown and click on “Edit code”
Now here if you all shopify accounts will have access to the “themes.liquid” file. But, shopify plus accounts will have additional access to “checkout.liquid” as well.
To install GTM on non-checkout pages, you simply need to paste the GTM snippet in the head section of the “theme.liquid” file. The higher the code the better. Click on save.
To install GTM on checkout pages (only shopify plus accounts), you simply need to paste the GTM snippet in the head section of the “checkout.liquid” file. The higher the code the better. Click on save
Comment below if you have any doubts.
That’s it folks!
To validate the installation, please publish your GTM container at least once (if it has not been published in the past) and head to your store.
If you are using Chrome or Chromium browser, you can install tag assistant extension from here :
After installing and enabling tag assistant to parse calls on your site, if you refresh your page then tag assistant will show all the google marketing cloud tags:
You need to make sure of 2 things:
- Your Google Tag Manager has a green tag in the tag assistant
- The container ID for Google Tag Manager in tag assistant is exactly same as the container ID of your tag manager
So, here you go folks, how to install Google Tag Manager in Shopify.