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

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 VISAL TYAGI

Share this post

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn
Share on pinterest
Pinterest

22 thoughts on “How to Add Google Tag Manager to WordPress & Create the First Tag?”

  1. I’ve been browsing online mօre tһan 2 hourѕ today, yet I never f᧐und any іntereѕting article likе yours.
    It’s pretty worth enough for me. Personally, if all webmasgeгѕ and bloggers made goⲟd content as
    you did, the web will be ɑ lott more useful than ever before.

    Reply
  2. It’s really a great and useful piece of info. I’m satisfied that yyou simply shared this helpful information with us.
    Please stay us up to date like this. Thahks for sharing.

    Reply
  3. It’s actually a cool and helpful piece of info. I am glad that you shared this helpful info
    with us. Please keep us up to date like this.

    Thank you for sharing.

    Reply
  4. My family alll the time say that I am killing my time here at net,
    except I know I am getting knowledge daily by reading such fastidious articles.

    Reply
  5. Hello this is somewhat of off topic but I was wondering if blogs
    use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding
    knowledge so I wanted to get advice from someone with
    experience. Any help would be greatly appreciated!

    Reply
  6. Hello there, You have done an incredible job. I’ll definitely digg it and personally suggest to my friends.
    I am confident they’ll be benefited from this site.

    Reply
  7. Thanks on your marvelous posting! I actually enjoyed reading it, you are a great author.I will always bookmark your blog and may come back later on. I want to encourage that you continue your great job, have a nice weekend!

    Reply
  8. Asking questions are truly fastidiious thing if you are not understanding something totally, except this piece of writing gives good
    understanding even.

    Reply
  9. An impressive share! I have just forwarded this onto a co-worker
    who has been conducting a little research on this.
    And he actually bought me dinner because I found it for him…
    lol. So allow me to reword this…. Thank YOU for the
    meal!! But yeah, thanks for spending the time to discuss this issue here on your web page.

    Reply
  10. Having read this I thought it was rather informative.
    I appreciate you spending some time and effort to put this
    content together. I once again find myself spending way too much time both reading and commenting.
    But so what, it wass stilll worthwhile!

    Reply
  11. I like the helpful info you provide in your articles.

    I will bookmark your weblog and check again here frequently.
    I’m quite sure I’ll learn lots of new stuff right here!
    Best of luck for the next!

    Reply
  12. Woah! I’m really digging the template/theme of this blog.
    It’s simple, yet effective. A lot of times it’s very diifficult
    to get that “perfect balance” between usability and
    visual appeal. I must say you have done a excellent job with this.
    Additionally, the blog loads very fast for me on Firefox. Superb
    Blog!

    Reply
  13. Wow, that’s what I was seeking for, what a information! present here
    at this website, thanks admin of this web page.

    Reply
  14. Hi to all, it’s really a good for me to pay a quick visit
    this web page, it includes priceless Information.

    Reply
  15. Awesome write-up. I am a regular visitor of your blog and appreciate you taking the time to maintain the nice site. I will be a frequent visitor for a really long time.

    Reply
  16. Hi, I do think this is a great website. I stumbledupon it 😉 I’m going to come back yet again since I saved as a favorite it. Money and freedom is the best way to change, may you be rich and continue to help other people.

    Reply
  17. Because of exploring through the the web and coming across solutions which are not pleasant, I assumed my life was gone.

    Reply

Leave a Comment

Receive The Latest Traffic Tips

30 Proven Ways
To
Increase Website Traffic

Discover the Secrets – 15000 Words

46 Shares
Share43
Tweet
Pin3
Share
Share