Testing Google Tag Manager on your site

We illustrate how to connect your site with Google Tag Manager and more importantly, ways to test that the tags are firing correctly.

enterprise website systems image


Let’s dive in. Start off by embedding the script on the site.

code script

And then publish the container

tag manager container

At this point, the tags and triggers that you set up in GTM should be firing. The tricky part is knowing whether they are working fine. The most basic thing to do is activate the WASP chrome extension and then you check to see what tags are active on the site:

wasp extension

The next more important step is to download the Chrome Extension for GTM. This is super helpful!

chrome extension for google tag manager

At this point, you should put GTM in a preview mode.

GTM preview mode

As soon as you do this, a pane opens up on the website that shows the status of all the tags and their status:

GTM tag summary page

As you click and test, you will see the tags firing. You can click on any particular tag to see what event triggered it, what information was sent to analytics etc.

Finally, you probably noticed a “Record” button in the GTM chrome extension above. It is very helpful to record a session. Click on it and then start testing. This entire session is then recorded along with all the tags that fired and how the information also looked from the Google Analytics side.

Testing GTM can be tricky and we hope these tips were helpful.

Related Insights

Dynamic Link Tracking with Google Tag Manager

It is relatively easy to track clicks on static links. However, when the links are dynamically generated by the CMS it is not that easy. We discuss ways to determine which link was clicked using the data layer functionality of GTM.

Vinod Pabba

Analytics

Subscribe to our newsletter