How to Install Google Analytics in Blogger with Tracking ID

Keeping track of the site statistics is probably the most underestimated secrete of a successful blog. The ideal way to know and reach your audience is through your traffic statistics, and this much is provided by Google Analytics for Free. No one knows his audience best than himself, but Google Analytics allows us to collect even more information about a certain visitor in just few seconds.  In This article, we will comprehensively discuss why Google Analytics is crucial for Bloggers and in the end, would learn How to Install Google analytics.

Why Google Analytics is Significant for Webmasters?

Track Geography of your Visitors: 
Probably the ideal thing about analytics is that it is the only tool which keeps track of the most accurate geographical location of your visitors.. It even records significant details like screen resolution, language, Flash support, browser, JavaScript support, Operating system and much more.

This useful information helps incredibility in maintaining a flourishing community. While designing a theme, these factors would be extremely handy because it will give you the idea whether the site’s layout is compatible with your audience’s devices or not.  If users are using such browsers which do not support JavaScript or Flash then, they should avoid such practices, which could affect user experience. If users are using normal screen resolution like 1280, then make sure that the design is universally compatible.  

How Much Time They Spend?
Keeping track of average duration visits of visitor play’s significant role is building the reputation of a blog. It gives the idea whether your content is reaching the right audience or not. On the other hand, it highlights those pages which have a high bounce rate. Basically, it helps us in removing all the loopholes that interrupt a user-friendly experience.

From Where Did they arrive on your Website? 
This section will enable you to keep track of from where your visitors are landing on your website. It provides comprehensive details about the Referral as well as organic Traffic. It shows you what percentages of visitors are coming from search engines mainly Google, Bing or Yahoo. Under referral traffic, it displays all those links which are acting as a source of traffic for your site.

Which Content is Gaining Most Traffic?
It also helps in discovering that which content is getting maximum exposure from Search engines. By knowing the content, we can utilize the traffic and can make some extra affiliate sales from that certain content. Here, you have to be productive and think how you can utilize the traffic flow. It will also report those contents which have less traffic flow that needs your attention.

How To Sign up For Google Analytics?

First thing first visit the Google Analytics sign up page and log in through your GMAIL Account. However, if you do not have a Gmail account, then first register a new account at Gmail.
After signing-in to your Gmail Account it will redirect to a new page where a window will prompt like shown below. This is the place where you will sign up for Analytics. Just hit the "Sign UP" button and head to the next step.
Now in this step you have to enter your personal details like Website name, Website URL, Time zone and other stuff. Carefully fill the details correctly and once done, hit the "Get Tracking ID" button and proceed to the next step.
On pressing "Get Tracking ID' button, a new window will prompt, Which would consists of a Google analytics terms of service agreement. Careful read it and press "I Agree" button, and head to the next step. 
Now after agreeing to the agreement, the page will automatically redirect you to a new page that would help in tracking your website. On the top, there will be a "Tracking ID" and on the bottom there would be a "Tracking JavaScript Code". 

How to Install Google Analytics in Blogger

There are 2 ways to install Google analytics in Blogger Platform. Either utilizing the whole JavaScript Code, or by using the "Tracking ID". 

Tracking ID Method
Copy the "Tracking ID" i.e. UA-XXXXX-Y or UA-XXXXX-YY from the Analytics Admin Panel. Now go to >> Your Site >> Settings >> Other >> Google Analytics >> and paste your Tracking ID in the text area. 

Analytics Code Method:
Add the following code in your Template right above the </body> tag. Remember: Don't forget to insert your tracking ID in the coding. Replace UA-XXXXX-Y with your tracking ID. Once every thing is done, Save the template.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-Y']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);


In this era, it is a must have for every blog no matter whether they are large or small. It's a tool that keeps and eye on your visitor every day, every hour, every minute, even every second. Feel free to ask your questions and queries using the comment form below.

The Editorial Team of MyBloggerLab consists of a group of Professional Blogger geeks Led by Syed Faizan Ali (Founder of MyBloggerLab).

Comment With:
Choose Wisely!


February 9, 2013 at 5:59 AM

Why a professional Blog is publishing blogger basics .They are already published on thousands of websites and blogs what is the logic :)

Editorial Team MOD
February 9, 2013 at 6:16 AM

Firstly, You have violated one of our Comment Policy. By using Your URL in Author BIO. The only reason we haven't removed it to let everyone know that why we are publishing these articles. So here how it goes.

1. You are a professional blogger? but others are not. We have thousands and thousands of people visiting this site. They do need to learn basics because they are not a professional webmasters from birth

2. You know Google Analytics is quite good for websites but others have no idea what does the term Analytics stands for? The reason why we call them Beginners

3. If They are published on Thousands and hundreds of websites? does that mean it is reaching the whole world? You Buy a New Mercedes Does that means others don't need to buy the same care of same model? I Guess not.

4. MyBloggerLab is a "Resource site for Novoice Bloggers", we want them to be a professional by teaching them all the tips and techniques that a Professional Webmasters uses. No matter whether its basic or whatever you would like to name it.

Hope that answers would help you to learn what is the motive of our Team. Peace and Blessings budddy

February 9, 2013 at 6:26 AM

Syed Faizan Ali Thanks for both this article and your support with the beginners and learners.

