Last Updated on

4 min read

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.

What Is Google Tag Manager

Google Tag Manager is a free tag management tool by Google, which allows you to deploy and update different code snippets called ‘tags’ on your website.

Different tracking services like Google Analytics, Adobe Analytics, Facebook Pixel, LinkedIn Insight, and advertising tools like Google AdWords require you to add a few lines of JavaScript or HTML code to your website to integrate their services.

With Google Tag Manager, you can easily add and manage all these codes from a single interface, without having to edit your website’s code.

There’re built-in tag templates for popular services like Google Analytics and DoubleClick. You can also add custom tags to your website.

Google Tag Manager is a smart tool that enables anyone, including beginners, to implement tracking scripts on their websites quickly.

With that said, let’s go ahead and see how to set up Google Tag Manager in WordPress in the proper way.

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

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

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

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

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

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

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

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

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

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.

Read Also This

Was this post helpful?

Leave a Reply

Your email address will not be published.


Hey! >:3 We have detected that you use AdBlock! Appreciate us by viewing the Ads on this site that we provide. Ads help us to keep the site active and FREE. Thanks.

Don`t copy text!