Google Tag Manager – Friend or Foe?

Google Tag Manager, in theory, is a pretty awesome thing. It solves several issues that can be incredibly frustrating to teams working on web sites and/or marketing activities related to web sites – primarily being able to add tracking code to web pages without having to actually touch the pages. Wow. It is marketed as something that does just this:

Take control of your tags.

No need to ask the IT team to change tags again; our user-friendly tool lets you manage your own website and mobile app tags on the spot. So you can focus on marketing, not coding.

And on paper, this seems great, but…

How Does Tag Manager Work When Non-IT People Deploy It?

In my experience, if you are trying to something relatively simple with tag manager, such as run Google Analytics code or AdWords conversion tracking code or a retargeting code, it works really well. And, it often is simpler to make a single request to your web development or IT team to add the Google Tag Manager (GTM) container code to your site’s pages rather than having to ask them to add other codes as you expand and need more tags firing on your pages.

But, when things start getting even a little more complex, not having people directly involved in the process who really understand coding logic, starts to cancel out ease of implementation with poorly constructed GTM triggering logic. When this happens, data integrity is at risk. I don’t know about you, but data I can’t trust is the stuff of my nightmares. When marketing people start adding tags to a GTM container without a deeper understanding of how those tags impact each other or how excessive conditional logic within a GTM instance can really slow down or mess up a web site, it can get ugly.

It’s Not Really Their Fault

Part of the problem is that running codes on pages does require some code literate thinking. Do you have to actually write the codes that will fire? No. But in order for things to run smoothly and not interfere with each other, you (or someone involved in the process) really does need to be able to think in what I’ll call “code logic”. Codes and the data the send back to Google Analytics are only as good as their set up. Make a mistake in the set up and your data will never be right. Worst part? Most people don’t know enough to even know they’ve set it up incorrectly.

And why would they? This product is marketed to this exact audience – people who need to have codes on web pages, but either don’t have the access or the skill sets to put that code directly on the pages. When you go to the Google Tag Manager site (sub site of Google Analytics) and you read the content on the Features page, it sounds like mostly plain English. The type of explanations that should make sense to their target audience. It’s when you click down another level and start to read about using these features that the content gets more technical than their target audience.

Here is what the main Features page says about Variables:

Define Reusable Variables

Pick the most important data elements on your pages and easily collect them with variables. For example, define where “total price” is found, and Google Tag Manager can pass that value through to all of your tags.

Here is a sample of what you will find when you click through on the link for more detail about variables and how to set them up:

Variables are name-value pairs for which the value is populated during runtime. For example, the predefined variable named “url” has been defined such that its value is the current page URL.

Variables are used in triggers and in tags. In triggers, they are used to define filters that specify when a particular should be executed (e.g.: to execute a pageview trigger when the url variable is “example.com/index.html”). In tags, variables are used to capture dynamic values (e.g.: passing the transaction value and products purchased to a conversion tracking tag).

Google Tag Manager provides a set of predefined variables in each Web or Mobile App container that you create. With these variables, you’re able to create the most commonly needed tags and triggers. However, you can create additional variables to suit your specific requirements.

This part is about half and half non-tech and tech language. But when you move further down the page to read about setting up and using actual variables, it is starting to get techy:

Web Example

Let’s say that you want to fire a GDN Remarketing tag whenever a visitor spends more than $100 on your site. To implement this, you’d create a pageview trigger and add this as trigger condition:

Transaction Amount greater than $100

Since the variable “Transaction Amount” doesn’t exist, you would need to define it. You would tell Google Tag Manager to look for the value of Transaction Amount in a JavaScript variable transactionAmt (assuming this Javascript variable is present on the purchase confirmation page of your website).

During runtime, Google Tag Manager would get the value of Transaction Amount from the specified JavaScript variable. Then, the above trigger would evaluate whether the value is greater than $100.

In addition to using Transaction Amount in a trigger, you could also use it to pass the transaction amount to any conversion tracking tag, such as a DoubleClick Floodlight tag, thereby making it possible for DoubleClick reports to display transaction revenue.

So it tells you in order to have your tag fire under these conditions, all you have to do is simply set up a Javascript Transaction Amount trigger. Hmmm, how do I do that, you ask?

JavaScript Variable: The value is set to that of the global variable you specify. If the value you’re looking for was not set up in the data layer (see Data Layer variable type), and it’s not visible in the DOM (see DOM Element variable types), it’s possible that the value can be retrieved from a JavaScript variable. Use this variable type if you can find the value you’re looking for in the source of the page in the form of a JavaScript variable.

 Do you have any idea what this paragraph means? If you’re in GTM’s target market demographic, probably not. And yet, you’re still being told that setting up GTM is super easy.

GTM Is Great Under The Right Circumstances

I’m not trying to completely discourage the use of GTM. As I stated earlier, for simple scenarios, I think it really is a great tool. It can be an incredible time saver too, by having the GTM container code set up on all existing pages of a site and have it baked in to new pages as they are created as well. When used this way, it ensures that new content will always have the codes you’ve set as universal firing on the pages. And that is awesome.

More complex deployments though, proceed with caution if you’re not going to have more technical people involved in the process. If you’re getting into custom variables or using conditional logic for code triggering, that requires a different kind of thinking. I have been involved in a number of projects where complex GTM scenarios were set up and deployed without a team member with coding logic skills. All of them had significant issues that had to be unwound and reconfigured to get them to be working as desired.

I wish that Google Tag Manager did a better job of presenting itself as the hybrid tool that it is. It would be great to see available functions broken down into categories such as “Simple” and “Complex” rather than all of its many capabilities being presented as equally easy to understand and successfully deploy.

What about you? What has your experience been like with GTM? What’s the worst scenario you’ve encountered? As always, sound off in the comments, or hit me up on Twitter (@NeptuneMoon).

Keyword Data Just Got Murkier (And What To Do About It)

Keep Calm And Get Creative

The march toward keyword less-relevance (I can't really say irrelevance, so let's go with this instead) took a big step this week with Google changing the way it reports estimated keyword traffic in its somewhat maligned Keyword Planner Tool. The SEM … [Continue reading]

Should The Brexit Impact Your PPC Strategies?

Let me start by saying that I am not a financial expert (I am married to one though!). So we have been following the whole Brexit - will they or won't they drama pretty closely. And, since I am often up in the middle of the night, I learned the … [Continue reading]

AdWords Green Ad Labels In Search Results

AdWords Green Versus Yellow Labels

Busy week this week, but wanted to at least do a quick post! This probably seems like a pretty small change in the grand scheme of things, but this week Google started using green "Ad" designation labels in their search results rather than … [Continue reading]

Google Announcements – The Invisible Sectors

Sample Unbounce Landing Page Templates

A lot of great summaries and think pieces have been written about Google's AdWords and Analytics announcements on May 24th. I actually appreciated that the event had not been over-hyped or over-exposed leading up to it. Overall, the announcements … [Continue reading]