You Ask, I Answer: Google Tag Manager and Google Analytics Integration?

Warning: this content is older than 365 days. It may be out of date and no longer relevant.

You Ask, I Answer: Google Tag Manager and Google Analytics Integration?

Eric asks, “Here’s my problem: i’ve installed GA using tracking code with the monsterinsights plugin on wordpress for my site. I’ve heard that if i add GTM to track my site this will double website stats and skew my data. As written here by monsterinsights: “implementing Google Analytics with both MonsterInsights and Google Tag Manager can skew your stats, since the tracking code will be on your site twice”. Does it mean i can’t use Google Tag manager ? Because if i create a GTM account this requires me to install a GTM tracking code to connect with my GA for things to work, right ?”

Google Tag Manager is a container that can store different code snippets, including Google Analytics. Inside GTM, you’ll put your Google Analytics tracking code and then you will have no need for a separate GA tag. Make sure to put your GTM code into your site on every page the same way you put your GA tag.

If you want to use a plugin, I recommend Thomas Geiger’s plugin.

You Ask, I Answer: Google Tag Manager and Google Analytics Integration?

Can’t see anything? Watch it on YouTube here.

Listen to the audio here:

Download the MP3 audio here.

Machine-Generated Transcript

What follows is an AI-generated transcript. The transcript may contain errors and is not a substitute for watching the video.

In today’s episode, Eric asks, here’s my problem.

I’ve installed the Google Analytics tracking code.

With the monster insights plugin on WordPress from my site.

I’ve heard that if I add Google Tag Manager to track my site, this will double website stats and schema data.

Implementing can double count your tracking.

Does this mean I can’t use Google Tag Manager because if I create a GTM account, this requires me to install GTM tracking code to connect to my ga for things to work, right.

So Google Tag Manager is a tag management system.

It’s a container.

It’s like a copper bucket that you put stuff in when you install Google Tag Manager.

By default, it’s empty, right? There’s a Tag Manager container.

There’s nothing in the container.

One of the things that you do out of the gate Once you’ve installed Tag Manager is you then put tags inside the container like Google Analytics for example.

Now If you have a Google Analytics tag inside the Tag Manager container, and you have Google Analytics also running on the site, then yes, you will get some skewed data, you’ll get a zero percent bounce rate, and you will get double counting of your stats, which is obviously bad.

So the thing to do, the way to do this is to I’m guessing you use monster insights.

So therefore, you have a WordPress website.

You get a Google Tag Manager plugin, Thomas Geiger is plugin is excellent.

I’ll put a link in the show notes to it.

You install Tag Manager on your website, and then you configure Tag Manager to do things like Google Analytics, tracking, etc.

And then you remove your Google Analytics plugin and tags so that you don’t you don’t need those anymore.

Tag Manager at that point is running itself and Google Analytics for you.

So it is inclusive.

It’s It’s It’s got the Google Analytics tag in the bucket.

So let’s see just the basics of what this would look like.

I’m going to flip over here.

Inside tags Manager you have your tags, your triggers and your variables.

So the variables, the one you’re going to want to start with is you’re going to want to start a new custom variable, which would go down here and call it whatever you like.

When you start a new variable configuration here, name and something.

And you’ll notice that in the list of things that you can do, one of them is a Google Analytics settings variable.

And this variable is where you’ll put in your tracking ID, the UA that whatever your number is.

And when you’re talking about some of the more advanced features, you’ll want to do things like turn on display advertising features, you may or may not need ecommerce features.

You may or may not want to use other functions like cross domain tracking if you’ve got multiple domains discard this because I already have a Google Analytics tracking tag on here and see that I’ve got my tag my analytics count number.

So the variable essentially tells will tag tell tell Tag Manager Here’s my Google Analytics account.

So that’s part one.

Part two is you’ll need an actual Google Analytics tag.

So again, let’s go ahead and click New here.

And you’ll be able to see Google Analytics, the Universal Analytics tag.

This is the one that most people, most of the time we’re going to use.

You got to track things like pageviews.

And this is where you’ll choose that Google Analytics variable, the one they said, I have some experimental versions in here.

So this should be only the one if you’ve only created the one variable.

This now contains your e commerce settings, your display advertising features, all that stuff that you’d want for advanced application of Google Analytics here.

And you never have to worry about Miss typing the ID number.

If you’ve done it right the first time, obviously, name this something sensible.

And then you’d want to trigger this on all pages.

And by doing this, you would hit Save again, I’m going to hit Save here because I already have installed you would have your Google Analytics egg, this would be the only one in there.

all this other stuff is stuff I’ve also put on my website, you would hit Submit to publish it.

And now, Google Tag Manager, if I were pretending I just done this from scratch, I would now have information that about Google Analytics, I would be running the tag.

So as long as Google Tag Manager was installed on your website, through that plugin, then you will have Google Analytics running.

And now you would go in and remove all the other old Google Analytics stuff.

Doing it this way, you get all the features of Google Analytics.

Sure, you can see you can run as many of them as often as you want.

But you also can see there’s lots of other things in my tag manager account.

And this is the real benefit of Tag Manager.

If you were to copy and paste all these other tags, you know, Amazon codes, Facebook tracking pixels, Twitter, tags, you name it.

If you All of that stuff on your website, your page load times we increase, your site would slow down, possibly things would conflict and beat each other up.

And there’s the potential for hostile code to run.

You know, if you’re just copying pasting JavaScript willy nilly into your site, Google Tag Manager offers a little bit of protection, not much, but a little bit against hostile code, but allows you to track all of this other stuff in one container, remember, back to this whole container thing.

When you do that, Tag Manager loads.

The rest your site goes on loading for the user.

And then Tag Manager takes care of running the stuff inside its container.

however long that takes, which means that the user experience on your website isn’t impacted by loading all this crap.

And letting making the user wait for it to all load, especially if you have a tag that malfunctions.

You know in the past if a vendor went down Like their servers without a tag could hang and you would get like half a web page loaded by having Tag Manager there.

It takes care of that for you.

So to sum up, you absolutely want to use Tag Manager instead of Google Analytics.

By having Google Analytics inside Tag Manager.

If you do that, things will run better.

It’s a lot easier to maintain your website because you don’t have to have all these plugins for all these different tagging systems.

It’s in a consolidated place.

And you get all the advanced functionality of Tag Manager, there’s some really cool stuff you can do with it.

Conditional firing of tags, different goal settings tracking different types of goals in Google Analytics.

There’s a lot to tag manager.

That makes it super valuable.

If you want to learn more about Tag Manager I recommend taking Google’s free course on a go if you go to analytics Academy dot with google.com you There’s free courses from Google, right, right from the horse’s mouth, about how to get started with Google Analytics with Tag Manager with Data Studio, all these things that are in the Google Marketing Platform.

And I strongly recommend that if you if you want to just get the basics down, you take those courses, they’re totally free, and you’ll gain a lot of useful knowledge from them.

If you have follow up questions on this, please leave a comment in the comments box below.

Subscribe to the YouTube channel and the newsletter.

I’ll talk to you soon take care want help solving your company’s data analytics and digital marketing problems? Visit Trust insights.ai today and let us know how we can help you


You might also enjoy:


Want to read more like this from Christopher Penn? Get updates here:

subscribe to my newsletter here


AI for Marketers Book
Take my Generative AI for Marketers course!

Analytics for Marketers Discussion Group
Join my Analytics for Marketers Slack Group!



Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest

Shares
Share This