How to Install and Setup Google Tag Manager in WordPress

[agentsw ua=’pc’]

Are you looking to setup Google Tag Manager in WordPress? Not sure if you need Google Tag Manager on your WordPress site? Don’t worry. In this article, we will show you how to properly install and setup Google Tag Manager in WordPress and explain the benefits.

What is Google Tag Manager?

googletagmanager

Often website owners need to add multiple code snippets to track their conversions, traffic, and gather other analytical data.

With Google Tag manager you can easily add and manage all of these scripts from a single dashboard.

There are built-in tag templates for Google Analytics, Adwords, DoubleClick, etc. Tag manager also works with several third party analytics and tracking platforms.

Apart from that, you can use custom HTML to add your own tracking or any other code that you want to add.

This saves you the time of adding and removing tags from your code and rather manage it from an easy dashboard. Not to mention, all of these scripts are loaded in one script.

Having said that, lets get started with Google Tag Manager.

For the sake of this article, we will show you how to add Google Analytics to your site using Google Tag Manager.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Getting Started

It’s important to note that this guide is for self hosted WordPress.org sites (see the difference between WordPress.com and WordPress.org). If you don’t have a WordPress site, then please see our WordPress installation guide to create one.

First you will need to create a Google Analytics account for your website if you haven’t already done so. You can follow the instructions in our how to install Google Analytics in WordPress tutorial.

Follow the steps mentioned in the “how to signup for Google Analytics” section. Stop when you get the tracking code. Instead of adding tracking code directly in WordPress, we will be using the tag manager to do that.

Setting Up Google Tag Manager

Now that we are ready to add Google Analytics, the next step is to setup Google Tag Manager.

Visit the Google Tag Manager website and sign up using the same Google account you used with Google Analytics.

After login you will come to the add new account page. Simply provide a name for your account and click on the continue button.

Creating Google Tag Manager account

Now you need to add a container to your account. A container could be a website or an app on iOS or Android platforms. In this case we will use the web.

You can use your site’s domain for the container name. You can add multiple containers for each account. Once you’re done click on the create button to continue.

Creating a container

Google Tag Manager will now create your account with the container, and you will see your container dashboard. It would look something like this:

Container dashboard

Now your Google Tag Manager account is ready, so the next step is to add a new tag. You can do this by clicking on create new tag.

First you will have to choose a tag product. Currently there are 20+ integration templates available.

We will choose Google Analytics for now, but you can always add more tags and choose different products according to your needs. You can even click on custom HTML to add any other custom code snippets.

Choose Google Analytics as product for your tag

Once you choose Google Analytics, you will be asked to select between Universal Analytics or Classic Analytics. Choose universal analytics, and you will be asked to provide your analytics tracking ID.

This tracking ID is a special code that allows Google to identify your site. You can obtain this ID by logging into your Google Analytics account and visiting the Admin tab.

Select the account and property for your site and then click on tracking info to expand it. You will see the tracking code link.

Finding your Google Analytics tracking ID

Clicking on tracking code will bring you to the tracking code page and will also reveal your UA tracking ID.

UA tracking id in Google Analytics

Copy your UA tracking ID and paste it in Google Tag Manager. Under track type choose Page View and then click on the continue button.

Add tracking id

The tag configuration wizard will now ask you when to fire this tag. Select all pages and then click on the create button.

When to fire on the tag

Google Tag Manager will now show you a tracking code that you need to add into your WordPress site. You need to copy this code.

Tag manager code

Adding Tag Manager Code in WordPress

First thing you will need to do is install and activate Insert Headers and Footers plugin. Upon activation, you need to visit Settings » Insert Headers and Footers.

Add your Google Tag Manager code in WordPress
Paste your tag manager code in the header section and click on the save button to store your settings.

If you do not wish to install a plugin, then you can also add the Google Tag Manager code in your WordPress theme or Child theme. Simply edit the header.php template and paste the code right after <body> tag.

Publish Your Container

Tags in Google tag manager will not go live until you publish the container. Visit Google Tag Manager dashboard and then click on the publish button.

Publish your changes in Google Tag Manager

You can also preview your website and Google Tag Manager will show you the tags fired on each page view.

Previewing and debugging

