How To Add Google Tag Manager To WordPress?

Ways to Add Google Tag Manager to WordPress 01

Do you need to connect Google Analytics and other marketing services on your WordPress site? Install Google Tag Manager to measure and monitor the performance of your website effectively! It lets you add and update tags and code snippets on your website easily. To benefit from this tool, you must know the right way to install it on your website.

Are you looking for ways to add Google Tag Manager in WordPress? Most site owners may get confused about where and how to add the GTM tracking code to WordPress. If you are among those confused WordPress users, read this blog to get a detailed understanding of how to install and set up Google Tag Manager on your WordPress site properly. 

Without further ado, let’s dive in! 

What is Google Tag Manager?

Google Tag Manager (also called GTM) is a powerful tag management tool to collect all valuable analytical data for positively improving and managing your marketing strategy and efforts. Indeed, “Tag” is a piece of HTML or Javascript code, which is added to your site for better analysis.

If you are using Google Analytics, that means you are already tracking and monitoring specific data: the audience of your website, sources of traffic, the particularities of Internet users coming to your site, etc. This information is handy, but it’s constrained. With Google Analytics, you need to add a few JavaScript or HTML code lines on the web pages of your website to integrate its services. The Google Analytics tag is a JavaScript code snippet that collects and sends data to Analytics. Creating such a tag and managing this code is sometimes become complex if you are not a web developer.

With Google Tag Manager, you no longer need to connect with a developer; it easily allows you to add and manage all these codes from a single interface without editing your website’s code. You can independently collect specific data on the customer’s prospect, product performance, user behavior, and marketing campaigns.

The data that Google Tag Manager monitors and tracks:

Getting Started with Google Tag Manager

Step 1: Create a Google account

To get started, visit the Google Tag Manager website and click the “Start for free” button given in the top right.

Then, you need to sign in to your Google account to get access to Google Tag Manager. If you have a Google account, then you don’t need to create it. Just Log in!

Once this requirement is resolved, you must go to the Google Tag Manager site and follow the below-listed steps:

  1. Click on Accounts> Create an account.
  2. Create a name for the account.
  3. Pick a country from the dropdown.
  4. Type a container name.
  5. Select a targeting platform(s)- web, iOS, Android, AMP, and Server.
  6. Enter on “Create” button
  7. Accept the terms and conditions.

Step 2: Adding Google Tag Manager Code to Your WordPress Site

First, you need to sign in to your WordPress dashboard and then install Insert Header and Footers plugin. Once the Header and Footer Plugin get activated, you need to go to Settings and then Insert Headers and Footers page.

Now you will find two boxes that allow integrating header and footer code. Return to your Google Tag Manager account and copy the code in the first box. Now, ‘Script in Header,’ you need to Paste the code. 

Now, copy the other code from your Tag Manager account and paste that into the ‘Scripts in Footer’ box the same way. Before the concluding /body> tag, the section will print scripts.

Remember not to forget to save your changes.

That’s it! Now, you are done with installing Google Tag Manager on your WordPress site. You can also any tracking code to your WP site with the Google Tag Manager dashboard.

Step 3: Add and Publish Tags in Google Tag Manager

Once you have successfully installed the Google Tag Manager tool on your WordPress website, you’re now ready to integrate code snippets (tags) on your site to track your conversions.

Google Tag Manager supports more than 50 tag types that allow small businesses to store all tracking tags all in one place. This tag type includes Google marketing products and other 3rd-party services. It also allows you to add custom HTML or JavaScript tags to your WordPress website by using its interface.

All you have to do is click on the ‘New Tag’ icon and follow the following steps to create your first tag.

Follow the same process and integrate your WordPress site with various marketing and tracking tools to add and manage multiple tags in your Google Tag Manager container.


To conclude, using GTM makes it possible to monitor the performance of the pages on your site in addition to Google Analytics. In addition, its use does not slow down the loading time of URL pages. Knowing that most users leave a page if it takes more than 3 seconds to load, this is rather good news to note!

If you need help when developing communication strategies to reach your target audience, our agency, Seahawk Media, remains at your disposal to inform you. Get in touch with us! 

Get started with Seahawk

Sign up in our app to view our pricing and get discounts.