Web Hosting

How to Add Google Tag Manager to WordPress & Create the First Tag?

Web Hosting

Do you want to install more scripts on your website without pasting a code then Google Tag Manager reduces all your Work. You should know about How to Add Google Tag Manager to WordPress website or blog in 2019.

You should use Google Tag Manager to put the heavy javascript code and it will automatically do the work for your website.

You can read more about Google Tag Manager and their WordPress Plugins by this guide:

6 Best Google Tag Manager Plugins for WordPress in 2019

How to Add Google Tag Manager to WordPress & Create the First Tag? Click To Tweet

2 Best Ways to Install Google Tag Manager to WordPress:

There are two best methods for setting up Google Tag Manager for WordPress.

  1. You can add without a Plugin.
  2. With the help of a plugin

1. How to Add Google Tag Manager to WordPress without Plugin?

We break this into three parts.

a. Create a Google Tag Manager Account.

b. Insert Google Tag Manager Code to WordPress using the header.php file.

c. Submit Your Workspace.

How to Add Google Tag Manager to WordPress without Plugin? Click To Tweet

a. Create a Google Tag Manager Account:

Step 1: Go to Google and Search Google Tag Manager or You can type the URL, https://tagmanager.google.com/.

Step 2: It will open the Google Tag Manager and ask for Create an Account.

Create an Account

You can click on the Create Account in the blue button or Click here to create an account. Click on Create Account. It will ask you for your website or other details.

Step 3: First, it will ask for your Company Name and Country. Put your Website Name in Company Name and Select your country in Account Set up.

Account Set up

If you want to share data with Google you can choose this option otherwise leave as it is.

Step 4: Put your Website URL in Container Name without http or https.

After putting your Website URL in Container name, it will ask where do you want to Install Container.

There are Four options available here.

  • Web
  • iOS
  • Android
  • AMP

You can install Container in any of the options if you want to add. But in this case, Select Web.

Container Setup

After putting Container Name and Selecting the Container Platform, Click on create.

Step 5: After Click on Create then it will ask you to Accept their Policies. So accept Google Tag Manager policies by clicking on Yes.

Accept Google Tag Manager Terms

Step 6: After accepting the policies, Google Tag Manager will provide you 2 codes. Paste these Codes in the Head or body section respectively in your WordPress Website.

Copy both JavaScript Codes.

Install Google Tag Manager

b. Insert Google Tag Manager Code to WordPress using the header.php file:

Step 1: Login into Your WordPress Admin Dashboard.

Step 2: Go to Appearance > Theme Editor (Editor).

Theme Editor

Step 2: Open header.php file and paste the first code after <head> tag.

Paste First Code after head tag

Step 3: Paste the second code after the <body> tag in the header.php file.

Paste the Second Code after body tag

Step 4: Update the header.php file.

Note: If you do not want to paste the code using header.php file then you can use Insert Headers and Footer Plugin for paste the both JavaScript Codes.

After saving your header file then publish your Container Version in Google Tag Manager.

c. Submit Your Workspace:

Step 1: After pasting the Google Tag Manager Both codes in WordPress, Go to tag manager and Click on Ok after pasting both codes.

Step 2: You will see two options on top on the right side in Workspace changes.

  • Preview
  • Submit

Step 3: Click on Submit in Workspace Changes.

Submit Your Workspace

Step 4: After clicking on Submit, It will ask you to Publish.

Publish Your Container

If you want to add Version Name or Description then you can do it otherwise leave as it is. Click on Publish.

When you leave Version name and Description empty then it will ask after clicking on Publish. If you do not want to Add then skip this step.

Step 5: So click on Skip and it will install your tag manager successfully. Your version is Live and shows in the Workspace section in Google Tag Manager.

Live Version

Second Method:

2. How to Set Up Google Tag Manager for WordPress by DuracellTomi’s Google Tag Manager Plugin?

a. Sign Up For Google Tag Manager Account.

b. Use DuracellTomi’s Plugin and Paste Your Container Id.

c. Submit Your Workspace.

How to Set Up Google Tag Manager for WordPress by DuracellTomi's Google Tag Manager Plugin? Click To Tweet

