logo-small
Features Prices
News 0
Latest News See All

Temporarily unavailable. Please come back later.

See All
Webinars 0
Upcoming Webinars See All
Upcoming Webinars

Sorry, we could not find any upcoming webinars.

See recorded webinars
Blog 0
Recent Posts See All

Temporarily unavailable. Please come back later.

See All
Dario Zadro

How to Use Google Tag Manager for a Better SEO Experience

Dario Zadro

Successful search engine optimization doesn't happen in a vacuum. As SEOs and webmasters, we need to constantly monitor our websites to see how they are performing. We need to carefully measure traffic, monitor the success of online advertising campaigns, and assess the ways in which visitors are behaving and interacting with our sites. We all rely on a vast array of tools to help us do just that.

Google Analytics, AdWords, Crazy Egg, AdRoll…the list is nearly endless. While all of these tools are invaluable assets for SEOs and digital marketers, they do have a downside. They tend to clutter up our sites with excessive tags and code snippets, and that can sometimes make our websites slow, unresponsive and difficult to manage.

Site speed and performance are not just important for user experience; these are important metrics used by Google and other search engines in their ranking algorithms. So how can we mine the information we need to keep our optimization strategies on track and still keep our sites streamlined and running at peak efficiency? Google Tag Manager holds the answer. And, if you have any caching on your site (which you should), you could really benefit from using GTM. 

What is Google Tag Manager?

Google Tag Manager has been around for a couple of years now, though it's been slow to catch on with the larger SEO community. This is unfortunate because Google's Tag Manager is one of the better things the search engine giant has brought to digital marketing. It’s free, and designed by Google to allow SEOs and their teams to manage all tags and code snippets from one easy-to-use interface. This avoids the need for placing all those tags and snippets in your footer or header templates, or asking your web dev team to do it.

Using GTM, you can create and manage all of your code snippets from one centrally managed place, indicating which pages should fire which tags and when. Google Tag Manager handles the rest, allowing you to save time and keep the code on your websites clean and uncluttered.

Keeping all of your tags and code snippets in one place also cuts down on user error. The built-in debugging console also makes it easy to check and tweak any code snippets that are not working properly. Remember what I said about caching? With GTM, you don’t have worry about page or browser level caching because the code snippet doesn’t change. Awesome, right?

How does Google Tag Manager work?

To use Google's Tag Manager just head over there and sign in. Once logged in, you will need to setup a new account. You can use your business name or anything you like to reference your site.

zadro-web-gtm-container

Next, you will need to create a new “container” and add your domain. Adding your domain is not necessary, but let’s go ahead and keep things clean. If you have a blog, landing page, etc. on a subdomain, you can track it in this same container.

zadro-web-gtm-new-account

After you create your account and container, you will be provided with a snippet of code that you should add to your site right after the <body> tag. Remember, you will be using GTM for Google Analytics, so your GA code can now be removed. And, on this same page that provides your code snippet, you will also have the option to include GA and/or AdWords right away, along with some other standardized options.

Go ahead and click on the Google Analytics option below on the code snippet window. Next, you’ll want to fill in the fields that pertain to your GA account. You can choose Classic Google Analytics or Universal Analytics. Choose the option that matches your Analytics account, and add your Google Analytics ID.

zadro-web-gtm-ga-setup

There are two more steps to activate your new GTM container. First, you will need to add a “Firing Rule” by clicking “add” in the upper right. For this example, you will just choose the “all pages” option, and click save. If you had, say ,Crazy Egg running, you could add a firing rule for a specific page by creating a conditional rule for that page only.

And finally, click “publish” and GTM will tell you that a new “version” was created. Go ahead and accept. You can also create and name different versions that might or might not include specific services you’re running that month.

zadro-web-gtm-publish

Now, when a page from your website loads, this activates a request to see what, if any, tags or code snippets should be fired from GTM. So, for our example, it will fire the required code for GA, and the visits will be logged into your Analytics account. Also, you can still track more complicated events such as form submits and click listeners by following this article on Google. I just wanted to show a basic example in this post.

What are the benefits of Google Tag Manager? 

Why should you use Google's Tag Manager? Aside from its easy-to-use interface and the luxury of having all of your tags and code snippets gathered in one place, GTM offers several distinctive benefits for SEOs and webmasters.

  • Save Time - Using Google Tag Manager you can make changes to your code snippets at any time, and those changes will go into effect immediately. No waiting for your web dev team to get around to inserting the necessary code on every page of your website.
  • Better Tag Management - Many websites contain multiple tags and snippets. GTM allows you to clean up your website's code, and makes any subsequent editing of tags and snippets quick and easy by using different “versions.”
  • Improved Site Speed - Placing tags and snippets on each page of a website can impact its loading time and performance with less individual requests from your site. With Google's Tag Manager, your website's code will be cleaner and more streamlined, resulting in better response times and improved user experience.
  • Easy Debugging - Having to debug your code after it has been published to your website can be costly and time-consuming. With Google Tag Manager you can easily tweak and change any code snippets that are faulty, and when re-launched, they will go live immediately.

Successful SEO hinges on being able to accurately monitor a website's traffic, performance and user interaction. Google Tag Manager makes that task easier by gathering all of the necessary tags and code snippets in one place.

With GMT, you can get the analytical information you need without bogging down your website with excessive code snippets and tags. That makes for a better user experience, as well as a better operational experience for everyone.

Author bio

Dario Zadro is an SEO enthusiast, entrepreneur and passionate web developer. To reach him, feel free to reach out to Dario on Twitter or visit zadroweb.com for more SEO insights and tips.

Dario Zadro is an SEO enthusiast, entrepreneur and passionate web developer. Feel free to reach out to Dario on Twitter or visit zadroweb.com for more SEO insights and tips. His last article for SEMrush was “3 Quick Evergreen SEO Tips to Help You Rank."

Comments

2000 symbols remain
Pallab Kakoti
Great Insight. Much appreciated for sharing. Cheers.
Howard Iken
Howard Iken
I always love running across actionable tips like this. Thank you ! Just got through setting up a new account and got rid of four javascrpt tags on my site. Good stuff !
Geoff
Excellent article ! very easy to follow and I was able to set it up for my account in a matter of minutes. I had looked at the tag manager several times but had been reluctant to even try setting it up because the google instruction are to say the least written in gobbledegook and extremely difficult to even understand let alone implement. Great Job
Mark Colestock
Mark Colestock
Excellent article with great summary of GTM basics, along with some great reasons why GTM is an important tool for future-proofing websites.
Ronando
Excellent article. Thanks for the rundown.
Have a Suggestion?