Google Tag Manager Audit Checklist

Last Updated: October 26, 2021

Table of contents for Google Tag Manager Audit Checklist

  1. Creating a measurement plan
  2. GTM container snippet placement
  3. Check if all the pages have GTM container snippet
  4. Naming convention for your tags and triggers
  5. Implementation of a data layer on your website
  6. Use folders for organising your tags, triggers and variables
  7. Consolidate all the similar tags
  8. Use Google Analytics settings variable for tags
  9. Use built in variables templates instead of custom templates
  10. Use regular expressions instead of creating multiple triggers
  11. Use preview option before publishing any tags on your website
  12. Validate real time reports in Google Analytics for data
  13. Follow publishing guidelines in Google Tag Manager for every change

In this article, I will discuss the steps that need to be considered while using the Google Tag Manager for your website tagging. 

This checklist covers all the important steps and ensures that the implementation meets the needs of the client.

Creating a measurement plan

The first step before even implementing the Google Tag Manager snippet on your website is to create a measurement plan. This plan should cover all the activities performed by the user on your website, such as button tracking, form completion, enhanced ecommerce, implementing cross domain tracking, etc.

Make sure to document your measurement plan for future references. You should have a clear picture of every tag implemented in your Tag Manager account. 

GTM container snippet placement

The GTM container snippet is a piece of JavaScript code that should be implemented on all the pages that you would like to track. 

Let us see where to find this snippet and how to implement it.

Step-1: Login to your Google Tag Manager account.

Step-2: Click on the ‘Admin’ section at the top.

Admin section GTM

Step-3: Under ‘Container’ column, select ‘Install Google Tag Manager’.

Install GTM

Step-4: Copy the below code and paste it to every page of your website. This code should be placed in the head section of the page and the second part should be right after the body tag.

zQvEYFjynQXbMMKd jLQfXssYgtIqcHkk9LkQQmTnl1Fm3kQHJo13rfxRqBrWjJpuOPMDlxuSJ0B56dzaZ9 ZT4t9kjHJCrA9BOOsLzESHexMD 3 yu9GysUydvH3bHR8SmG3vc

Check if all the pages have the GTM container snippet

Make sure that you have added the GTM container snippet on all the pages of your website that you would like to track. 

GTM container snippet validation can be done by two methods.

  1. Using the Google Tag Assistant Chrome extension.
  2. Checking the code in the source code of the page.

Validation using Tag Assistant Chrome extension:  Google Tag Assistant is the chrome extension that checks all the tags added on the page. Download this extension from the chrome web store

Follow below steps to validate if GTM snippet is loading properly on your page.

Step-1: Visit your website and now click on the ‘Enable’ icon for the extension.

Enable Tag Assistant

Step-2:  Check for the tags loaded on the page in the Tag Assistant with status green, red or blue.

womwZqaE0m2QoM7lOa TOu fwAIZE5km c2hnDyXVoEQicejgs0OqBT55Wdljo7QNYSPGjSQTTAQ0l wUVdqJ z

Step-3: If the status is green or blue it means that the GTM is installed properly on the page as shown above.

Validation using source code of the page:

Step-1: Visit your website in the Chrome browser.

Step-2:  Right click anywhere on the page and select ‘view page source’ or use command Ctrl+U.

Step-3: You would now notice that your source code is now open in the new tab.

Step-4: Press ‘Control +F’ and search for GTM- and if your developer has installed the code, you would see it in the results. If GTM is installed correctly you will see two instances, one in the head tag and one in the body tag.

Naming convention for your tags and triggers

While creating tags and triggers in your GTM make sure that you have named the tags and triggers uniquely so that it will be easier for identifying.

The best practice is to be consistent with your tag and trigger names in GTM. For example, if you are naming GA event tags with GA-Event-Form Completion, then for every event tag follow the same format.

GTM naming convention

Following the proper naming convention will be easy for maintenance and helps your container to stay more organized.

 If you are using multiple containers for different environments (dev, staging and production), you can create containers based on the environment as shown below.

container environment

Additionally, if you are creating tags for different products then include the product name at the beginning of the tag name. For example, if you are creating a tag for Google Ads then you can name it as GA-Conversion-Tag. Similarly for DoubleClick you can use DC etc.

Implementation of a data layer on your website

A data layer is a JavaScript array that stores the custom information that you need and can be used in GTM tags, triggers and variables.  

The data layer method is recommended and the best method for implementation. For example, let us consider that you have created a tag based on the click element or class ID on the webpage and, due to some business reason, the page has been modified and they do not have the same class Id or click element, in that case it will break your tag or implementation. However, if you have implemented a data layer this issue will be resolved.

To know more about the data layer and how to use it refer to this article: Google Tag Manger data layer explained like never before.

Use folders for organising your tags, triggers and variables

Google Tag Manager provides a folder option that helps organise your tags, triggers and variables in one place. 

You can create a folder to manage all marketing tags, like DoubleClick, Facebook, Google Ads, and organise them.

Step-1: Login to your GTM account and click on ‘Folders’.

folders

Step-2:  Click on the ‘New folder’ button as shown below:

New folder

Step-3: Name your folder and click on ‘Create’.

new folder creation

Step-4: Now navigate to your tags and select the tags that you would like to move into the folders.

Tag selection

Step-5: From the top right, select the ‘Move to folder’ icon to add tags to a specific folder.

Move to folder

Step-6: Choose the folder to move your tags to that folder.

choose folder

Consolidate all the similar tags

If you are using multiple tags for similar purposes, then you can replace them with a single tag. 