a. Sign Up for Google Tag Manager Account:

Before using the plugin, you have to Follow the Signup process in Method 1, here you have not to need to copy the script codes.

b. Use DuracellTomi’s Plugin and Paste Your Container Id:

Step 1: Go to Plugins and click on Add New.

Add New Plugin

Step 2: Install Google Tag Manager for WordPress Plugin.

Step 3: Go to Settings > Google Tag Manager.

Google Tag Manager Settings

Otherwise, Go to Installed Plugins section and you will see Google Tag Manager for WordPress. You can do Settings here.

Step 3: After clicking on Google Tag Manager, It will ask you for Google Tag Manager Id. This option is in the General section.

Login into Google Tag Manager with your email id and password. Copy the Container id.

Google Tag Manager Id

Step 4: Paste the Container id in Google Tag Manager Id. Choose Container Code Placement is the footer of the page.

Put Google Tag Manager ID

Step 5: Click on Save Changes.

c. Submit Your Workspace:

Step 6: Go to Google Tag Manager and Click on Submit. When you will submit the Workspace changes then it will ask for publish the live version.

Submit Your Workspace

You can put your version name and description according to your needs otherwise you can leave as it is.

Step 7: Click on Publish.

Publish Your Container

After publishing, it will ask you for a Container name and Description. You can put container name and description according to your needs otherwise you can leave as it is.

Step 8: Click on Skip, if you have not put the name and description. If you have put the name and description then click on continue.

Step 9: Your version is live. Live Version means you have successfully added the Google Tag Manager code in WordPress.

Live Version

How to Check that Google Tag Manager is Installed or Not?

If you want to check that Google Tag Manager is Installed on your Website or not then install Google Tag Assistant Chrome Plugin.

When you will click on Google tag Assistant in Chrome then it will show Google Tag Manager on your WordPress Website or blog like this.

Google Tag Manager Results

How to Create Your First Tag?

Step 1: Go to Google Tag Manager Home Page.

Step 2: Click on Add a New tag under the New Tag section.

Add a New Tag

Step 3: Rename Your Tag.

Choose Tag Configuration

Step 4: Choose a tag type in the Tag Configuration.

Choose Tag Type

Step 5: Choose Your Desired tag otherwise Choose Custom Tags.

Step 6: Paste the Code in your selected tag. You can do advanced settings otherwise leave it.

Put Your Code

Step 7: Apply a Trigger.

Choose a Trigger

Step 8: Save Tag settings.

Save Tag Settings

Step 9: Submit your Workspace Changes.

Submit Your Workspace

Step 10: Publish Your Container Version with title & description.

Live Version

Your tag is successfully created on Google Tag Manager.

How to Add Google Tag Manager to WordPress & Create the First Tag? Click To Tweet

Conclusion:

So this is the complete guide about How you can set up Google tag manager for WordPress and Create your first tag.

If you do not want to use the plugin for set up then you can use the first method otherwise you can use the second method.

Google Tag Manager will help you to fire a tag on the WordPress website and help to load your website fast.

If you have liked this article, then share it with others on your social media profiles and join our Facebook Group.

Read More:

How to Add Google Analytics to WordPress Website?

11 Best Google Analytics Plugins for WordPress in 2019

Last Modified on by Vishal Tyagi

22 Comments

  1. sablon dtg
  2. Özbekistan lump kükürt
  3. คาสิโนออนไลน์
  4. Kadenceorlando.com
  5. bandar ceme
    • Vishal Tyagi
  6. تسديد قروض
  7. BocaHickory.com
  8. Modesto
  9. تسديد قروض
  10. iran caustic soda
  11. تقييم التطبيقات
  12. Highland AvenUe Restaurant
  13. gamefly free trial
  14. boekhouding zzp
  15. Fiskeolie til hunde
  16. Jerrie
  17. foxsportsgo com activate
  18. espn.com/activate
  19. Typicalcat96
  20. use drug
  21. eridanuspills.com

Leave a Reply

Get 67% Off on SiteGround Shared Web Hosting Plans Now checkout >>>BUY NOW
46 Shares
Share43
Tweet
Pin3
Share
Share