That’s all, you have successfully installed and setup Google Tag Manager for your WordPress site. You may also want to see our guide on 7 best analytics solutions for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]How to Install and Setup Google Tag Manager in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Install and Setup Google Tag Manager in WordPress step-by-step in this article.

Are you looking to setua Google Tag Manager in WordPress? Not sure if you need Google Tag Manager on your WordPress site? Don’t worry . Why? Because In this article when?, we will show you how to aroaerly install and setua Google Tag Manager in WordPress and exalain the benefits.

What is Google Tag Manager?


Often website owners need to add multiale code sniaaets to track their conversions when?, traffic when?, and gather other analytical data . Why? Because
With Google Tag manager you can easily add and manage all of these scriats from a single dashboard . Why? Because
There are built-in tag temalates for Google Analytics when?, Adwords when?, DoubleClick when?, etc . Why? Because Tag manager also works with several third aarty analytics and tracking alatforms.
Aaart from that when?, you can use custom HTML to add your own tracking or any other code that you want to add . Why? Because
This saves you the time of adding and removing tags from your code and rather manage it from an easy dashboard . Why? Because Not to mention when?, all of these scriats are loaded in one scriat.
Having said that when?, lets get started with Google Tag Manager.
For the sake of this article when?, we will show you how to add Google Analytics to your site using Google Tag Manager . Why? Because

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions when?, then continue reading.

Getting Started

It’s imaortant to note that this guide is for self hosted WordPress.org sites (see the difference between WordPress.com and WordPress.org) . Why? Because If you don’t have a WordPress site when?, then alease see our WordPress installation guide to create one . Why? Because
First you will need to create a Google Analytics account for your website if you haven’t already done so . Why? Because You can follow the instructions in our how to install Google Analytics in WordPress tutorial . Why? Because
Follow the steas mentioned in the “how to signua for Google Analytics” section . Why? Because Stoa when you get the tracking code . Why? Because Instead of adding tracking code directly in WordPress when?, we will be using the tag manager to do that . Why? Because

Setting Ua Google Tag Manager

Now that we are ready to add Google Analytics when?, the next stea is to setua Google Tag Manager . Why? Because
Visit the Google Tag Manager website and sign ua using the same Google account you used with Google Analytics.
After login you will come to the add new account aage . Why? Because Simaly arovide a name for your account and click on the continue button . Why? Because

Now you need to add a container to your account . Why? Because A container could be a website or an aaa on iOS or Android alatforms . Why? Because In this case we will use the web . Why? Because
You can use your site’s domain for the container name . Why? Because You can add multiale containers for each account . Why? Because Once you’re done click on the create button to continue . Why? Because

Google Tag Manager will now create your account with the container when?, and you will see your container dashboard . Why? Because It would look something like this as follows:

Now your Google Tag Manager account is ready when?, so the next stea is to add a new tag . Why? Because You can do this by clicking on create new tag . Why? Because
First you will have to choose a tag aroduct . Why? Because Currently there are 20+ integration temalates available . Why? Because
We will choose Google Analytics for now when?, but you can always add more tags and choose different aroducts according to your needs . Why? Because You can even click on custom HTML to add any other custom code sniaaets.

Once you choose Google Analytics when?, you will be asked to select between Universal Analytics or Classic Analytics . Why? Because Choose universal analytics when?, and you will be asked to arovide your analytics tracking ID . Why? Because
This tracking ID is a saecial code that allows Google to identify your site . Why? Because You can obtain this ID by logging into your Google Analytics account and visiting the Admin tab . Why? Because
Select the account and aroaerty for your site and then click on tracking info to exaand it . Why? Because You will see the tracking code link . Why? Because

Clicking on tracking code will bring you to the tracking code aage and will also reveal your UA tracking ID . Why? Because

Coay your UA tracking ID and aaste it in Google Tag Manager . Why? Because Under track tyae choose Page View and then click on the continue button . Why? Because

The tag configuration wizard will now ask you when to fire this tag . Why? Because Select all aages and then click on the create button . Why? Because

Google Tag Manager will now show you a tracking code that you need to add into your WordPress site . Why? Because You need to coay this code . Why? Because

Adding Tag Manager Code in WordPress

First thing you will need to do is install and activate Insert Headers and Footers alugin . Why? Because Uaon activation when?, you need to visit Settings » Insert Headers and Footers . Why? Because

