Close this search box.

How to Install Google Tag Manager in WordPress Website?

Affiliate disclosure: In full transparency – some of the links on our website are affiliate links, if you use them to make a purchase we will earn a commission at no additional cost for you (none whatsoever!).

Want to find how to install Google Tag Manager in WordPress?

Google Tag Manager is an excellent tool to utilise if you wish to combine many analytics and marketing services on your WordPress site. It makes it simple to add and update numerous tracking codes on a website.

Google Tag Manager has a steep learning curve, however. You would need some time to learn how to use the tool. However, we will also discuss a solution that makes advanced tracking quite easy to set up.

What is Google Tag Manager?

How to install Google tag manager on WordPress

Frequently, website owners must add various code fragments to measure conversions, traffic, and collect more analytical data. Using Google Tag manager, you can add and manage all of these scripts from a centralized dashboard.

There are tag templates for Google Analytics, AdWords, and DoubleClick, among others. Tag manager is also compatible with a number of third-party monitoring and analytics services.

In addition, you can utilise custom HTML to add your own tracking code or any other code you like.

How do I configure Google Tag Manager with WordPress?

Now that Google Analytics is ready to be added, the next step is to configure Google Tag Manager.

1) Sign up for Google Tag Manager using the same Google account you used for Google Analytics.

2) After logging in, the screen to create a new account will load. Simply provide a user account name and click the proceed button.

3) Now, a container must be added to your account. A container may be a website or an application for iOS or Android. In this instance, we’ll utilise the web. You may use the domain of your website as the container’s name. Each account can have several containers. Once complete, click the create button to proceed.

4) Now that your Google Tag Manager account is prepared, you must add a new tag. This can be done by clicking the create new tag button.

5) You must initially select a tag product. There are currently over 20 accessible integration templates.

We will chose Google Analytics for the time being, but you can always add more categories and select alternative products based on your requirements. You may also click on custom HTML to include other code snippets.

Choose Google Analytics as your tag’s product

After selecting Google Analytics, you will be prompted to choose between Universal and Classic Analytics. If you select universal analytics, you will be prompted for your analytics tracking ID.

This tracking ID is a specific code that identifies your website to Google. You can retrieve this ID by accessing the Admin tab inside your Google Analytics account.

  • Select the site’s account and property, then click on tracking info to enlarge it. You will see the link to the tracking code
  • Clicking on the tracking code will take you to the tracking code page, where your UA tracking ID will also be displayed.
  • Copy and paste your UA monitoring ID into Google Tag Manager. Select Page View under track type, and then hit the proceed button.
  • The tag configuration assistant will now ask when this tag should fire. Select each page before clicking the create button.
  • Google Tag Manager will now display the tracking code that must be added to your WordPress website. You must duplicate this code.


We hope this article has helped you understand how to properly install Google Tag Manager in WordPress.

Diksha Dutt

A graduate of the IIMC, Diksha enjoys talking about self-growth and online learning platforms. Diksha has a passion for education and entrepreneurship, and she has been involved in both fields for over a decade. She aims to help others make more informed decisions about the best online resources, courses, and education platforms. She writes about online learning platforms and online courses on, where she reviews and recommends the best resources for different skill levels and goals. When Diksha is not working, she enjoys reading books, playing chess, and traveling with her husband and two kids. You can follow her on LinkedIn and FaceBook.

Leave a Comment