Skip to Content
Main Content

Hiker Looking Out Over Mountains

11 Minute Read | September 25, 2019

Eight Pro Tips for Using Google Tag Manager

This post is an update to the original, first published on 2/1/2017.

Want to become a better GTM practitioner? Read on for eight pro tips you can use with any GTM container.

Note: This post will not show you some cool new way to track videos or whatever. Tons of bloggers have covered that. This post is more about the philosophy behind your approach to GTM.

I’ve learned these tricks during several years of working in a multitude of GTM containers. Are these “best practices”? Who knows! But I can say with certainty that they have helped me maintain my sanity and work more quickly in GTM.

The pro tips below deliver the most value when you work across multiple containers, but most are equally valid when you work with just one.

Pro Tip 1 – Use Workspaces to keep your changes isolated

More than once, I’ve gone into a GTM container, made a bunch of changes, tested them, and was ready to publish, only to realize that someone else had been in the container also making changes. Aargh! Obviously, I can’t publish someone else’s changes; I don’t know what they are, they might not be helpful, or they may not be ready to launch.

Now, the first thing I do is check the Overview Screen. If it’s empty, as in the screenshot below, great – I can start my work and not worry about other people’s work.

Overview example

What if it’s not empty? Here’s a container with a tag and trigger someone added 11 days ago. Do they work? Are they good to go? I have no idea, but I definitely want to work independently of them.

Workchanges example

That’s where workspaces come in. Think of workspaces as your own private branch of the GTM container. You can make changes in that workspace and publish them without affecting what anybody else is doing in another workspace.

Creating your own workspace

Click on Manage Workspaces.

Creating your own workspace example

Click on the + sign.

Click here to create new workspace

Give your workspace:

  1. A descriptive name.
  2. A good description of what you’ll be doing.
  3. Save the workspace.

Name your workspace example

Now you can make all the changes you want in your own private workspace, then publish without worrying about anybody else’s changes. Once you publish, that workspace will disappear.

Why labor over the name and description of the workspace? Because when you publish the workspace, whatever you have there will become the default name and description of that version of the GTM container.

Here’s where the workspace name and description show up in the published version:

Published version of a workspace

Merging Workspaces

Once you’ve published your workspace, the GTM live version is now newer than any other workspace. You may have noticed the “This workspace is out of date” warning in some of the prior screenshots:

Merging workspace example

Or you may see this message in the Overview screen:

New container alert example

Either way, click on the Update or Update Workspace link.

If there are no conflicts, go ahead and Update.

Update workspace alert example

If conflicts exist, GTM will point them out. You and/or the workspace owner will have to figure out how to deal with them.

Pro Tip 2 – Use the Overview page to quickly find your changes

I love the Overview page – it’s a real time saver.

Many of the containers I work with have many tags, triggers, and variables. This one has 76 tags and 57 triggers:

Tags and trigger example one

Tags and trigger example two

Large numbers of tags and triggers can make your new tags and triggers – the ones you’re currently working on – hard to find. The Overview page shows all the new/changed tags, triggers, and variables in a handy list. Sweet!

Workspace changes preview

Pro Tip 3 – Store both the GTM Container ID AND the Version ID as custom dimensions

Here’s a tiny tweak to a great set-up tip from Simo Ahava’s “13 useful custom dimensions for GA.” I use six of the 13, including tracking the GTM Container ID – but I also add the GTM Version ID, which has proven very useful for troubleshooting.

For example, a client noticed that their contact-us forms were no longer being tracked:

Contact-us forms no longer being track visual

Looking in GA and adding my handy-dandy “GTM Container and Version ID” custom dimension, I saw that GTM container versions 52 and 53 had been working.

GTM Container and Version ID visual

Had anything changed between version 53 and later versions? Indeed it had: The trigger for the Contact Us tag had changed from a custom event (version 53) to a pageview (version 54).

Version 53 of GTM Container

Version 54 of GTM Container

The version history showed that someone had made a bunch of changes and published a number of versions in a very short time.

High level view of version changes being applied

I would have found the issue eventually and figured out what had happened. But storing the GTM Container ID as a custom dimension sped the process.

Pro Tip 4 – Page Path versus Page URL - Which URL variable to use?

Great GA/GTM practitioners customize GA accounts through smart use of GA Events. I create many events that include the page users were on when they interacted with the website and fired the event.

The Variables section of GTM shows three “page” options. Which URL variable should you use?

The Variables section of GTM shows three page options visual

(Note: if you don’t see these, choose the Configure option and make sure they’re checked:)

Configure settings visual

