Last Updated on

ADVERTISEMENT

Are you looking to install Google Tag Manager in WordPress?

If you want to integrate various analytics and marketing services on your WordPress site, then Google Tag Manager is a great tool you can use. It allows you to add and update various tracking codes on your website easily.

In this article, we’ll show you how to install Google Tag Manager in WordPress in the right way.

Google Tag Manager is an awesome tool for your digital tracking needs.

It allows you to deploy tags on your website without editing your code.

Vague much? To offer you a clearer picture, let us first define a tag in terms of digital tracking.

A tag is merely a piece of JavaScript code that you add to your site so you can active third-party features such as traffic analytics, advertising and live chat among other things.

In some circles, tags are also known as web beacons or tracking pixels.

A good example of a tag is the Google Analytics tracking code you add to your site, so you can track your traffic.

The whole purpose of a tag is to collect visitor data for analytics and digital marketing tools.

Companies that provide these tags e.g. Google Analytics, AdWords, Facebook, LinkedIn etc are known as tag vendors.

Why use Google Tag Manager?

Traditionally, implementing tags on your WordPress website meant editing your code manually (or rather directly).

On WordPress, that means editing various files such the header.php and functions.php among others.

Now, if you keep adding JavaScript code into your files, it will slow down your site. Besides, it opens up your site to security vulnerabilities especially if you grab tags from untrustworthy sources.

There is also the problem of maintaining all that code you’re adding to your pages.

For instance, you will need to update the tags if there are changes and this means digging deep into your code.

Again, this isn’t beginner-friendly.

There is also plenty of room for error. You know, to err is human.

What to do with Google Tag Manager on WordPress

f you have multiple tags, you can turn to Google Tag Manager to keep track of all of them from one central place.

Here are a couple of benefits to driving the point home:

  • With Google Tag Manager, you will never have to copy-paste code blocks into your web pages ever again.
  • You can migrate all existing tags to Google Tag Manager
  • Google Tag Manager offers you a single container to deploy multiple tags and manage them from an intuitive dashboard that makes the whole process a breeze
  • This tag management system allows you to deploy tags quickly. For example, instead of copy-pasting your Google Analytics code into your site, you just need to add your Google Analytics tracking ID into Google Tag Manager and viola – Google Analytics is live on your site
  • Setting up Google Tag Manager on your WordPress site is as easy as A, B, C – Adding GTM to WordPress manually is easy. Using a plugin is even easier. Choose the method that works for you.
  • Google Tag Manager helps you to capture a lot of data for your marketing needs. Data that you might fail to capture using other tracking software. This translates to timely and accurate data  – the kind of data that means all the difference between success and failure.
  • Click and go to add tags to your site since Google Tag Manager ships with many built-in integrations such as AdWords, Analytics, Google Optimize, Adometry, Crazzy Egg, LinkedIn and Shareaholic among others
  • Plus, you can create unlimited tags thanks to custom HTML support

And to think all you have to do is install the Google Tag Manager code to your site either manually or via a plugin.

Google Tag Manager will then “process” the JavaScript code for you and then provide the functionality to your site via the container.

Does that even make sense? I sure do hope it does.

For example, instead of adding the Google Analytics code to your site, you just need to integrate Analytics with GTM and your work is done.

Hear ye, hear ye – adding tags in Google Tag Manager is the stuff of fourth graders you will never need a developer ever again.

Will a million done features, you will wonder why Google Tag Manager is free.

Yes, you read that right. It’s free. But then there’s the premium version with even more features and 24/7 support.

Still, I’m doubtful you’ll ever need the premium features anytime soon because the free version is packed to the brim amigos.

Packed with all the features you need to collect data like the pros.

For example, you can capture even such as users watching videos.

On top of that, you can see how long each user watched the video.

And that is just the tip of the iceberg, you can collect a lot of metrics.

Cons

  • Google Tag Manager free version does not offer premium support
  • There’s a learning curve but then again, YouTube has a couple of nice videos on Google Tag Manager.
  • Towards the end of this post, feel free to check out some of the videos we will recommend in the resources section

This is not an exhaustive list of merits/demerits, so we shall keep going on.

Let us roll up our sleeves and get down and dirty.

Installing Google Tag Manager

ADVERTISEMENT

Step 1. Create Your Google Tag Manager Account

First of all, you need to visit the Google Tag Manager website, and then click the Sign-Up button.

gtm signupforgtm
  • Save

Next, you need to sign in with your Google account. Once done, you can see the Google Tag Manager’s Create Account page. Click on the ‘Create Account’ button to get started.

gtm creategtmaccount
  • Save

On the next screen, you can add a new account. Enter your account name and choose a country in the Account Setup box. You can use your company name as your account name.

gtm addnewgtmaccount
  • Save

Next, you need to set up your container.

A container is the collection of tags, triggers, and all configurations installed on a website.

You can enter your website name as your container name.

Choose ‘Web’ under Where to use container option, and then click on the Create button.

gtm containersetup
  • Save

Now you’ll need to accept Google Tag Manager Terms of Service Agreement to proceed.

Check the box next to ‘I accept the Data Processing Terms as required by GDPR.’ at the bottom, and then also click the ‘Yes’ button on the top right corner.

gtm acceptgtmtos
  • Save

Upon accepting the terms of service, you’ll see a new popup window appear on screen with code snippets to install Google Tag Manager on your website.

gtm codes
  • Save

There’re two code snippets to be added to header (inside <head > tag) and in the <body > section on your website.

Step 2. Adding Google Tag Manager Code to WordPress

Login to your WordPress dashboard and then install Insert Header and Footers plugin. Upon activation, go to Settings » Insert Headers and Footers page.

gtm insertheadersandfooterssettings
  • Save

Now you can see two boxes for adding header and footer code.

Go back to your Google Tag Manager account and copy the code in the first box.

Paste the code into ‘Scripts in Header’ box.

Similarly, copy the other code from your Tag Manager account and insert that into the ‘Scripts in Footer’ box.

gtm addgtmcodetoinsertheadersandfooterswpplugin
  • Save

After that, don’t forget to save your changes.

That’s it! You’ve successfully installed Google Tag Manager in your WordPress site.

Now you can use your Google Tag Manager dashboard to install any tracking code to your WordPress website.

Step 3. Add and Publish Tags in Your Tag Manager

Once you’ve installed Google Tag Manager on your website, you’re ready to add code snippets (tags) provided by different tracking tools on your site.

Google Tag Manager supports over 50 tag types, including the Google marketing products and other third-party services.

Plus, you can also add custom HTML or JavaScript tags on your site using its interface.

Click on the ‘New Tag’ icon, and follow the steps to create your first tag.

click new tag e1492466142413
  • Save

Now, you can add different tags in your Google Tag Manager container by following the same process and integrate your WordPress site with various marketing and tracking tools.

Conclusion

That’s all we know for now :3

Remember that we constantly update this post like the others.

Hope this post helped you someway.

Thanks for reading.

Remember to share this post with your preferred social network and tell your followers how you find it.

Need help? comment below this post and we will contact you soon if possible.

ADVERTISEMENT
Categories: WordPress

Jonathan

Jonathan is the owner of Wikicat by Jet Studio Software. He loves technology especially programming and WordPress. Currently studying Visual Basic and how CMS and Google works. Jonathan is an SEO and WordPress expert. He also loves to create high-quality articles based on his real experience and sites for people that don't understand much technology or beginning with it. Helping and providing content for more than 1+ million visitors in the world.

Do NOT follow this link or you will be banned from the site! elit. eleifend ut amet, velit, justo nec pulvinar leo
Share via
Copy link