How to Conduct a Google Tag Manager Audit

October 9, 2019 Chris O'Neill

Managing an entire tagging implementation can be a complex task, even if you’re using Google Tag Manager (GTM). 

This complexity often comes as a result of website updates over time, which involves continually adding and modifying tags (the third party technologies installed on your site) to accomplish various tasks around analytics, marketing automation, advertising, and more. 

As your website changes and you continually add this functionality to your website, your tags will build up, and you will need to regularly audit your implementation to validate which tags are deployed and whether they are working properly. This practice of auditing your tagging implementation will need to be done manually or through automation.

Manually Auditing Your Google Tag Manager Implementation

A manual audit of your tagging implementation requires human effort to comb through layers of code in both GTM and your website as a means of verifying and spot checking each tag deployed on your website or app. 

Some of the auditing activities you will have to carry out include:

  • Validating and checking container tags
  • Inspecting your data layer
  • Verifying that rules are firing as expected

Let’s take a closer look at each of these tasks individually.

Validating and checking container tags

Container tags are pieces of code installed on each page of your site that serve as digital middlemen between the Google Tag Manager interface and your website. These container tags communicate with the GTM interface to deploy and fire each page’s applicable tags. 

When using Google Tag Manager, your analytics tags reside in the cloud-based GTM database and then are called onto your website pages by the container tag when applicable rules are met. 

Container tags free you from having to manually deploy each individual tag directly onto each page of your site, and instead allow you to manage all your tags through the Google Tag Manager interface. 

When manually auditing your site, you need to ensure these container tags are present on each page of your site and are effectively firing the desired tags. Manually ensuring the proper functionality of these container tags requires you to find each container tag in your site’s code, and then check on your website source code and within the GTM interface to ensure your assorted analytics tags are appropriately aligned and firing within each container tag.

In addition to auditing your container tags, you will also want to inspect your data layer.

Inspecting your data layer

In his blog post titled Unlocking the Data Layer, Jason Call defines the data layer as “a piece of code that is a repository for structured data. It is a JavaScript object or variable that gathers and redistributes your most essential data to all the vendors in your MarTech stack.” 

The data layer sits as an intermediate data repository that connects your website’s data to your your tag manager and your other marketing solutions. When a customer interacts with your website, the data layer gathers that data into a centralized, organized manner for easy data sharing.

In order to accurately send information, your data layer must be set up with clearly defined variables that match specific conventions. As a result, you will need to validate your data layer to ensure accurate data formatting and capture. 

When inspecting and validating your data layer manually, you need to inspect the data layer JavaScript object page by page to ensure the values match your specifications, which can be a daunting task.

Another aspect of managing GTM is making sure the rules associated with your analytics tags are firing correctly. 

Verifying your GTM rules

When using Google Tag Manager, you must assign rules to your analytics tags, as these rules serve as instructions that tell the analytics tags when to fire and record data. These rules will likely expire with time as your site changes. Consequently, you need to continually verify and update your rules to ensure proper tag functionality.

Managing and verifying all the rules associated with your implemented tags can be challenging, due to the sheer volume of tags that need rules, as well as the fact that each rule needs to be verified one-by-one, vendor-by-vendor. As a result, manually verifying these rules is not an ideal method. 

Whether you’re validating container tags, inspecting your data layer, or verifying your rules, approaching these processes manually is time-intensive and prone to human error, especially if your site and accompanying analytics implementation is large. Additionally, websites change regularly, which only adds to the complexity of an already challenging situation, and often leaves tag management professionals struggling to keep up. 

The cumbersome nature of attempting to accomplish the aforementioned tasks manually ultimately leads to mistakes and poor data output. As a result, using automation is an appealing alternative. 

Auditing Google Tag Manager with Automation

Using automation to audit your Google Tag Manager implementation will allow you to quickly and accurately ensure your implementation is deploying tags where needed. With automation solutions like ObservePoint, you can efficiently schedule and run automated scans of your GTM implementation, saving you time and resources. 

Audit tags with automation

Auditing tags with ObservePoint is straightforward and efficient, as you can simply schedule automated Web Audits that will render each page of your website and automatically detect all the tags present. These audits allow you to see the container tags present on each page, as well as each of the tags your container tags deploy.

These audits will quickly give you a clear and accurate view of your entire tagging implementation. 

Automatically inspect the data layer

In order to relay consistent information from your website to your tag manager, the data layer must be congruent and accurate across all pages of your site. As a result, auditing your data layer with automation will save you from wasting time and resources on combing through each page of your site in an effort to ensure the values in the data layer are correct. 

Running automated scans with ObservePoint will allow you to quickly evaluate the consistency of your data layer across your entire site, and will also alert you when inconsistencies and errors are present in your data layer.  

Use automation to verify rules

Rules can get messy as your tagging implementation changes over time, especially since each of the many tags in your implementation needs an individual rule in order to fire correctly. The vast number of rules makes automation an ideal solution for managing all the rules in your implementation.

You can verify that all the rules in your Google Tag Manager implementation are firing correctly using features called Web Audits and Web Journeys with ObservePoint. The Web Audits feature enables you to check rules at a page level and ensure your tags are properly functioning, while the Web Journeys feature allows you to check the rules associated with user flows and sequences on your site.  

Keep GTM Running Efficiently with ObservePoint

When using tag management software like GTM, you need to recognize that maintaining the integrity of that solution is not a one time thing. You can’t simply set and forget your GTM solution and hope for a dependable implementation now and into the future. Maintaining your implementation requires ongoing management, either through manual efforts or automation, though using automation is a much more effective solution. 

If you decide to utilize automation, ObservePoint’s validation software will allow you to ensure that your GTM solution is currently functioning as desired, and that your solution will continue to do so as you move forward. With this knowledge and peace of mind, you can confidently ensure your website is providing your customers with great experiences. 

To see how ObservePoint can help you ensure accurate data with GTM, schedule a demo today.

There are a lot of pieces that go into a successful GTM implementation, and if one of them falls out of line, it can have a domino effect that threatens the integrity of your tagging implementation. 

You could check for these errors manually, but do you have the time? And would you recognize an error even if you saw it?

This blog post, How to Conduct a Google Tag Manager Audit, details three tasks you should carry out when auditing your GTM implementation, enabling you to:

  • Verify your container tag is present on every page of your site
  • Ensure GTM is firing the right tags at the right time
  • Verify the integrity of your data layer

Fill out the short form to access the content.

About the Author

Chris O'Neill

Chris O’Neill is a full-stack web developer who has been in the analytics space for the past 5 years. As Solutions Architect at ObservePoint, Chris helps large enterprises set up automated testing of their analytics scripts with ObservePoint so they can verify custom website tracking is always up and running.

LinkedIn More Content by Chris O'Neill
Previous Article
10 Tag Management Solutions You Should Consider
10 Tag Management Solutions You Should Consider

This article discusses various Tag Management Solutions on the market today. Find out the unique capabiliti...

Next Article
The Top 5 Website Tagging Best Practices
The Top 5 Website Tagging Best Practices

Websites are under a lot of stress. Following website tagging best practices will help you keep your taggin...