For example, if you have button tracking on your website and all the buttons have a similar class on the page, instead of creating multiple tags, you can create a common tag and use it for every button.

Use Google Analytics settings variable for tags

The Google Analytics settings variable acts as a central location for all the custom settings that can be used in multiple tags. 

Let’s say you have only five tags in your container then it is easy enough to enter the tracking code (UA-XXXX-X) manually and add any other settings like custom dimensions, anonymize IP and cookie settings. But if you have more tags in your GTM container then it is going to take a lot of time. 

Instead of entering tracking code manually create a constant Google Analytics settings variable that can be used in all tags.

Step-1: Login to your Google Tag Manager account.

Step-2: Select the account in which you would like to create a GA settings variable.

Step-3: Select ‘Variables’ from the left-hand menu.

Variables

Step-4: Now, from ‘User defined variables’, click on ‘New’ to create a GA settings variable.

new user defined variable

Step-5: Provide a name for your variable. For example, ‘Google Analytics settings variable’.

GA settings variable

Step-6: Click on the ‘Variable configuration’ and choose the ‘Variable type’ as ‘Google Analytics settings’.

Google analytics settings

Step-7: Now, in ‘Variable configuration’ provide the tracking ID and you can set the cookie domain and other values like custom dimensions, custom metrics, etc.

Google analytics configuration

Step-8: Click on ‘Save. This variable can now be used for the tags that you create.

Use built in variables templates instead of custom templates

Instead of using the custom HTML tags in Google Tag Manager use the built-in tags to reduce code mistakes in HTML tags.

Google Tag Manager provides many built-in variables that makes it easy to use. They have multiple built-in variables for scroll tracking, video tracking, forms, clicks. etc.

For example, if you would like to track video on your website using the built-in variable, then follow the below steps. 

Step-1: Login to your Google Tag Manager account and select ‘Variables’ from the left-hand side.

Variables

Step-2:  Click on the ‘Configure variable’ button from the ‘Built-in variables’ option.

Configure GTM variable

Step-3: We will enable all the video related variables for this example. However, you can enable any variables as per your tracking request.

Configure Video variables

Step-4: Now you can create a new tag and use these variables for video tracking as below.

video tracking tag 1

Use regular expressions instead of creating multiple triggers

Instead of creating multiple triggers in your container, try using regular expressions. 

Let’s say, for example, you have a requirement to implement the Facebook trigger on your about us page, services page and contact us page, you can simply create a regular expression for this case.

Step-1: Login to your GTM account and select ‘Triggers’.

Step-2: Click on ‘New trigger’ and provide a name for your trigger. 

Step-3: Select the ‘Page view’ trigger type, as shown below.

pageview trigger

Step-4: Select the tag to fire on some pages by selecting ‘Some page views’.  Set ‘Page path’ as ‘matches regex’ and enter the path name of the URLs to fire the tag.

Regex pageview trigger

Step-5: Use this trigger in any marketing tags where you want to fire the tag on multiple pages (in this case contact us, about us and services).

Use preview option before publishing any tags on your website

Before publishing any tags on your website, make sure that you have validated if the tags are working fine on the website. 

Use the preview option to check this and validate that the custom values have been captured correctly, are the event values, and variables are populating correctly based on specific actions.

To learn more about the publishing and preview feature in GTM refer to this article: How to check if the Google Tag manager is working 

Check real time reports in Google Analytics to validate implementation

After the implementation setup is done in Google Tag Manager and you have created the test events (Pageview, events, form completion, button tracking), navigate to Google Analytics reporting and check if the data is been captured correctly.

Step-1: Login to your Google Analytics account.

Step-2: Click on the ‘Real time’ reports from the left-hand menu.

Step-3: If your GTM setup is fine, then you should be seeing the data for your website in real time reports.

Follow publishing guidelines in Google Tag Manager for every change

After you are done with your implementation and validation of the tags, the next step is to publish the changes to your website. 

Make sure that you are adding a descriptive name for your versions, as it can be useful for future reference. For example, if you are about to publish Facebook pixel on some pages, you can describe it as ‘FB Pixel implementation on contact us page’. 

Yr0aZ4i71wCrqs1vc6n8BbwvXKTTknxHFdJYrFqZWS45hGMPEtxwNZ7kHjS6113rcWx7MqiV5MJ cs0wfUiAXOyybwAy2ZhVO1IrSINM5ytENnaeS7ZMf1N9yqpP3Dei4WhG0gA

Congratulations! You have now completed the basics of GTM that needs to be considered for every website.

Related Articles:

Register for the FREE TRAINING...

"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."



Here’s what we’re going to cover in this training…

#1 Why digital analytics is the key to online business success.

​#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.

#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.

#4 ​Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.

#5 The number 1 reason why conversion optimization is not working for your business.

#6 How to advertise on any marketing platform for FREE with an unlimited budget.

​#7 How to learn and master digital analytics and conversion optimization in record time.



   

My best selling books on Digital Analytics and Conversion Optimization

Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.

Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.

Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.

Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.

About the Author

Himanshu Sharma

  • Founder, OptimizeSmart.com
  • Over 15 years of experience in digital analytics and marketing
  • Author of four best-selling books on digital analytics and conversion optimization
  • Nominated for Digital Analytics Association Awards for Excellence
  • Runs one of the most popular blogs in the world on digital analytics
  • Consultant to countless small and big businesses over the decade

Get My Step-By-Step Blueprint For Finding The Best KPIs (32 pages ebook)

X
error: Alert: Content is protected !!