February 9, 2013 at 7:25 AM
This comment has been removed by the author.
February 9, 2013 at 8:16 AM

Well fully agreed with Syed reply.I have one question bro how can i add my second blog to same analytics account means how to add multiple blogs to analytics?

February 9, 2013 at 8:24 AM

what a great answere you gave him, lovely just keep on going, we are loving your ideas.
even though i am a six month older blogger, but i still havn't put the tracking code into my template doing it now after seeing your post. thanks keep it up

Editorial Team MOD
February 9, 2013 at 8:41 AM

Xebii Buddy. If you want to share some views than please don't remove them because I can read them but my dear readers would be unable to read what you have said. So Since you have deleted your comment than I will Tell what you said in above Comment

Xebii MJ Said:
The post still lacks at some points!
What if a blogger blog using a custom template, and there is no
<b:include data='blog' name='google-analytics'/>?
then this whole post would be failed, only a few % of blogs are using default templates provided by Blogger.

Going hard on other bloggers doesn't hide the fact that you ran-out of ideas! "

My Answer:
Do you think this post lacks? I don't think so buddy, i guess you have to refurbish your skills buddy because there is no need to add the Include attribution to the Templates either that is provided by Blogger or it is custom template. You can try both methods and it will work accurately without adding the attribution that you quoted.

As per the Ideas, Well to be honest, we have some tons of ideas and the team is working daily to provide some highly professional content and this article is the result of that.

Take Care buddy. Peace

Editorial Team MOD
February 9, 2013 at 8:45 AM

Thanks Buddy for supporting us. Well the solution is quite straightforward. Do as we said below.

1. Go To
2. On the Right Side of your screen you will See "ADMIN" button Press it.
3. Now Press "New Account" Button and add your new Website.

Hope that solves your problem.

Editorial Team MOD
February 9, 2013 at 8:46 AM

That's Great buddy, implement the tutorial as soon as possible.

February 9, 2013 at 9:49 AM

am unable to paste the code on my template

Editorial Team MOD
February 9, 2013 at 9:53 AM

We Prefer the Tracking ID Method. Nonetheless what error you are facing?

February 9, 2013 at 11:50 AM

fantastic post.....

February 9, 2013 at 8:57 PM

great post! I should have done these steps a long time ago, but I have a problem with google analytics loading speed... it almost took me 30 minutes by just logging in, my Internet speed is running at 1mbps, still I have problems with that site... I dont know whats the problem, my internet connection or the website... I just dont get it, why google analytics loads very slow on my laptop... do you have any idea why...

February 9, 2013 at 11:30 PM

Helped me Alot ..
Thanks Bro ...

Check my BLog ALso ==>

February 10, 2013 at 1:01 AM

Nice post Syed, and agreed with your answer. Waiting for more tips like this !


February 10, 2013 at 4:39 AM

Very ugly homepage customization. Revert it back to draft. Please. Its so yucky. Don't do that ever again.

February 10, 2013 at 4:40 AM

Syed, I guess he is using OpenId as his commenting system. So, be a little kind with people. I am seeing that you are becoming rude day by day. This is not done yet. I guess you should read your own emotion control post.

Editorial Team MOD
February 10, 2013 at 5:02 AM


That's not open ID mate. Its pure NAME/URL thing. As per the Rudeness. I am not at all. Read the Above comments properly :P. They have no harsh or anything else.

Have a nice time

February 10, 2013 at 6:20 AM

Thanks for another very inspiring and informative post.


February 11, 2013 at 6:17 AM

Syde bhai kia may apke blog ka footer section use karsakta ho.. all your footer section along with cartoon faces... please give me its little code if you want...otherwise if you want to take then i may take it from your template source code....

if you permission me then.....otherwise i do not effort on you.... thats your designing and your hard work... thanks and hope for earlier reply

Editorial Team MOD
February 11, 2013 at 6:34 AM

Sorry Mate that Vector art and the LOGO is our copyrighted. You cannot use them.

We Repeatedly Report different website who ripped our Theme by coping.


February 11, 2013 at 7:55 PM

Thanks for the article!!very much informative and useful..keep up the good work!!

June 24, 2013 at 3:38 PM

Good Job! And I like your style.

August 7, 2013 at 1:43 PM

How do I get rid of it if I ever wanted to and get back the Blogger statistics, without damaging any views I got over the time I had the Google Analytics?


August 15, 2013 at 6:24 PM

how many days to get the tracking code i did what you said but my tracking code not yet installed

Editorial Team MOD
August 20, 2013 at 5:53 AM

It takes seconds to track your blog. Once you have installed the code correctly.

January 6, 2014 at 3:34 PM

Thanks i have installed but how do i know it is installed successfully and from where i can monitor traffic.

Editorial Team MOD
January 27, 2014 at 2:45 PM

It would start tracking your site the moment it gets installed in your computer. Check out Live Visitors.

July 19, 2016 at 11:38 PM

thank you for your information :)

Post a Comment

We’re eager to see your comment. However, Please Keep in mind that all comments are moderated manually by our human reviewers according to our comment policy, and all the links are nofollow. Using Keywords in the name field area is forbidden. Let’s enjoy a personal and evocative conversation.

Helping You to do Cool Things With Blogger Since 2012™.

© Copyright 2012 - 2018. MBL Networks, All Rights are Strictly Reserved.