Google Tag Manager: What It Is & 3 Fixes to Common Problems
By Kerry Guard on April 19, 2013
We here at MKG Marketing are big fans of deploying Google Tag Manager on our clients' websites.
First, if you're unfamiliar with what Google Tag Manager (GTM) is, this is how Google describes their product:
"Google Tag Manager makes it easy for marketers to add and update website tags -- including analytics, remarketing, and more & with just a few clicks, and without bugging the IT folks."
Sounds pretty sweet, right? It is! GTM code acts as a tag management system that places a "container" tag on your web page. Once in place, you're able to specify rules as to when you want specific pieces of code to show up in the container, such as:
- Set up rules that have Google Analytics code fire on every page of a website
- Set up a rule that lets AdWords conversion code fire whenever someone hits a "thank you" page.
However, things aren't so cut and dry with GTM. The support documentation is lacking in some critical areas. The following are some answers to questions those who are thinking of using GTM might have that Google doesn't have any support documentation around.
Using Google Tag Manager on HTTPS pages
If you're going to be placing GTM code on a secure web page (https), then you'll need to make a small tweak to your Google Tag Manager code in order for it to work.
There are two instances in the Google Tag Manager code that starts with "src=". Change the following "//www" to "https://www" for both.
This will then allow the GTM container code to accurately display on a secure web page.
I use MediaMind Ad Server and wish to use GTM to deploy that code. Can I?
Yes you can... but you need to tweak two lines of code.
First, you need to place the code in a custom image tag. This is an option you can select when creating a new tag. Then copy / paste the code that was given to you from MediaMind. Now, you'll need to replace this line of code:
document.write('<scr'+'ipt src="HTTP://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&ActivityID=XXXXX&rnd=' + ebRand + '">');
With this line of code:
jQuery.getScript("HTTP://bs.serving-sys.com/BurstingPipe/ActivityServer.bs?cn=as&ActivityID=XXXXX&;rnd=" + ebRand);
Do know you need to place the correct ActivityID (which I have as XXXXX in the examples) in the tweaked line of code in order to track the desired activity.
How can I easily check if GTM is installed properly?
We like two specific Chrome extensions: Google Tag Assistant and Ghostery. The pros & the cons are:
- Google Tag Manager will only report on Google-specific code
- Ghostery will report on a whole slew of different code types, including beacons, advertising tags, privacy trackers and widgets
Should I look to deploy GTM for my own / clients' websites?
Yes and no. If you fall under the following scenarios, we would recommend looking to use GTM:
- Running paid search and are using conversion codes
- Running a retargeting or remessaging program (get tags on specific pages with burn pixels to stop remarketing to customers who have already converted)
- Have a possible need of adding code to a client's website in the future
If you have any questions, we've certainly built up quite a bit of knowledge about GTM and are happy to help. Feel free to contact me (social media links below) or comment on this blog post.