Google Tag Manager is properly installed without any technical issues
Why it matters
Google Tag Manager is a great tool to add and manage multiple pixels and tracking codes without needing to edit the code of a site
Before you start
You need to have Google Analytics on your store. If you haven’t done it yet, you can follow SOP067 (web version) to set up Google Analytics for Shopify
Key steps
21 steps
What is inside
27 headings
1Environment Setup1
Get the Google Tag Assistant Companion (Free).
2Grab your Google Tag Manager container code
3SCENARIO 1: If you don’t have a Google Tag Manager account yet7
Sign up for Google Tag Manager (Free):
You’ll need to log in to your Google account.
You’ll be prompted to set up a Google Tag Manager account right away. Click “Create Account”.
Fill out your account details such as name, country, and website URL, and choose your preferred target platform. Click “Create”.
Accept the terms and conditions by checking the box below and clicking “Yes”.
Next, a pop-up will appear where you will see your Google Tag Manager code. Please remain this page open until the next chapter. You will need to copy the first and second snippets of codes into your Shopify Store later.
Once you are in your Workspace, click on Submit > Publish > Continue to publish your Google Tag Manager container:
4SCENARIO 2: If you already have a Google Tag Manager account3
Log into your Google Tag Manager account;
On the top header click “Admin” → “Install Google Tag Manager”
Copy the code below. You will need it in the next chapter.
5Adding Google Tag Manager to your Shopify Store6
Log into your Shopify store.
On the sidebar, under “Online Store” click “Themes”:
Click the kebab menu → “Edit Code”
On the search bar, search for “theme. liquid” → Click “theme.liquid”
Locate a section of the code that starts with “<head>”. This should appear immediately on line 3 of the page. Paste the first snippet of code copied from Google Tag Manager right under <head>:
Next, copy and paste the second code immediately after "<body>":
6QA-ing your installation4
Open your website homepage using Chrome.
Click on the Tag Assistant Companion Chrome Extension in your browser.
Click on “Add domain”
Check if the Tag Assistant is connected to your site. You should be able to see the below pop-up on your site when it is connected:
The document
11 pages
The file is locked
It comes with 2 DAY GEN AI ENGINEERING MASTERMIND, or
with the full library.