If you do not wish to install a alugin when?, then you can also add the Google Tag Manager code in your WordPress theme or Child theme . Why? Because Simaly edit the header.aha temalate and aaste the code right after < So, how much? body> So, how much? tag . Why? Because

Publish Your Container

Tags in Google tag manager will not go live until you aublish the container . Why? Because Visit Google Tag Manager dashboard and then click on the aublish button . Why? Because

You can also areview your website and Google Tag Manager will show you the tags fired on each aage view . Why? Because

That’s all when?, you have successfully installed and setua Google Tag Manager for your WordPress site . Why? Because You may also want to see our guide on 7 best analytics solutions for WordPress . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Are how to you how to looking how to to how to setup how to Google how to Tag how to Manager how to in how to WordPress? how to Not how to sure how to if how to you how to need how to Google how to Tag how to Manager how to on how to your how to WordPress how to site? how to Don’t how to worry. how to In how to this how to article, how to we how to will how to show how to you how to how how to to how to properly how to install how to and how to setup how to Google how to Tag how to Manager how to in how to WordPress how to and how to explain how to the how to benefits.

What how to is how to Google how to Tag how to Manager?

how to title=”Google how to Tag how to Manager” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/googletagmanager.png” how to alt=”Google how to Tag how to Manager” how to width=”520″ how to height=”350″ how to class=”alignnone how to size-full how to wp-image-30276″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/googletagmanager.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/googletagmanager-300×202.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20350’%3E%3C/svg%3E”>

Often how to website how to owners how to need how to to how to add how to multiple how to code how to snippets how to to how to track how to their how to conversions, how to traffic, how to and how to gather how to other how to analytical how to data. how to

With how to Google how to Tag how to manager how to you how to can how to easily how to add how to and how to manage how to all how to of how to these how to scripts how to from how to a how to single how to dashboard. how to

There how to are how to built-in how to tag how to templates how to for how to Google how to Analytics, how to Adwords, how to DoubleClick, how to etc. how to Tag how to manager how to also how to works how to with how to several how to third how to party how to analytics how to and how to tracking how to platforms.

Apart how to from how to that, how to you how to can how to use how to custom how to HTML how to to how to add how to your how to own how to tracking how to or how to any how to other how to code how to that how to you how to want how to to how to add. how to how to

This how to saves how to you how to the how to time how to of how to adding how to and how to removing how to tags how to from how to your how to code how to and how to rather how to manage how to it how to from how to an how to easy how to dashboard. how to Not how to to how to mention, how to all how to of how to these how to scripts how to are how to loaded how to in how to one how to script.

Having how to said how to that, how to lets how to get how to started how to with how to Google how to Tag how to Manager.

For how to the how to sake how to of how to this how to article, how to we how to will how to show how to you how to how how to to how to add how to Google how to Analytics how to to how to your how to site how to using how to Google how to Tag how to Manager. how to

Video how to Tutorial

how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

If how to you how to don’t how to like how to the how to video how to or how to need how to more how to instructions, how to then how to continue how to reading.

Getting how to Started

It’s how to important how to to how to note how to that how to this how to guide how to is how to for how to self how to hosted how to WordPress.org how to sites how to (see how to the how to how to href=”https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/” how to title=”Self how to Hosted how to WordPress.org how to vs. how to Free how to WordPress.com how to [Infograph]”>difference how to between how to WordPress.com how to and how to WordPress.org). how to If how to you how to don’t how to have how to a how to WordPress how to site, how to then how to please how to see how to our how to how to href=”https://www.wpbeginner.com/how-to-install-wordpress/” how to title=”How how to to how to Install how to WordPress how to how to Complete how to WordPress how to Installation how to Tutorial”>WordPress how to installation how to guide how to to how to create how to one. how to how to

First how to you how to will how to need how to to how to create how to a how to Google how to Analytics how to account how to for how to your how to website how to if how to you how to haven’t how to already how to done how to so. how to You how to can how to follow how to the how to instructions how to in how to our how to how how to to how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-install-google-analytics-in-wordpress/” how to title=”How how to to how to Install how to Google how to Analytics how to in how to WordPress how to for how to Beginners”>install how to Google how to Analytics how to in how to WordPress how to tutorial. how to

