How To Install Google Tag Manager On WordPress

Google Tag Manager

Welcome to Spoonfed SEO, a site dedicated to breaking down the simple practices of digital marketing which are often over-complicated.

We’re not here to over complicated a simple topic, we’re here to spoonfeed it!

So here we go!

Adding Google Tag Manager to WordPress

First thing’s first, you need to sign up for Google Tag Manager. Creating an account is simple.

Just head on over with your email address and after signing in, you’ll be greeted with this screen:

Google Tag Manager Account Creation Screen

Don’t be shy, go ahead and put in your desired name, your location, check the box and press continue!

Next you’ll be asked for the container name, which is just your website, select “Web” and press create!

GTM: Set Up Container

Hey presto, look at that! You just signed up for Google Tag Manager!

The Code

Now, the fun part! You’re going to be prompted to install Google Tag Manager with a mean looking screen just like this:

Google Tag Manager Install Code

Now, the most important piece of advice I can give anyone looking to make any sort of progress with tech, is to just read what the screen says.

So many people get freaked out when they see anything that looks complicated. Just read it, it says “copy and paste”, great we know how to do that!

So first up, copy the first box of code and head back over to your WordPress site.

Now, you’re looking at a few distinct steps here. Let’s break it down with a good old fashioned list:

  1. Click “Appearance” in the menu on the left hand side of the screen.
  2. Under that find “Editor”
  3. Over on the right hand side, now you’re looking for “header.php”, click that beauty!
  4. Now in the code, the part that says <head>, press enter a few times to make some space under it, and simply paste your code, right under the <head>.
  5. Next, copy the next piece of code in the 2nd box and head back to your editor
  6. You’re looking for where the header ends, this will be signaled by </head>
  7. Following the </head> will be <body>, the same step applies here, right after the <body> tag, hit enter to make some space and paste in the code.
  8. Click “Update File” at the bottom and Bob’s your uncle!
Wordpress Editor Screen

Eureka!

Congratulations, you just installed Google Tag Manager on your WordPress website, I’m proud of you!

See, that wasn’t complicated now was it?

You saw it here first folks, SpoonFed SEO – making digital more digestible!

If I helped you, give me a share, a tweet or even a silent nod of approval! Thanks for reading everyone and keep your eyes peeled for more Spoonfed digital marketing tips!

If you’d like more personalised information, have a specific topic you need help with or just fancy a chat, then get in touch with a SpoonFedSEO master of over-simplification today!

Author: Brian C

Brian is an SEO Manager for a leading Irish digital agency. With years of experience across Social Media Management, Content Development and Strategy and SEO for clients across a diverse portfolio, Brian shares his insights to make digital digestible for everyone.

Leave a Reply