Welcome, visitor! [ Login | Sign Up ]

How to Install Google Analytics on Blogger

Google Analytics Blogger LogoWouldn’t it be nice to know how many people actually visited your blog each day? How about knowing which of your posts are the most popular? Well surprisingly Blogger doesn’t currently offer any native blog analytics but fortunately there is Google Analytics — available for free.

Google Analytics is a great tool that will show you all sorts of useful information about how people found your blog, keywords they searched on to find you, where they came from and even how long they stayed. You’ll learn more about where your visitors come from and how they interact with your blog. This is a must tool if you are trying to build a profitable blog otherwise you are flying blind!

This article will show you how to add Google Analytics to your Blogger blog. It’s a fairly simple process and doesn’t require any technical skill at all.

Step #1 – Setup a Google Analytics Account

Go to Google Analytics and sign in using your Blogger login. If your account doesn’t work for some reason, you can create a new one instead. Once you login you’ll see a screen that looks like this:

Google Analytics Blogger Sign Up Step 1

Click on the “Sign Up >>” button and proceed to the next step which will ask you for your general information. Website URL, Account Name, Country, and Time Zone. The screen will look like this:

Google Analytics Blogger Step 2

If you noticed, I just put my Blogger url (without the https://) and called it “David’s Account” because this is your top-level container for 1 or 100 different websites so it’s a good idea to name it something more general. The next step will ask you for your contact information which includes your first name, last name, phone number, and country. Easy so far right? 🙂

Google Analytics Blogger Step 3

Your last step in signing up will ask you to accept the user agreement terms and conditions which you should read (just kidding…who actually ever reads these entire legal terms anyhow?).

Google Analytics Blogger Step 4

Now this next screen is very important. This is the code you will need to copy and paste into your blogger template. Go ahead and click into the box and it will automatically highlight the entire block of code for you. Now you need to copy that code and paste it into notepad or into a MS Word document. Save it as you’ll need to use it later.

Google Analytics Blogger Step 5

After you click on the “continue >>” button you will be taken to your brand new Google Analytics dashboard! You will see your blogger blog listed but with no analytical data….yet.

Google Analytics Blogger Dashboard

Ok, now you are done with setting up your Google Analytics account. The next step is placing the tracking code into your Blogger template so it can report back to Google Analytics and provide you with some cool data points.

Step #2 – Adding GA Tracking Code to Your Blogger Template

This is not a very difficult step even if you are afraid to touch your template code. Login to your Blogger account and then click on the “Layout” => “Edit HTML” tabs. This will bring you to the template code. Before you make any changes, I advice you to back up your template just in case there are any problems. After you’ve done so, continue reading.

Now in the edit template html code window, scroll all the way to the bottom of your template code and look for the </body> tag. There should only be one of these closing tags in your template. If you can’t find it then your template wasn’t properly created and you should add one right above the </html> tag.The </html> tag should always be your last line of code in your template. It signifies the end of your template.

Ok, now go back to the code you saved before in a Word Doc from Google Analytics. You are going to copy it and paste it right above the </body> tag as illustrated in the image below. The yellow highlighted code is the new GA code I just pasted into my template.

blogger google analytics code 2

Save your template and you shouldn’t get any error messages. If you do, it’s most likely not related to this GA code and something else with your template itself. Assuming you’ve been successful with your save, you are all done embedding the GA code in your template!

Step #3 – Confirm Google Analytics is Tracking

Go back into your Google Analytics account and look at your dashboard. Most likely you will see a little yellow exclamation mark under the “status” column that looks like this: google analytics tracking not installed. This means everything isn’t working properly yet which is fine because we are about to tell GA we just added the code. From your dashboard, click on the “edit” link which is located to the far right.

Google Analytics Blogger Dashboard Edit

After you click on that link, you’ll see another screen like below. It will say “Tracking Not Installed” followed by a link “Check Status”. You’ll want to go ahead and click on that link which will tell GA to visit your site and look for the new code you just pasted in your template.

Google Analytics Blogger Dashboard Check Code

Assuming you pasted the code in there as instructed above, GA will find the new code and begin tracking everything on your blog. If you are still having problems, it’s most likely something to do with GA and you should read their help guide to troubleshoot your problem.

Google Analytics Blogger Dashboard Success

The message seen here, “Waiting for Data” means you have correctly setup GA and data is being gathered! Click on the top left Google Analytics logo and it will take you back to your dashboard. From there click on the “View report” link and that’s where all your very important Blogger visitor data will start appearing!

Google Analytics Blogger Dashboard Results

Now it usually takes an hour or so before you will see any data (maybe longer if you don’t get much traffic to your blog) so please be patient. Trust me, you’ll be logging in at least once a day just to see how much traffic your blog is getting. It’s very addicting and powerful information to learn from. You’ll be surprised which posts are your most popular and what countries people are coming from to read your blog.

Google Analytics is very powerful and we have just learned how to install it into your Blogger template. We haven’t even scratched the surface on the features and reporting it can do. For most Bloggers, this will be enough. Data will be collected and you will just review it. Others with more in-depth goals (like selling products or services, creating a sales funnel, etc) will want to spend more time learning GA. Hope you enjoyed the tutorial and don’t blame me for your new found addiction!

Ready to super charge your blog? Check out our professional premium blogger templates or make money by joining our blog affiliate program!

If you like this post then please consider subscribing to our eBlog Templates RSS feed. You can also subscribe by email and have new templates and articles sent directly to your inbox.


  1. Back to Basics: Setting up Google Analytics on your Blog | Google Caffeine SEO on July 21, 2010
  2. How to run Analytics on your blog… « Thoughts on Digital Marketing on November 18, 2010
  3. Hướng dẫn cài Google Analytics cho Blogger  | Nkn Page on December 11, 2010
  4. Blogging 101 « Spearmint Baby on April 27, 2011

363 Responses to “How to Install Google Analytics on Blogger”

Jorgen on Jun 20, 2010, 11:21 am  

Great article. When working with blogs an social media, the lack of real time reporting in Google Analytics can be a problem.

See a lineup with other free web analytics solutions here: http://tips4php.net/2010/06/14-free-alternatives-to-google-analytics/

shahid mahmood on Jun 26, 2010, 5:15 pm  

thanks its working

Bob on Jun 26, 2010, 8:29 pm  

thanx for this intro. i was really scared to fumble on my blog script but it worked. great. i still wonder what the warning in GA is about not using the old statistics script. too tech for an amateur. nevertheless thanx for providing this help.

Jorge on Jul 8, 2010, 8:52 am  

Perfect. Thanks a lot. Great tuto.

Debbie on Jul 9, 2010, 6:17 am  

Thank you for sharing this and making it so easy to understand! Google’s tutorials were of no help. Yours were great and the screen caps made it very easy to know I was doing the right thing. Thank you for taking the time to share this. I am sure it has much more than the 300 commenters who have posted so far!

Anaia on Jul 14, 2010, 3:37 am  

Thank you very much for adding the bit at the end on how to get GA to update the status. I thought I had entered the code incorrectly until I read this. everything is working great now.

hotbox on Jul 14, 2010, 9:51 pm  

TRIED this but the Green CHECK did not happen to me, I got a white clock on that position.. still need help although I did everything perfectly.

Emma on Jul 20, 2010, 4:31 pm  


Linda on Jul 22, 2010, 12:14 pm  

I’ve got one of the new design blogger templates and my last line reads “id=’footer-2-1’/>

It will not allow me to add before the last html. If I insert it the message I’m getting is: “Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The element type “html” must be terminated by the matching end-tag “”.

So just where should I put the Analytics code? Thanks

Rue on Jul 24, 2010, 4:05 pm  

Why does google analytics tell me that I should put the script immediately before the tag? Does that make any difference?

Lee on Jul 26, 2010, 2:53 pm  

Thanks. Excellent tutorial! http://zoidge.blogspot.com

Mark Lindsay on Aug 5, 2010, 1:27 pm  

Hi there,
Excellent post with some great information. I now finally have Google Analytics added to my blog thanks to you. Keep up the informative posts!
Kind Regards

Eric B on Aug 10, 2010, 7:24 pm  

Too bad Google doesn’t have such an easy and helpful document to figure out the status of installation. Thanks!

Krystal D. on Aug 12, 2010, 9:21 am  

Thank you so much for this!

PHSTREAM Live tv and Online Radio on Sep 7, 2010, 4:52 pm  

big help for us. Thank you for sharing.

Paula on Oct 4, 2010, 12:54 am  

Sent from heaven! Thanks so much. This was complete and beneficial.

Sanne on Nov 2, 2010, 7:53 am  

Hello! Thankss soo much for this!
Hm, maybe I’ll regret it why I didn’t install GA before. Hehehehe. Just have to see how it’s going to work out, just finished the setup!

Muzammil Hussain on Nov 8, 2010, 3:09 am  

Hi David
your blog is really helpful for me. i have installed GN in my blog by your assisting blog. so i am eager to find how GA work.
content writer

Manuel Ignacio López Quintero on Nov 9, 2010, 2:02 pm  

Thanks for this article!

Now I have Analytics on my Blogger blog! I prefer Analytics than the Blogger Stats!

Thanks again!

Alex on Nov 28, 2010, 10:19 am  

You are just amazing ! I was visiting other’s tutorial’s and was not working but with your tutorial all it’s work ! thank’s

Danny on Dec 14, 2010, 2:49 am  

Nicely done.

I had a slight hiccup, though, it was not to do with your instructions which I found to be incredibly clear.

Many thanks,


Amir on Dec 15, 2010, 3:42 am  

Great David, such a good tips

Lynne on Feb 20, 2011, 11:47 am  

Thank you very much. I looked at other sites but none were as clear as yours. Thanks for keeping it simple and using the pictures.

Specialsedu on Feb 25, 2011, 9:00 am  

i like this post, realy informative. thx

wanda alex on Mar 3, 2011, 9:39 pm  

such a great guide. thanks so much just installed code in my blog.
thanks once again.

Nick on Mar 4, 2011, 6:33 am  

Many thanks for such clear help!

php test on Mar 23, 2011, 12:50 pm  

Dear i am very happy to install GA on my Blogger with your Kind help . share more about Ga thanks 🙂

Rajit on Apr 14, 2011, 11:28 am  

Thank you. The process is wonderfully explained – was very easy to understand cept the part where I’d to search for “Layout > Edit Template” tab.

I couldn’t find such a tab – but when I checked the “Design” tab under “Setting”, I knew what you were talking about.

Thank you very much.

Alison on Apr 20, 2011, 10:39 am  

Thank you! Success! Really appreciate the explanation in layman’s terms, I am the ultimate newbie.

Steven Powers SMP on Apr 26, 2011, 5:29 am  

Thank you very much. This was very helpful and most importantly it was accurate.

Thanks again,

After the Pulpit on May 2, 2011, 9:48 am  

Really appreciate the help. This was easy with your step by steps. Thanks.

Habib on May 3, 2011, 9:53 pm  

Hi, This post is really helpful to new blogger as well as experienced. The presentation of post is very clear to understand. Thanks.

Hackrishna on May 4, 2011, 11:03 am  

I learned to Install Google Analytics from this page n Now have a really good Analytic Stats n Views ….
Thanks 4 the Contribution .. 🙂

Lindsay on May 26, 2011, 9:06 pm  

Thank you thank you!! Your tutorial worked beautifully. 🙂

sandeep kumar on Jun 2, 2011, 9:14 pm  

thanks very very helpful and informative. thanks keep doing such stuffs/

anish on Jul 17, 2011, 12:52 am  

will it work if I just post the code in a HTML/JAVA script gadget in my sidebar??

Leeah on Jul 27, 2011, 12:10 pm  

Thank you this was a lifesaver

Dewey on Jul 31, 2011, 10:45 am  

Thank you! This was the best post I found

pune packers and movers on Aug 27, 2011, 4:59 am  

really very help full thank you for sharing.

KRIZZA on Oct 14, 2011, 4:52 am  

Thank u so much for this tutorial. I’ve tried a number of tutorials online but they seemed to have not worked for me. I tried yours and I’ve done it pretty fast. Thanks a lot!

One more question though…how to add another website under the same account?

Elizabeth Goodwin Brown on Oct 17, 2011, 12:46 pm  

Thank you! This was really helpful.

Tips Blogger on Nov 7, 2011, 2:48 am  

Thanks friend. nice articel… 🙂

Tara on Jun 3, 2012, 6:18 pm  

Thanks so much. I looked at three different “how to”s and yours was the best!

DAniel on Jul 13, 2012, 4:25 pm  

Thanks for the informative article, very helpful!

How to use Google Analytics. on Aug 6, 2012, 10:28 pm  

Thank you so much for this!

Ashik Rahman on Jan 6, 2013, 3:46 am  

Very Helpful post…. Thank you very much.