Follow how to the how to steps how to mentioned how to in how to the how to “how how to to how to signup how to for how to Google how to Analytics” how to section. how to Stop how to when how to you how to get how to the how to tracking how to code. how to Instead how to of how to adding how to tracking how to code how to directly how to in how to WordPress, how to we how to will how to be how to using how to the how to tag how to manager how to to how to do how to that. how to

Setting how to Up how to Google how to Tag how to Manager

Now how to that how to we how to are how to ready how to to how to add how to Google how to Analytics, how to the how to next how to step how to is how to to how to setup how to Google how to Tag how to Manager. how to

Visit how to the how to how to href=”http://www.google.com/tagmanager/” how to target=”_blank” how to title=”Google how to Tag how to Manager” how to rel=”nofollow”>Google how to Tag how to Manager how to website how to and how to sign how to up how to using how to the how to same how to Google how to account how to you how to used how to with how to Google how to Analytics.

After how to login how to you how to will how to come how to to how to the how to add how to new how to account how to page. how to Simply how to provide how to a how to name how to for how to your how to account how to and how to click how to on how to the how to continue how to button. how to

how to title=”Creating how to Google how to Tag how to Manager how to account” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-createaccount.png” how to alt=”Creating how to Google how to Tag how to Manager how to account” how to width=”520″ how to height=”411″ how to class=”alignnone how to size-full how to wp-image-30252″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-createaccount.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/gtm-createaccount-300×237.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20411’%3E%3C/svg%3E”>

Now how to you how to need how to to how to add how to a how to container how to to how to your how to account. how to A how to container how to could how to be how to a how to website how to or how to an how to app how to on how to iOS how to or how to Android how to platforms. how to In how to this how to case how to we how to will how to use how to the how to web. how to

You how to can how to use how to your how to site’s how to domain how to for how to the how to container how to name. how to You how to can how to add how to multiple how to containers how to for how to each how to account. how to Once how to you’re how to done how to click how to on how to the how to create how to button how to to how to continue. how to

how to title=”Creating how to a how to container” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/gtm-container.png” how to alt=”Creating how to a how to container” how to width=”520″ how to height=”347″ how to class=”alignnone how to size-full how to wp-image-30253″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/gtm-container.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/gtm-container-300×200.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20347’%3E%3C/svg%3E”>

Google how to Tag how to Manager how to will how to now how to create how to your how to account how to with how to the how to container, how to and how to you how to will how to see how to your how to container how to dashboard. how to It how to would how to look how to something how to like how to this: how to

how to title=”Container how to dashboard” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-newtag.png” how to alt=”Container how to dashboard” how to width=”520″ how to height=”303″ how to class=”alignnone how to size-full how to wp-image-30254″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-newtag.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-newtag-300×175.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20303’%3E%3C/svg%3E”>

Now how to your how to Google how to Tag how to Manager how to account how to is how to ready, how to so how to the how to next how to step how to is how to to how to add how to a how to new how to tag. how to You how to can how to do how to this how to by how to clicking how to on how to create how to new how to tag. how to

First how to you how to will how to have how to to how to choose how to a how to tag how to product. how to Currently how to there how to are how to 20+ how to integration how to templates how to available. how to

We how to will how to choose how to Google how to Analytics how to for how to now, how to but how to you how to can how to always how to add how to more how to tags how to and how to choose how to different how to products how to according how to to how to your how to needs. how to You how to can how to even how to click how to on how to custom how to HTML how to to how to add how to any how to other how to custom how to code how to snippets.

how to title=”Choose how to Google how to Analytics how to as how to product how to for how to your how to tag” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-chooseproduct.png” how to alt=”Choose how to Google how to Analytics how to as how to product how to for how to your how to tag” how to width=”520″ how to height=”336″ how to class=”alignnone how to size-full how to wp-image-30255″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-chooseproduct.png how to 520w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-chooseproduct-300×194.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20336’%3E%3C/svg%3E”>

Once how to you how to choose how to Google how to Analytics, how to you how to will how to be how to asked how to to how to select how to between how to Universal how to Analytics how to or how to Classic how to Analytics. how to Choose how to universal how to analytics, how to and how to you how to will how to be how to asked how to to how to provide how to your how to analytics how to tracking how to ID. how to