Once checked, these variables will self-populate as visitors go through your site. For example, in this portion of a GTM Preview screen, you can see what URL variables look like:

GTM preview screen example

In most cases, Page Hostname + Page Path = Page URL. So should you just use the Page URL?

The answer is no, because of Query Parameters that Google Ads, Facebook, and a host of other sources can add to URLs. For example, Google Ads appends a “gclid” (Google click identifier) to the URL. You can see it here, in the Events / Labels report from Google Analytics – instead of one page you have many:

URL variables visual example

These are all the same page. They look different because I’m capturing Page URLs in my event, so I’m also capturing the gclids.

That’s probably not what I want – I’d really like to have just the URL. So – instead of using {{Page URL}}, I’ll build it using {{Page Hostname}}{{Page Path}}. (Note: the double-curly brackets in GTM specify a variable, like the ones shown at the top of this section.)

If you’re not crossing subdomains, you could instead use just the {{Page Path}} - the portion of the URL after the slash in www.yourwebsite.com/.

Pro Tip 5 – Use the dataLayer instead of screen scraping

GTM can easily grab information from the screen. If you have the correct variables, you will know the page URL, the URL of a link, the link text, etc.

You might think you should use that information directly in the events that you create.

For example, you may want to create an event any time somebody successfully submits a contact form and gets to the “thank-you.htm” page. Easy peasy. Create a trigger that looks for the {{Page Path}} that contains “thank-you.htm”.

However, that “screen-scraping” you just did, where you are specifically looking for information that is on the screen and then reacting to it, is a long-term maintenance nightmare. At some point, somebody will change the contact form and decide to drop the hyphen and call the following page “thankyou.htm.” I can’t tell you how many times I’ve run into this.

Sometimes you don’t have a choice but to screen scrape. But whenever possible, ask your developer to push a notification to the data layer.

What the heck? Without getting too technical (and because a ton of super-detailed articles have already explained the data layer – e.g. here), think of the data layer as a place to store variables or information.

Rather than read things from the screen, have your developer put a tiny bit of code into the datalayer that says the form was submitted. For example:

Datalayer code example

Once that’s created, you can create a trigger that “listens” for that “formSubmissionSuccess”:

Form submission success example

And once the trigger fires, I can create a GA event to capture the fact that somebody filled out the form:

GA event form submission success example

Once you’re relying on the datalayer, as opposed to screen scraping, your events are impervious to changes that people make to link names, page names, etc.

This may sound complicated, but it’s super-easy for a developer to implement and you will always be grateful. Bring them cookies. The kind people eat.

Pro Tip 6 – Naming your GTM “GA Event” tags

Again, to me, events are the heart and soul of a great Google Analytics installation. Track the most significant user interactions on your website through GA Events in order to customize GA to your specific website and thus get the most value out of GA.

For ease of use and long-term maintenance, I label my events in GTM exactly as they will show up in GA. That way, if I see an event category or action in GA, I can easily find the corresponding tag in GTM.

For example, if I look at my Event Category report in GA (Behavior / Events / Top Events), I might see something like this, where I have Event Categories of Outbound Links, etc.:

Event Category report in GA (Behavior / Events / Top Events) example

In GTM, I can easily find the tag that created that event because I’m using the exact wording of the Event Category (and sometimes the Event Action) in the name of the tag.

Exact wording example in an event category

Things to note about the titles of each of these tags:

  • I prefix all my events with “GA – Event” so they all group together.
  • I append the Event Category exactly as it shows up in GA. That is, I match the title of the tag to the category in the tag.

Provider Not Found example

You can’t always label your GTM tags like this; sometimes your developers or your EEC implementation may push an event that has a dynamically-replaced category name. But when you can control tag naming, you can save a lot of time you would have spent trying to figure which GTM tag drives which GA event.

Pro Tip 7 – Chrome Extensions make your life easier

You could get through life as a GTM practitioner without Chrome extensions – but oh, what a miserable life that would be! I use several Chrome Extension tools. I couldn’t live without these:

7.1 - dataLayer Inspector+ from Adswerve

Man, I love this extension. It sends and decodes all GA/GTM-related traffic to the developer’s console, where you can examine it at your leisure. Want to see what information is being sent to GA as a pageview, timing, event, or e-commerce transaction? It’s all here.

Super-secret pro tip – in the Developer’s console settings, enable the “Preserve Log Upon Navigation“ option in the Console section. This allows you to scroll back through the GA/GTM data. Otherwise, all that great information disappears when a new page reloads.

Preserve Log Upon Navigation box selection

(H/T to Charles Farina for first introducing me to this great extension.)

