How to Install Google Tag Manager on Your Shopify Store

Aim: Install Google Tag Manager on your Shopify store to add and update your own conversion tracking, site analytics, and remarketing tags.

Optimal Outcome: Launch Google Tag Manager on Shopify successfully, allowing you to quickly and easily update tags on your website or mobile application.

What you need to start: You will need a Google Tag Manager account and a Shopify store to follow this SOP.

Why is this SOP Important: Installing Google Tag Manager in Shopify is an excellent way to keep your store organised and operational. Google Tag Manager is a platform that allows you to manage, deploy, and maintain all of your tags and tracking codes. This saves you time and makes keeping track of all your tags easier. Furthermore, Google Tag Manager can assist you in analysing customer behaviour, targeting ads, and measuring conversion rates. All of this information can be used to optimise your store and provide a better user experience.

When and Where to execute: Google Tag Manager should be installed in Shopify as soon as possible to ensure that you can monitor, track, and optimise the performance of your store.

Who Should Be Doing This: The person in charge of managing your Shopify store.

What is Google Tag Manager?

Google Tag Manager (GTM) is a free tag management system that allows you to quickly and easily update website tags (such as analytics and tracking pixels) without having to update your website’s code. It simplifies tag management and makes it easier to track and optimize your online presence. You can manage all of your tags in one place and deploy them quickly and easily with GTM.

One of the most significant advantages of Google Tag Manager is the abundance of available tag templates. The tool comes with templates for over 90 different types of tags. Instead of adding code to the system, simply enter a few variables such as your Google Ads account ID. The rest is handled by the template.

Another benefit of using Google Tag Manager is the ability to set triggers to determine when the tracking code is loaded. Instead of loading every tag on every page, you can load only the ones that are relevant to the page and improve site performance.

More tracking codes or scripts are required for e-commerce platforms such as Shopify. Consider using Google Tag Manager with Shopify if you’re having trouble keeping all of your pixels and scripts straight and up to date.

Google Tag Manager installation in Shopify is a simple and straightforward process. Here are the steps you must follow:

Create a Google Tag Manager and Generate your Tag

  1. Go to Google Marketing Platform.
  1. Click “Start for free” and sign in with your Google Account.


  1. Choose “Create an Account” from the menu.


  1. You will be taken to the Add New Account page. Fill out the form to create your account.


  1. After reading and accepting the Google Tag Manager Terms of Service Agreement, click the Yes button.


  1. Now that you’re in your Google Tag Manager Dashboard Tag Manager, navigate to the “Admin” tab section.


  1. Click Install Google Tag Manager.


  1. You will be redirected to a page with the code that must be installed on your website.


Add Google Tag Manager code to your Shopify Theme

  1. Log in to your Shopify account and go to Online Store > Themes.


  1. Click Edit Code in the theme drop-down menu.

  1. Copy the <head> code from Google Tag Manager and look into the head> tags of your theme.liquid.


  1. Scroll down and paste the head> code from Google Tag Manager directly beneath the meta tags. Then click Save.




  1. Copy the <body> code from Google Tag Manager and look into the body> tags of your theme.liquid. Insert a Ctrl + F command to find the body>, then click next until you find the opening body tag.



  1. Scroll down and paste the body> code from Google Tag Manager directly beneath the body class. Then click Save.



Verify that Google Tag Manager is installed

  1. Install the Tag Assistant Chrome extension from Google, then click the Tag Assistant icon on your Chrome browser. You should now be able to view all of your active tags and whether or not they are experiencing any issues. 

  1. Congrats! You may now add additional Tags and Tracking Pixels to your site. GTM will make your life simpler!


You’re done! Keep in mind that Google Tag Manager is an effective tool for managing website tags and tracking codes. The following are some of the advantages of utilizing Google Tag Manager:

  • Easier and faster deployment: Google Tag Manager allows you to put tags on your website quickly and simply without having to manually alter the code.
  • Reduced Technical Dependence: Using tags on your website does not require the assistance of a web developer. This makes managing and tracking your website tags easier.
  • Improved Data Quality: By using a single tag management system, you may track data more correctly and rapidly.
  • Improved Security: Google Tag Manager adds an extra layer of protection to your website tags and tracking codes.
  • Workflow Automation: Google Tag Manager includes automated workflows for putting tags on your website. This allows you to save time and money.

Execution Checklist:

  • Create a Google Tag Manager account and generate your tag.
  • Open your Shopify admin account and log in.
  • Copy the Google Tag Manager head> container code, paste it into the head> section of the theme.liquid file, and save.
  • Copy the Google Tag Manager body> container code, paste it into the body> section of the theme.liquid file, and save.
  • Configure tags and triggers in your Google Tag Manager container to measure conversions, and include remarketing tags.

Leave a Reply

Your email address will not be published. Required fields are marked *