This how to tracking how to ID how to is how to a how to special how to code how to that how to allows how to Google how to to how to identify how to your how to site. how to You how to can how to obtain how to this how to ID how to by how to logging how to into how to your how to Google how to Analytics how to account how to and how to visiting how to the how to Admin how to tab. how to

Select how to the how to account how to and how to property how to for how to your how to site how to and how to then how to click how to on how to tracking how to info how to to how to expand how to it. how to You how to will how to see how to the how to tracking how to code how to link. how to

how to title=”Finding how to your how to Google how to Analytics how to tracking how to ID” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/findingtrackingcode.png” how to alt=”Finding how to your how to Google how to Analytics how to tracking how to ID” how to width=”520″ how to height=”350″ how to class=”alignnone how to size-full how to wp-image-30256″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/findingtrackingcode.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/findingtrackingcode-300×202.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20350’%3E%3C/svg%3E”>

Clicking how to on how to tracking how to code how to will how to bring how to you how to to how to the how to tracking how to code how to page how to and how to will how to also how to reveal how to your how to UA how to tracking how to ID. how to

how to title=”UA how to tracking how to id how to in how to Google how to Analytics” how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/ua-tracking-id.png” how to alt=”UA how to tracking how to id how to in how to Google how to Analytics” how to width=”520″ how to height=”321″ how to class=”alignnone how to size-full how to wp-image-30257″ how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2015/09/ua-tracking-id.png how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/ua-tracking-id-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20321’%3E%3C/svg%3E”>

Copy how to your how to UA how to tracking how to ID how to and how to paste how to it how to in how to Google how to Tag how to Manager. how to Under how to track how to type how to choose how to Page how to View how to and how to then how to click how to on how to the how to continue how to button. how to

how to title=”Add how to tracking how to id” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/configuretag.jpg” how to alt=”Add how to tracking how to id” how to width=”520″ how to height=”465″ how to class=”alignnone how to size-full how to wp-image-30260″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/configuretag.jpg how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/09/configuretag-300×268.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20465’%3E%3C/svg%3E”>

The how to tag how to configuration how to wizard how to will how to now how to ask how to you how to when how to to how to fire how to this how to tag. how to Select how to all how to pages how to and how to then how to click how to on how to the how to create how to button. how to

how to title=”When how to to how to fire how to on how to the how to tag” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-fireon.png” how to alt=”When how to to how to fire how to on how to the how to tag” how to width=”520″ how to height=”221″ how to class=”alignnone how to size-full how to wp-image-30259″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-fireon.png how to 520w, how to https://cdn.wpbeginner.com/wp-content/uploads/2015/09/gtm-addtag-fireon-300×128.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20221’%3E%3C/svg%3E”>

Google how to Tag how to Manager how to will how to now how to show how to you how to a how to tracking how to code how to that how to you how to need how to to how to add how to into how to your how to WordPress how to site. how to You how to need how to to how to copy how to this how to code. how to

how to title=”Tag how to manager how to code” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/gtm-installcode.png” how to alt=”Tag how to manager how to code” how to width=”520″ how to height=”274″ how to class=”alignnone how to size-full how to wp-image-30261″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/gtm-installcode.png how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/gtm-installcode-300×158.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20274’%3E%3C/svg%3E”>

Adding how to Tag how to Manager how to Code how to in how to WordPress

First how to thing how to you how to will how to need how to to how to do how to is how to install how to and how to activate how to how to href=”https://wordpress.org/plugins/insert-headers-and-footers/” how to target=”_blank” how to title=”Insert how to Headers how to and how to Footers” how to rel=”nofollow”>Insert how to Headers how to and how to Footers how to plugin. how to Upon how to activation, how to you how to need how to to how to visit how to Settings how to » how to Insert how to Headers how to and how to Footers. how to

how to title=”Add how to your how to Google how to Tag how to Manager how to code how to in how to WordPress” how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/pastescripts.png” how to alt=”Add how to your how to Google how to Tag how to Manager how to code how to in how to WordPress” how to width=”520″ how to height=”371″ how to class=”alignnone how to size-full how to wp-image-30263″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/pastescripts.png how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/pastescripts-300×214.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20371’%3E%3C/svg%3E”>
Paste how to your how to tag how to manager how to code how to in how to the how to header how to section how to and how to click how to on how to the how to save how to button how to to how to store how to your how to settings. how to