7.2 – GTM/GA Debug

GTM and GA Debug extension

This wonderful extension comes from David Vallejo, a Spanish guru of all things GA/GTM and an avid hiker and cyclist. Like dataLayer Inspector+, it reports on all GA/GTM traffic. But it breaks the traffic out into easy-to-understand tables and sections. I particularly like the way it displays EEC (enhanced ecommerce) transactions.

Example of the GTM and GA debug tool

David is always tinkering with and improving the product. If you want to keep up with his changes (and find out lots about bike races in Spain), follow David on Twitter - @thyng.

7.3 – GTM Copy Paste

GTM Copy Paste extension

This awesome extension comes from Julian Juenemann at Measure School. Want to copy some tags, triggers, or variables from one GTM container to another? Julian made a tool for that.

Right-click on what you want to copy, add it to your copy list, and then go to the new container to paste it. So easy. So useful.

Example of where to click the Add to GTM copy paste tool

Pro Tip 8 – Documentation is your friend

In GTM, you can add notes to everything you do – tags, triggers, variables, and version numbers. I love that.

You need not document everything, but I make it a habit to document each version I publish and to document each great change I learned from a blog.

8.1 - Version Notes

A tiny change to your GTM container sometimes calls for no more than tiny documentation. For example:

GTM container will call out when more documentation is needed example

Usually, though, it’s best to be more thorough:

More generic version of minor tweaks example

The client doesn’t care about this level of detail. But I do. And so will the person who maintains the GTM after me. Six months after you publish a new version of GTM, you won’t remember what you did or why you did it. Great documentation will remember for you.

8.2 – Document where you got your solution

Whenever most of us run into GTM issues, we search Google and, if we’re lucky, find a solution. Great; fabulous GTM resources abound.

But a month from now, will you remember where you found the solution to your issue?

When I borrow something from a blog post or class, I try to document the source:

Notes example

I will either add this in the version notes or, more often, in a notes field for the relevant tag, trigger, or variable.

GTM has notes fields for all aspects. Use them. I guarantee that documenting what you’re doing and why you’re doing it will save your butt sometime, mostly likely when you’re trying something tricky.

The documentation feature might seem like a small thing, but it’s part of what makes GTM such a powerful tool.

Bonus Tip - Use the GTM Container ID when searching

If you’ve read this far, you deserve an extra tip!

This tip helps if you work in and have access to many GTM containers.

Believe it or not, it can be hard to be sure you’re in the right container. Just to be double-sure, I go to the website whose container I’ll be changing and open the Google Tag Assistant to copy the container ID.

GTM container ID visual

Next, in the GTM search bar, I’ll paste the container ID I just copied. Voilà – up comes the guaranteed right container!

This may seem like a simple and maybe even useless tip – but it’s a great way to guarantee the changes you are about to make are in the right container!

(Don’t have Google Tag Assistant? Follow this link to get it.)

How to search for your GTM container ID example

There you have it: Eight pro tips to help you become a better GTM practitioner.

If you have questions, feel free to reach out to me or any member of the Northwoods digital marketing team.

To explore further on your own, here are some great people and resources you should follow:

Simo Ahava – Very deep and detailed blog on GTM. Overwhelming if you’re brand new, but a life-saver once you have some familiarity. One of his posts that I use all the time is 10 useful CSS selectors. (Pro Tip #9! You’re welcome.)

Julius Fedorovicius - Julius knows his stuff inside and out, runs a super-helpful Facebook GTM group, and has detailed blogs. I highly recommend his beginner’s and intermediate GTM courses.

Jeff Sauer - Another giant in the field of GA and GTM and one of the nicest guys I know. His courses on GA, GTM, Google Ads, and Google Data Studio are world class.

Digital Analytics Power Hour – An irreverent and informative podcast on all things related to web analytics. Not specific to GTM, but great to listen to if you’re a digital analytics practitioner.

Need to Optimize Your GA4 Set-Up? Visit Our GA4 Hub for Ideas and Assistance.

 

Authored By

Fred Pike

Fred Pike

Managing Director & GA/GTM Practice Lead

hand-drawn owl

Get Expert Tips

3612414/Blog/Eight-Pro-Tips-for-Using-Google-Tag-Manager11
<p><em>This post is an update to the original, first published on 2/1/2017.</em></p> <p>Want to become a better GTM practitioner? Read on for eight pro tips you can use with any GTM container.</p> <p>Note: This post will <em>not</em> show you some cool new way to track videos or whatever. Tons of bloggers have covered that. This post is more about the <em>philosophy </em>behind your approach to GTM.</p> <p>I&rsquo;ve learned these tricks during several years of working in a multitude of GTM containers. Are these &ldquo;best practices&rdquo;? Who knows! But I can say with certainty that they have helped me maintain my sanity and work more quickly in GTM.</p> <p>The pro tips below deliver the most value when you work across multiple containers, but most are equally valid when you work with just one.</p> <h2>Pro Tip 1 &ndash; Use Workspaces to keep your changes isolated</h2> <p>More than once, I&rsquo;ve gone into a GTM container, made a bunch of changes, tested them, and was ready to publish, only to realize that someone else had been in the container also making changes. Aargh! Obviously, I can&rsquo;t publish someone else&rsquo;s changes; I don&rsquo;t know what they are, they might not be helpful, or they may not be ready to launch.</p> <p>Now, the first thing I do is check the Overview Screen. If it&rsquo;s empty, as in the screenshot below, great &ndash; I can start my work and not worry about other people&rsquo;s work.</p> <p><img alt="Overview example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager1.jpg" /></p> <p>What if it&rsquo;s not empty? Here&rsquo;s a container with a tag and trigger someone added 11 days ago. Do they work? Are they good to go? I have no idea, but I definitely want to work independently of them.</p> <p><img alt="Workchanges example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager2.jpg?Large" /></p> <p>That&rsquo;s where workspaces come in. Think of workspaces as your own private branch of the GTM container. You can make changes in that workspace and publish them without affecting what anybody else is doing in another workspace.</p> <h3>Creating your own workspace</h3> <p>Click on Manage Workspaces.</p> <p><img alt="Creating your own workspace example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager3.jpg?Large" /></p> <p>Click on the + sign.</p> <p><img alt="Click here to create new workspace" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager4.png?Large" /></p> <p>Give your workspace:</p> <ol> <li>A descriptive name.</li> <li>A good description of what you&rsquo;ll be doing.</li> <li>Save the workspace.</li> </ol> <p><img alt="Name your workspace example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager5.jpg?Large" /></p> <p>Now you can make all the changes you want in your own private workspace, then publish without worrying about anybody else&rsquo;s changes. Once you publish, that workspace will disappear.</p> <p>Why labor over the name and description of the workspace? Because when you publish the workspace, whatever you have there will become the default name and description of that version of the GTM container.</p> <p>Here&rsquo;s where the workspace name and description show up in the published version:</p> <p><img alt="Published version of a workspace" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager6.jpg?Large" /></p> <h3>Merging Workspaces</h3> <p>Once you&rsquo;ve published your workspace, the GTM live version is now newer than any other workspace. You may have noticed the &ldquo;This workspace is out of date&rdquo; warning in some of the prior screenshots:</p> <p><img alt="Merging workspace example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager7.jpg?Large" /></p> <p>Or you may see this message in the Overview screen:</p> <p><img alt="New container alert example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager8.jpg" /></p> <p>Either way, click on the Update or Update Workspace link.</p> <p>If there are no conflicts, go ahead and Update.</p> <p><img alt="Update workspace alert example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager9.jpg?Large" /></p> <p>If conflicts exist, GTM will point them out. You and/or the workspace owner will have to figure out how to deal with them.</p> <h2>Pro Tip 2 &ndash; Use the Overview page to quickly find your changes</h2> <p>I love the Overview page &ndash; it&rsquo;s a real time saver.</p> <p>Many of the containers I work with have many tags, triggers, and variables. This one has 76 tags and 57 triggers:</p> <p><img alt="Tags and trigger example one" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager10.jpg" /></p> <p><img alt="Tags and trigger example two" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager11.jpg" /></p> <p>Large numbers of tags and triggers can make your new tags and triggers &ndash; the ones you&rsquo;re currently working on &ndash; hard to find. The Overview page shows all the new/changed tags, triggers, and variables in a handy list. Sweet!</p> <p><img alt="Workspace changes preview" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager12.jpg?Large" /></p> <h2>Pro Tip 3 &ndash; Store both the GTM Container ID AND the Version ID as custom dimensions</h2> <p>Here&rsquo;s a tiny tweak to a great set-up tip from Simo Ahava&rsquo;s &ldquo;<a href="https://www.simoahava.com/analytics/13-useful-custom-dimensions-for-google-analytics/?utm_source=northwoods-fred-pike&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">13 useful custom dimensions for GA.</a>&rdquo; I use six of the 13, including tracking the GTM Container ID &ndash; but I also add the GTM Version ID, which has proven very useful for troubleshooting.</p> <p>For example, a client noticed that their contact-us forms were no longer being tracked:</p> <p><img alt="Contact-us forms no longer being track visual" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager13.jpg?Large" /></p> <p>Looking in GA and adding my handy-dandy &ldquo;GTM Container and Version ID&rdquo; custom dimension, I saw that GTM container versions 52 and 53 <em>had</em> been working.</p> <p><img alt="GTM Container and Version ID visual" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager14.jpg?Large" /></p> <p>Had anything changed between version 53 and later versions? Indeed it had: The trigger for the Contact Us tag had changed from a custom event (version 53) to a pageview (version 54).</p> <p><img alt="Version 53 of GTM Container" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager15.jpg?Large" /></p> <p><img alt="Version 54 of GTM Container" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager16.jpg?Large" /></p> <p>The version history showed that someone had made a bunch of changes and published a number of versions in a very short time.</p> <p><img alt="High level view of version changes being applied" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager17.jpg?Large" /></p> <p>I would have found the issue eventually and figured out what had happened. But storing the GTM Container ID as a custom dimension sped the process.</p> <h2>Pro Tip 4 &ndash; Page Path versus Page URL - Which URL variable to use?</h2> <p>Great GA/GTM practitioners customize GA accounts through smart use of GA Events. I create many events that include the page users were on when they interacted with the website and fired the event.</p> <p>The Variables section of GTM shows three &ldquo;page&rdquo; options. Which URL variable should you use?</p> <p><img alt="The Variables section of GTM shows three page options visual " loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager18.jpg?Large" /></p> <p>(Note: if you don&rsquo;t see these, choose the Configure option and make sure they&rsquo;re checked:)</p> <p><img alt="Configure settings visual" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager19.jpg" /></p> <p>Once checked, these variables will self-populate as visitors go through your site. For example, in this portion of a GTM Preview screen, you can see what URL variables look like:</p> <p><img alt="GTM preview screen example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager20.jpg?Large" /></p> <p>In most cases, Page Hostname + Page Path = Page URL. So should you just use the Page URL?</p> <p>The answer is no, because of Query Parameters that Google Ads, Facebook, and a host of other sources can add to URLs. For example, Google Ads appends a &ldquo;gclid&rdquo; (Google click identifier) to the URL. You can see it here, in the Events / Labels report from Google Analytics &ndash; instead of one page you have many:</p> <p><img alt="URL variables visual example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager21.jpg" /></p> <p>These are all the same page. They look different because I&rsquo;m capturing Page URLs in my event, so I&rsquo;m also capturing the gclids.</p> <p>That&rsquo;s <em>probably</em> not what I want &ndash; I&rsquo;d really like to have just the URL. So &ndash; instead of using {{Page URL}}, I&rsquo;ll build it using {{Page Hostname}}{{Page Path}}. (Note: the double-curly brackets in GTM specify a variable, like the ones shown at the top of this section.)</p> <p>If you&rsquo;re not crossing subdomains, you could instead use just the {{Page Path}} - the portion of the URL after the slash in www.yourwebsite.com/.</p> <h2>Pro Tip 5 &ndash; Use the dataLayer instead of screen scraping</h2> <p>GTM can easily grab information from the screen. If you have the correct variables, you will know the page URL, the URL of a link, the link text, etc.</p> <p>You might think you should use that information directly in the events that you create.</p> <p>For example, you may want to create an event any time somebody successfully submits a contact form and gets to the &ldquo;thank-you.htm&rdquo; page. Easy peasy. Create a trigger that looks for the {{Page Path}} that contains &ldquo;thank-you.htm&rdquo;.</p> <p>However, that &ldquo;screen-scraping&rdquo; you just did, where you are specifically looking for information that is on the screen and then reacting to it, is a long-term maintenance nightmare. At some point, somebody will change the contact form and decide to drop the hyphen and call the following page &ldquo;thankyou.htm.&rdquo; I can&rsquo;t tell you how many times I&rsquo;ve run into this.</p> <p>Sometimes you don&rsquo;t have a choice but to screen scrape. But whenever possible, ask your developer to push a notification to the data layer.</p> <p>What the heck? Without getting too technical (and because a ton of super-detailed articles have already explained the data layer &ndash; e.g. <a href="https://www.analyticsmania.com/post/what-is-data-layer-in-google-tag-manager/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">here</a>), think of the data layer as a place to store variables or information.</p> <p>Rather than read things from the screen, have your developer put a tiny bit of code into the datalayer that says the form was submitted. For example:</p> <p><img alt="Datalayer code example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager22.jpg" /></p> <p>Once that&rsquo;s created, you can create a trigger that &ldquo;listens&rdquo; for that &ldquo;formSubmissionSuccess&rdquo;:</p> <p><img alt="Form submission success example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager23.jpg" /></p> <p>And once the trigger fires, I can create a GA event to capture the fact that somebody filled out the form:</p> <p><img alt="GA event form submission success example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager24.jpg?Large" /></p> <p>Once you&rsquo;re relying on the datalayer, as opposed to screen scraping, your events are impervious to changes that people make to link names, page names, etc.</p> <p>This may sound complicated, but it&rsquo;s super-easy for a developer to implement and you will always be grateful. Bring them cookies. The kind people eat.</p> <h2>Pro Tip 6 &ndash; Naming your GTM &ldquo;GA Event&rdquo; tags</h2> <p>Again, to me, events are the heart and soul of a great Google Analytics installation. Track the most significant user interactions on your website through GA Events in order to customize GA to your specific website and thus get the most value out of GA.</p> <p>For ease of use and long-term maintenance, I label my events in GTM <em>exactly</em> as they will show up in GA. That way, if I see an event category or action in GA, I can easily find the corresponding tag in GTM.</p> <p>For example, if I look at my Event Category report in GA (Behavior / Events / Top Events), I might see something like this, where I have Event Categories of Outbound Links, etc.:</p> <p><img alt="Event Category report in GA (Behavior / Events / Top Events) example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager25.jpg" /></p> <p>In GTM, I can easily find the tag that created that event because I&rsquo;m using the exact wording of the Event Category (and sometimes the Event Action) in the name of the tag.</p> <p><img alt="Exact wording example in an event category" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager26.jpg?Large" /></p> <p>Things to note about the titles of each of these tags:</p> <ul> <li>I prefix all my events with &ldquo;GA &ndash; Event&rdquo; so they all group together.</li> <li>I append the Event Category <em>exactly</em> as it shows up in GA. That is, I match the <em>title</em> of the tag to the <em>category</em> in the tag.</li> </ul> <p><img alt="Provider Not Found example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager27.jpg" /></p> <p>You can&rsquo;t always label your GTM tags like this; sometimes your developers or your EEC implementation may push an event that has a dynamically-replaced category name. But when you can control tag naming, you can save a lot of time you would have spent trying to figure which GTM tag drives which GA event.</p> <h2>Pro Tip 7 &ndash; Chrome Extensions make your life easier</h2> <p>You could get through life as a GTM practitioner without Chrome extensions &ndash; but oh, what a miserable life that would be! I use several Chrome Extension tools. I couldn&rsquo;t live without these:</p> <h3>7.1 - dataLayer Inspector+ from Adswerve</h3> <p>Man, I love <a href="https://chrome.google.com/webstore/detail/analytics-pros-datalayer/kmcbdogdandhihllalknlcjfpdjcleom?hl=en" linktype="3" target="_blank">this extension</a>. It sends and decodes all GA/GTM-related traffic to the developer&rsquo;s console, where you can examine it at your leisure. Want to see what information is being sent to GA as a pageview, timing, event, or e-commerce transaction? It&rsquo;s all here.</p> <p><img alt="" loading="lazy" src="/test/image.png" /></p> <p>Super-secret pro tip &ndash; in the Developer&rsquo;s console settings, enable the &ldquo;Preserve Log Upon Navigation&ldquo; option in the Console section. This allows you to scroll back through the GA/GTM data. Otherwise, all that great information disappears when a new page reloads.</p> <p><img alt="Preserve Log Upon Navigation box selection" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager29.jpg?Large" /></p> <p>(H/T to <a href="https://www.charlesfarina.com/?utm_source=northwoods-fred-pike&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">Charles Farina</a> for first introducing me to this great extension.)</p> <h3>7.2 &ndash; GTM/GA Debug</h3> <p><img alt="GTM and GA Debug extension" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager30.jpg" /></p> <p>This wonderful extension comes from <a href="https://www.thyngster.com/?utm_source=northwoods-fred-pike&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">David Vallejo</a>, a Spanish guru of all things GA/GTM and an avid hiker and cyclist. Like dataLayer Inspector+, it reports on all GA/GTM traffic. But it breaks the traffic out into easy-to-understand tables and sections. I particularly like the way it displays EEC (enhanced ecommerce) transactions.</p> <p><img alt="Example of the GTM and GA debug tool" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager31.jpg?Large" /></p> <p>David is always tinkering with and improving the product. If you want to keep up with his changes (and find out lots about bike races in Spain), follow David on Twitter - @thyng.</p> <h3>7.3 &ndash; GTM Copy Paste</h3> <p><img alt="GTM Copy Paste extension" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager32.jpg" /></p> <p>This awesome extension comes from Julian Juenemann at <a href="https://measureschool.com/?utm_source=northwoods-fred-pike&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">Measure School</a>. Want to copy some tags, triggers, or variables from one GTM container to another? Julian made a tool for that.</p> <p>Right-click on what you want to copy, add it to your copy list, and then go to the new container to paste it. So easy. So useful.</p> <p><img alt="Example of where to click the Add to GTM copy paste tool" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager33.jpg" /></p> <div> <div> <div class="msocomtxt" id="_com_1" language="JavaScript"> <h2>Pro Tip 8 &ndash; Documentation is your friend</h2> <p>In GTM, you can add notes to everything you do &ndash; tags, triggers, variables, and version numbers. I love that.</p> <p>You need not document <em>everything,</em> but I make it a habit to document each version I publish and to document each great change I learned from a blog.</p> <h3>8.1 - Version Notes</h3> <p>A tiny change to your GTM container sometimes calls for no more than tiny documentation. For example:</p> <p><img alt="GTM container will call out when more documentation is needed example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager34.jpg" /></p> <p>Usually, though, it&rsquo;s best to be more thorough:</p> <p><img alt="More generic version of minor tweaks example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager35.jpg?Large" /></p> <p>The client doesn&rsquo;t care about this level of detail. But I do. And so will the person who maintains the GTM after me. Six months after you publish a new version of GTM, you won&rsquo;t remember what you did or why you did it. Great documentation will remember for you.</p> <h3>8.2 &ndash; Document where you got your solution</h3> <p>Whenever most of us run into GTM issues, we search Google and, if we&rsquo;re lucky, find a solution. Great; fabulous GTM resources abound.</p> <p>But a month from now, will you remember where you found the solution to your issue?</p> <p>When I borrow something from a blog post or class, I try to document the source:</p> <p><img alt="Notes example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager36.jpg?Large" /></p> <p>I will either add this in the version notes or, more often, in a notes field for the relevant tag, trigger, or variable.</p> <p>GTM has notes fields for all aspects. Use them. I guarantee that documenting what you&rsquo;re doing and why you&rsquo;re doing it will save your butt sometime, mostly likely when you&rsquo;re trying something tricky.</p> <p>The documentation feature might seem like a small thing, but it&rsquo;s part of what makes GTM such a powerful tool.</p> <h2>Bonus Tip - Use the GTM Container ID when searching</h2> <p>If you&rsquo;ve read this far, you deserve an extra tip!</p> <p>This tip helps if you work in and have access to many GTM containers.</p> <p>Believe it or not, it can be hard to be sure you&rsquo;re in the right container. Just to be double-sure, I go to the website whose container I&rsquo;ll be changing and open the Google Tag Assistant to copy the container ID.</p> <p><img alt="GTM container ID visual" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager37.jpg" /></p> <p>Next, in the GTM search bar, I&rsquo;ll paste the container ID I just copied. <em>Voil&agrave;</em> &ndash; up comes the guaranteed right container!</p> <p>This may seem like a simple and maybe even useless tip &ndash; but it&rsquo;s a great way to guarantee the changes you are about to make are in the right container!</p> <p>(Don&rsquo;t have Google Tag Assistant? <a href="https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en)" linktype="3" target="_blank">Follow this link</a> to get it.)</p> <p><img alt="How to search for your GTM container ID example" loading="lazy" src="/Northwoods-2019/Blog/EightProTipsforUsingGoogleTagManager38.jpg" /></p> <p>There you have it: Eight pro tips to help you become a better GTM practitioner.</p> <p>If you have questions, feel free to reach out to me or any member of the Northwoods digital marketing team.</p> <p>To explore further on your own, here are some great people and resources you should follow:</p> <p><a href="https://www.simoahava.com/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank"><strong>Simo Ahava</strong></a> &ndash; Very deep and detailed blog on GTM. Overwhelming if you&rsquo;re brand new, but a life-saver once you have some familiarity. One of his posts that I use all the time is <a href="https://www.simoahava.com/gtm-tips/10-useful-css-selectors/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">10 useful CSS selectors</a>. (Pro Tip #9! You&rsquo;re welcome.)</p> <p><a href="https://www.analyticsmania.com/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank"><strong>Julius Fedorovicius</strong></a> - Julius knows his stuff inside and out, runs a super-helpful Facebook GTM group, and has detailed blogs. I highly recommend his <a href="https://www.analyticsmania.com/courses/google-tag-manager-course-for-beginners/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">beginner&rsquo;s</a> and <a href="https://www.analyticsmania.com/courses/intermediate-google-tag-manager-course/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank">intermediate</a> GTM courses.</p> <p><a href="https://www.datadrivenu.com/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank"><strong>Jeff Sauer</strong></a> - Another giant in the field of GA and GTM and one of the nicest guys I know. His courses on GA, GTM, Google Ads, and Google Data Studio are world class.</p> <p><a href="https://www.analyticshour.io/?utm_source=northwoods&amp;utm_medium=referral&amp;utm_campaign=Northwoods-Blog-8-Pro-Tips-for-GTM" linktype="3" target="_blank"><strong>Digital Analytics Power Hour</strong></a> &ndash; An irreverent and informative podcast on all things related to web analytics. Not specific to GTM, but great to listen to if you&rsquo;re a digital analytics practitioner.</p> <p><em>Need to Optimize Your GA4 Set-Up? Visit Our <a href="/GA4Hub" linktype="null" target="_self">GA4 Hub</a> for Ideas and Assistance.</em></p> </div> </div> </div> <p>&nbsp;</p>
/Northwoods-2020/Hero-Images/Hiker-Looking-Out-Over-Mountains.pngHiker Looking Out Over MountainsWant to become a better GTM practitioner? Get 8 proven tips from our #TagManager pro to improve your efficiency &ndash; and sanity! @northwoods http://bit.ly/2lG2KrdFred Pike/Northwoods-2020/People/Fred-Pike.jpgMan in front of a log cabin wall with soft, warm lightinghttps://ctt.ac/bm8hc<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script><script>hbspt.forms.create({ region: "na1", portalId: "23630176", formId: "40c5bbae-05a2-42ea-94dd-1662181fd56e" });</script>Eight Pro Tips for Using Google Tag Manager2019-09-25T00:00:00/Northwoods-2019/Blogs/EightprotipsforusingGTMfeatureimage.jpg?MediumThrough years of experience working with a multitude of Google Tag Manager containers, our in-house GTM pro has come up with some tips and tricks to help you more efficiently and effectively manage GTM. If you’re ready to take GTM to the next level, this is a must-read!3620311/People/Fred-PikeFredPikeManaging Director & GA/GTM Practice Lead<p>Fred Pike is Northwoods&#39; resident analytics guru and a world-renowned expert in Google Analytics and Google Tag Manager. A sought-after speaker and educator, he has led courses at industry-leading conferences, events, and organizations including Conversion XL, MeasureSummit, and SuperWeek. Fred is passionate about finding the best ways to drive website traffic and understanding user interactions. He is also an accomplished pit musician and proud owner of beloved Pekingese Xuxa, one of Northwoods&rsquo; most frequent furry visitors.</p>Fred Pike/Northwoods-2020/People/Fred-Pike.jpgFred PikeAdd-In Type - NWS Data ModulesCategory - NWS Data ModulesCommittee - NWS Data ModulesDivision - NWS Data ModulesEvent Audience - NWS Data ModulesEvent Service - NWS Data ModulesEvent Type - NWS Data ModulesLocality - NWS Data ModulesModule - NWS Data ModulesPackage Type - NWS Data ModulesPersonID - NWS Data ModulesFred PikeProductVersion - NWS Data ModulesRecorded Webinar TopicsRegion - NWS Data ModulesSite Display - NWS Data ModulesSkillLevel - NWS Data ModulesTopic - NWS Data ModulesVideoAudience - NWS Data ModulesVideoClassification - NWS Data ModulesVideoStatus - NWS Data ModulesTeamAll StaffLeadershipAdd-In Type - NWS Data ModulesCategory - NWS Data ModulesCommittee - NWS Data ModulesDivision - NWS Data ModulesEvent Audience - NWS Data ModulesEvent Service - NWS Data ModulesEvent Type - NWS Data ModulesLocality - NWS Data ModulesModule - NWS Data ModulesPackage Type - NWS Data ModulesPersonID - NWS Data ModulesFred PikeProductVersion - NWS Data ModulesRecorded Webinar TopicsRegion - NWS Data ModulesSite Display - NWS Data ModulesNWS DigitalSkillLevel - NWS Data ModulesTopic - NWS Data ModulesData & AnalyticsDigital MarketingVideoAudience - NWS Data ModulesVideoClassification - NWS Data ModulesVideoStatus - NWS Data Modules02024-02-20T12:46:14.78000