August 9, 2021

Fast Google Tag Manager Implementation

I have a lot of content about Google Tag Manager's benefits for your site. Learn how to implement GTM on your site fast.

Adding Google Tag Manager  

Because this site will include a lot of resources about Google Tag Manager in Google Data Studio, I wanted to share a marketing tutorial on it. 

This is all about how you can implement Google Tag Manager on your site fast. 

What Is Google Tag Manager?  

Before you can really understand how GTM can benefit your site, it’s helpful to know a little more about its function. 

In simple terms, GTM is just a container or a box that sits in the head of your site. You can make changes to your site’s header without editing files after this install. 

Basically, this tool will save you the time and stress of editing a live site. For me, that is a big benefit and I hope this information may be helpful to you, too. 

Steps For Adding GTM

1. Back Up Your Site.

 First off, you should always back up your site. I use WP Engine which makes backing up my site very easy. You can use any site backup tool that you’ve got because we’re going to be editing theme files.

2. Create Your Account. 

I’m going to create my account at Google Tag Manager. Either start for free or sign in if you have an existing account. 

3. Create A Container. 

 Next you want to apply GTM to your site. To do that, copy and paste the tags into a text editor.

4. Apply The Tag To The Head In WordPress. 

Go into WordPress and choose “Appearance” and then “Theme Editor.”

Paste your tag directly after <head>  and then update the site. 

Next you are going to click “Theme Footer” to go to the footer and paste the second tag that you got from GTM. Paste that before the </body> tag at the bottom of the page. 

5. Create A Property For Your GA/UA Property 

 Next we will create a variable for your Google Analytics/ Universal Analytics property. Go to the GA property settings and grab that tracking ID. Next, under tags, I want you to create your new UA/GA account. 

6. Enter GA4 Tag

Let’s do the Google GA4 setup. I have to start from scratch. 

Go to your Google Analytics 4 property after you did that and click on tag installation. Grab your  measurement ID, it’s kind of the Universal Analytics ID equivalent to the new cert GA. You want that on all of pages.

7. Test In Preview Mode

8. Publish

Always check your work after you are done. I use Google Tag Assistant Chrome extension. 

When I look at my tags now I can see that we have the new GA4 tag and confirm the correct measurement ID. Last, I like to make sure we can see traffic in real time.

Congratulations, you’ve just set up Google Analytics, GA 4 and Universal Analytics via Google Tag Manager. 

I am planning upcoming videos about how to set up conversion tracking, event tracking, and all the other useful functions inside Google Tag Manager. 

Get Digital Marketing Growth - Contact us

Get in touch