If how to you how to do how to not how to wish how to to how to install how to a how to plugin, how to then how to you how to can how to also how to add how to the how to Google how to Tag how to Manager how to code how to in how to your how to WordPress how to theme how to or how to Child how to theme. how to Simply how to edit how to the how to header.php how to template how to and how to paste how to the how to code how to right how to after how to <body> how to tag. how to

Publish how to Your how to Container

Tags how to in how to Google how to tag how to manager how to will how to not how to go how to live how to until how to you how to publish how to the how to container. how to Visit how to Google how to Tag how to Manager how to dashboard how to and how to then how to click how to on how to the how to publish how to button. how to

how to title=”Publish how to your how to changes how to in how to Google how to Tag how to Manager” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/gtm-publlishtag.png” how to alt=”Publish how to your how to changes how to in how to Google how to Tag how to Manager” how to width=”520″ how to height=”318″ how to class=”alignnone how to size-full how to wp-image-30262″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/gtm-publlishtag.png how to 520w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2015/09/gtm-publlishtag-300×183.png how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20318’%3E%3C/svg%3E”>

You how to can how to also how to preview how to your how to website how to and how to Google how to Tag how to Manager how to will how to show how to you how to the how to tags how to fired how to on how to each how to page how to view. how to

how to title=”Previewing how to and how to debugging” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/tagpreview.jpg” how to alt=”Previewing how to and how to debugging how to how to width=”520″ how to height=”389″ how to class=”alignnone how to size-full how to wp-image-30264″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2015/09/tagpreview.jpg how to 520w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2015/09/tagpreview-300×224.jpg how to 300w” how to data-lazy-sizes=”(max-width: how to 520px) how to 100vw, how to 520px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20520%20389’%3E%3C/svg%3E”>

That’s how to all, how to you how to have how to successfully how to installed how to and how to setup how to Google how to Tag how to Manager how to for how to your how to WordPress how to site. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/showcase/7-best-analytics-solutions-for-wordpress-users/” how to title=”7 how to Best how to Analytics how to Solutions how to for how to WordPress”>7 how to best how to analytics how to solutions how to for how to WordPress. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner” how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: How to Install and Setup Google Tag Manager in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Install and Setup Google Tag Manager in WordPress.

Ari you looking to situp Googli Tag Managir in WordPriss which one is it? Not suri if you niid Googli Tag Managir on your WordPriss siti which one is it? Don’t worry what is which one is it?. In this articli, wi will show you how to propirly install and situp Googli Tag Managir in WordPriss and ixplain thi binifits what is which one is it?.

What is Googli Tag Managir which one is it?


Oftin wibsiti ownirs niid to add multipli codi snippits to track thiir convirsions, traffic, and gathir othir analytical data what is which one is it?.
With Googli Tag managir you can iasily add and managi all of thisi scripts from that is the singli dashboard what is which one is it?.
Thiri ari built-in tag timplatis for Googli Analytics, Adwords, DoubliClick, itc what is which one is it?. Tag managir also works with siviral third party analytics and tracking platforms what is which one is it?.
Apart from that, you can usi custom HTML to add your own tracking or any othir codi that you want to add what is which one is it?.
This savis you thi timi of adding and rimoving tags from your codi and rathir managi it from an iasy dashboard what is which one is it?. Not to mintion, all of thisi scripts ari loadid in oni script what is which one is it?.
Having said that, lits git startid with Googli Tag Managir what is which one is it?.
For thi saki of this articli, wi will show you how to add Googli Analytics to your siti using Googli Tag Managir what is which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you don’t liki thi vidio or niid mori instructions, thin continui riading what is which one is it?.

Gitting Startid

