How to Install and Setup Google Analytics to WordPress Blog


Want Track your audience status Setup Google Analytics on your Blog. Hello friends! How are you all? In my previous post I have already mentioned . After that today in this post I am going to share how you can install and setup Google analytics to WordPress blog. When we setup a blog we want to know how many visitors visit on our blog or website and how your audience browse your site. It is not important that your blog gets 500 page views or 500,000 page views in one day, the most important is status to know.

Setup Google Analytics

This is the best way to know the behavior of your audience about your site, it allows you to track all the status of your audience, so that you can know about your visitor what they want from your blog, which help you to make your blog friendly to your visitors. Google analytics is the best solution to know real-time traffic status of your blog.

In this post I will tell you why google analytics important and how you can setup google analytics to WordPress blog.

What is Google analytics?

Google analytics is a free web analytics services offered by google. When you setup a blog, you want to know how much traffic is coming on your blog and from which country it is, which device did the users use to visit on your blog and how long do they stay on your website. Google analytics show all reports about your visitors. You can also know the bounce rate status when a user visit on your blog. Google analytics also show the real-time status of your blog, from this you can know how many users is live on your blog at this time. And all this will happen when you setup Google Analytics on your blog

So Let’s started how you can install and setup google analytics to WordPress site.

There are 2 ways to setup Google analytics on your WordPress blog. In this post I have mentioned all ways, you can use any of them, all ways is 100% working.

But before that, you have to Add your blog to Google Analytics. So let’s first know how you can Add your blog to Google Analytics.

How to Add your blog on google analytics

Fist open Google analytics official website, and login with your google account. If you don’t have any google account check how to create google account.

After successfully login will appear a screen look like below image

In the above image section you need to Click Signup button


Next you need to fill the required information about your site such as website name, url, country and time zone, and click Get Tracking ID button.

tracking id

Once you click on get tracking code button then google ask to accept Term and Conditions, Now Click Accept button then you will redirect a new screen , which show the tracking code of your website.


Now open a new tab in your browser and login to your WordPress dashboard.

As I mentioned above, I will tell 2 Ways to setup Google Analytics on WordPress blog. Now you can choose any one ways to setup Google analytics.

Also Read

Way to Setup Google Analytics to WordPress Blog

Below i have mentioned 2 method to setup Google Analytics to WordPress blog, you can choose any one method from the following as you needed.

Method #1 – Setup Google Analytics via Plugin

There are many plug-ins available on WordPress that help you to simplify your work, you can also set up Google Analytics using the Google Analytics Plugin.

Step#1- Go to Plugins>>Add New and Search ‘Google Analytics‘. Install and activate this plugin.plugin

Step#2- After Successfully install above plugin a new option will appear in your Dashboard Admin bar menu which labeled Google Analytics. Click on General Setting which you redirect to the plugin authorization page where you need to authorize your plugin with google analytics account. simply click Authorize Plugin Button.

authorized plugin

Step#3- Next you will appear a new page which ask you to enter access code. If you have access code you can Enter it and if you don’t have any access code then click Get Access Code link.


Step #4- Next you will redirected to Google Analytics Page where you need to Login with your google analytics account and allow the plugin to authorize your account. Click Allow button.


Step #5- After allow you will see the Authorize code, simply the code and past it into access code text box where plugin ask to Enter access code in Step#3. and Click Save Access Code Button.


Step#6- You have sucessfuly Setup Google Analytics on your wordpress Blog. you can also configure this plugin as you needed by using Settings option of this plugin.

Method #2- Setup Google Analytics via Theme Editing

In this method you need to have bit knowledge of codding to edit your template code, because in this method you need to add Google Analytics code manually in your theme. let’s started.

Step#1- Go to Appearance>>Editor and click header.php file.


Step#2- Now Find the </head> section in your theme code and past Google Analytics Tracking code above the </head> tag.

Note- You need to copy Google Analytics Tracking code which you was found in google analytics account.

copy past

Step#3- Finally Click Update File Button.

I hope This tutorial of Install and Setup Google Analytics to WordPress Blog is very useful to all of you if you like this post please share it with your friends via social networking and if you have any question regarding with this post then you can ask with me in below comment box.


Did You Enjoy this Article ?

If yes, Then enter your email below to get more such great articles in your inbox For FREE !

About Akhilesh Kumar 101 Articles
Hi Guys, I am Akhilesh Kumar, a professional-blogger from Jharkhand, India. Here at BanshidharInfo I write about Blogging, SEO, WordPress, Social-media, Technology and Making Money online.

Be the first to comment

Leave a Reply

Your email address will not be published.