How to install Google Analytics Webmaster Tools Tag Manager WordPress

It is very important for every website owner to track the statistics of how long the customers stay on their site, whether the search engine crawls their site or not. To keep track of all these things, it is a must to install Google Analytics, Webmaster tools and Google Tag Manager into your WordPress site.

It becomes very easy if you have some knowledge on these things. This article will provide you a thorough understanding of the installation procedure of Google Analytics, Webmaster tools, and tag manager.

Google Analytics – Who am I?

Google Analytics helps to track the customers who have been visiting the site and also the audience’s interests using the traffic statistics. Do you what is the most interesting fact? Yes, it is available at no costs.  This section will help you understand the importance of Google analytics along with the installation procedure in WordPress site.

Why is it so important for bloggers?

Google Analytics will always have a look on the visitors to your site, which browsers they have used and other information such as JavaScript support, screen resolution, Flash support and even more. With Google Analytics, you can be able to track where the user has been wandering on your site, and the duration of how long they stay on your site, when and how they arrive at your site.

Google Analytics – How to install?

This section will make you understand the installation process and sign-up process. Here are few steps to be followed if you want to install Google Analytics on your WordPress site.

How to Sign up for Google Analytics?

Process 1: The very first step is to create a Google Analytics account. It is very easy to sign-in if you already have your Gmail account. If not, you need to create a Gmail account for yourself. You will be watching a screen as given below.


Process 2: After signing in with your Gmail account, you will be directed to a screen as provided below. From there, you can sign up for Google Analytics using your Gmail account.


Process 3: After the sign-up process gets over, on the next screen you will be given a chance to choose between a mobile app and website. You have to make sure whether the site is selected or not.

Google Provides a Universal Access account in beta which comes with additional features along with an analytics account. You can take rights to choose any one of them like classic analytics account or universal access account.


Process 4:  in this process, just enter your Website’s URL, account name, country, and time zone. After providing all the information, click “Get Tracking ID button” and check out the terms and conditions by clicking the “I Agree” button.


Process 5: This is the final step of the sign-up process where you will be given Google Analytics tracking code. Copy the code and leave the browser open for future reference.


Installation of Google Analytics in WordPress

Here, we are going to offer you three ways to install the Google Analytics in your WordPress sites such as direct paste, functions.php and plugins.

Plugin Method

It is the highly recommended method and there are tons and tons of plugins are available for adding Google Analytics to your site. It becomes very easy to use a light weighted plugin like insert header and footer. Just paste the copied analytics code in the settings page and click “Save settings”.

Insert Header and Footer

Feeling like your hands getting dirty in code? Use this simple plugin to add scripts like Google Analytics on your site. It is a simple interface through which you can add all scripts other than using dozens of plugins.

 Direct Paste Method

Paste the tracking code directly in the theme’s header.php after the <body> tag. After installing, save the changes to see the surprising statistics about your site within 12-16 hours.

 Functions.php method


First of all, add the code in the theme’s functions.php file and paste the Google Analytics code and as usual save the changes. It takes 12-24 hours to get astounding site stats what all you need.

Adding Webmaster tools to your WordPress site

The benefit of adding webmaster tools to your WordPress site is that it will make the site always available to the search engines. Usually, readers ask for increasing the search traffic to their sites. This article will help you to add your WordPress site to the Google Webmaster tools.

Google offers these Webmaster tools which enable the publishers to have a look at how the search engine sees the website. It will also provide reports and data to know how different pages on your site appear in search results.

Google Webmaster tools help you improve the older articles by replacing it with new contents. It will also notify you about the problem with your site that makes Google stop from crawling and indexing your pages.

How to add Webmaster tools to your site?

Step 1: First of all, go to Google Webmaster tools website and sign in with your Google Account. After the sign-up process has over, add the site’s URL and click “Add new site” button.  The next screen will ask you to verify the ownership of the site you are going to add. Using FTP, you can even upload an HTML file to the root directory of your website otherwise, pick the alternate method and get a Meta tag to add to your WordPress site.


Step 2: To add the Meta tag, install and activate the Insert Header and footers plugin and copy the tag given by the Webmaster tools as given below:

<meta name=”google-site-verification” content=”VerificationKeycode”/>

Step 3: Visit Settings->>Insert Headers and Footers and paste the tag line in the header followed by saving the changes. Go back again to Google Webmaster tools site to verify it.

If you use WordPress SEO plugin, copy the verification key of the Meta tag and paste it into it. On the WordPress admin sidebar, click on SEO and go to the webmaster tool section for pasting the key in the Webmaster Tools field and save it.


Step 4: After verifying your website, add your XML sitemap.

Sitemap is said to be a list of pages on a site which is readily available to all users, and it is one of the ways by which website owners tell search engines about the existing pages on their site. The main thing is that it helps the Google to crawl your site quickly.

Step 5: This is the final process after adding Webmaster tools on your WordPress site. It will take few minutes to display your site data.


How to install Google Tag Manager to your WordPress?

Do you wish to add multiple snippets to track conversions and traffic? Don’t worry about it. Using Google Tag Manager, you can add and manage all scripts and that too from a single dashboard. It operates with third party analytics and other tracking platforms. More than that, you can even use custom HTML for adding own tracking or adding any other code you wish.

Getting Started with Tag Manager

As you already know, Google Analytics account should be created at first for your website. Stop while getting the tracking code during the process. Instead of pasting it directly in the WordPress, use the tag manager to do that.

How to Set up Tag Manager?

Are you ready to add Google Analytics? The very next step is to establish Google Tag Manager. Have a look on the Google Tag Manager website and sign up using the Google account you have already used with Google Analytics.

Step1: After the log-in process, you will be directed to the “Add new Account Page.” There, you need to provide a name and click “Continue”.


Step 2: This process requires a container to be added to your account. It may be either an app on an iOS or Android or a website. While using website, you can use the domain of the site for the container name. You have rights to add any number of containers for each account and after it’s done, click the “Create” button.


Step 3: Once, your account has been created with the container; there you will see the container dashboard as given below.


Step 4: In this process, you need to add a new tag by clicking “Create New Tag.” For instance, we take Google Analytics as of now, but you can add even more tags available. Click on custom HTML for adding any other custom code snippets.


Step 5: While choosing Google Analytics, you need to pick one from Universal Analytics or Classic Analytics. From that, select Universal Analytics and give your analytics tracking ID.


Tracking ID – what does it mean?

It is a unique code which enables the Google to identify your site, and this ID can be obtained by logging into the Google Analytics account and also by visiting the Admin tab.

Step 6: To get the tracking code link, select the account and property of your site and click on “Tracking info”. This will reveal you the tracking ID and copy it right now to paste it in the Google Tag Manager.


Choose the Page View under the track type and again click on “Continue” button.


Step 7: It is a must to select all the pages and click on “create” button since the tag configuration has been asking you to fire this tag.


This is the time, where the Google Tag Manager shows a tracking code such that you need to add it to your WordPress site. Finally, copy the code as given below.


Add Tag Manager Code in WordPress


 With Plugin

As you have already done, you need to install and activate “Insert Headers and Footers” plugin. During activation, visit Settings->>Insert Headers and Footers. Once it is installed, paste the tag manager code at the header section and save the changes to store the settings.

 Without Plugin

If you are not willing to use the plugin, go to Google Tag Manager Code in the WordPress theme or Child theme. Paste the code after the <body> tag by just editing the header.php template.

 Publishing your container


This is the vital part because the tags in Google Tag Manager will not go live once this has not done. Click on the publish button from the Google Tag Manager dashboard.


Hence, Google Tag Manager Installation has successfully been done.

Hope you will get to know something from this section. If you have any queries related to this article, you can write us. Support us on Twitter and Facebook and share if you like it.


(Visited 250 times, 1 visits today)