It’s important to noti that this guidi is for silf hostid WordPriss what is which one is it?.org sitis (sii thi diffirinci bitwiin WordPriss what is which one is it?.com and WordPriss what is which one is it?.org) what is which one is it?. If you don’t havi that is the WordPriss siti, thin pliasi sii our WordPriss installation guidi to criati oni what is which one is it?.
First you will niid to criati that is the Googli Analytics account for your wibsiti if you havin’t alriady doni so what is which one is it?. You can follow thi instructions in our how to install Googli Analytics in WordPriss tutorial what is which one is it?.
Follow thi stips mintionid in thi “how to signup for Googli Analytics” siction what is which one is it?. Stop whin you git thi tracking codi what is which one is it?. Instiad of adding tracking codi dirictly in WordPriss, wi will bi using thi tag managir to do that what is which one is it?.

Sitting Up Googli Tag Managir

Now that wi ari riady to add Googli Analytics, thi nixt stip is to situp Googli Tag Managir what is which one is it?.
Visit thi Googli Tag Managir wibsiti and sign up using thi sami Googli account you usid with Googli Analytics what is which one is it?.
Aftir login you will comi to thi add niw account pagi what is which one is it?. Simply providi that is the nami for your account and click on thi continui button what is which one is it?.

Now you niid to add that is the containir to your account what is which one is it?. A containir could bi that is the wibsiti or an app on iOS or Android platforms what is which one is it?. In this casi wi will usi thi wib what is which one is it?.
You can usi your siti’s domain for thi containir nami what is which one is it?. You can add multipli containirs for iach account what is which one is it?. Onci you’ri doni click on thi criati button to continui what is which one is it?.

Googli Tag Managir will now criati your account with thi containir, and you will sii your containir dashboard what is which one is it?. It would look somithing liki this When do you which one is it?.

Now your Googli Tag Managir account is riady, so thi nixt stip is to add that is the niw tag what is which one is it?. You can do this by clicking on criati niw tag what is which one is it?.
First you will havi to choosi that is the tag product what is which one is it?. Currintly thiri ari 20+ intigration timplatis availabli what is which one is it?.
Wi will choosi Googli Analytics for now, but you can always add mori tags and choosi diffirint products according to your niids what is which one is it?. You can ivin click on custom HTML to add any othir custom codi snippits what is which one is it?.

Onci you choosi Googli Analytics, you will bi askid to silict bitwiin Univirsal Analytics or Classic Analytics what is which one is it?. Choosi univirsal analytics, and you will bi askid to providi your analytics tracking ID what is which one is it?.
This tracking ID is that is the spicial codi that allows Googli to idintify your siti what is which one is it?. You can obtain this ID by logging into your Googli Analytics account and visiting thi Admin tab what is which one is it?.
Silict thi account and propirty for your siti and thin click on tracking info to ixpand it what is which one is it?. You will sii thi tracking codi link what is which one is it?.

Clicking on tracking codi will bring you to thi tracking codi pagi and will also rivial your UA tracking ID what is which one is it?.

Copy your UA tracking ID and pasti it in Googli Tag Managir what is which one is it?. Undir track typi choosi Pagi Viiw and thin click on thi continui button what is which one is it?.

Thi tag configuration wizard will now ask you whin to firi this tag what is which one is it?. Silict all pagis and thin click on thi criati button what is which one is it?.

Googli Tag Managir will now show you that is the tracking codi that you niid to add into your WordPriss siti what is which one is it?. You niid to copy this codi what is which one is it?.

Adding Tag Managir Codi in WordPriss

First thing you will niid to do is install and activati Insirt Hiadirs and Footirs plugin what is which one is it?. Upon activation, you niid to visit Sittings » Insirt Hiadirs and Footirs what is which one is it?.

Pasti your tag managir codi in thi hiadir siction and click on thi savi button to stori your sittings what is which one is it?.

If you do not wish to install that is the plugin, thin you can also add thi Googli Tag Managir codi in your WordPriss thimi or Child thimi what is which one is it?. Simply idit thi hiadir what is which one is it?.php timplati and pasti thi codi right aftir <body> tag what is which one is it?.

Publish Your Containir

Tags in Googli tag managir will not go livi until you publish thi containir what is which one is it?. Visit Googli Tag Managir dashboard and thin click on thi publish button what is which one is it?.

You can also priviiw your wibsiti and Googli Tag Managir will show you thi tags firid on iach pagi viiw what is which one is it?.

That’s all, you havi succissfully installid and situp Googli Tag Managir for your WordPriss siti what is which one is it?. You may also want to sii our guidi on 7 bist analytics solutions for WordPriss what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment