How to Add Google Analytics to Your Blogger Blog

Yesterday we talked about Google Analytics, Google’s free service that lets you track the performance of your websites and blogs from one simple, easy-to-use interface.

Grab Your Google Analytics Code Block

  1. Login to Google Analytics at http://google.com/analytics/. The main Settings page loads.
  2. Click on Add Website Profile. A form displays.
  3. Select Add a Profile for a New Domain.
  4. Enter the URL of your site or blog.
  5. Select your country and time zone. Click Finish.
  6. Analytics provides you with a code block – a swatch of HTML – to add to your site’s pages.
  7. Highlight the code block and then copy it by selecting Edit > Copy or Ctrl-C or Command-C.

Add the Google Analytics Code Block to Your Blogger Blog

  1. Login to http://www.blogger.com/. The Dashboard loads.
  2. Under the blog you want to add Analytics tracking to, click on Layout or Template.
  3. Click on Edit HTML. An editing screen for your blog template’s HTML displays. Don’t freak out. Just scroll to the bottom.
  4. Look for the end of the template. It’ll look like:

</div> </div>
<!– end outer-wrapper –>
(Google Analytics Code Block is going to go here!!!)
</body>
</html>

  1. Put your cursor right before that </body> tag.
  2. Paste the Google Analytics Code Block by selecting Edit > Paste, Ctrl -V or Command-V.
  3. Click Save Changes.

You have now added the Google Analytics Code Block to Your Blogger Blog.

Check Your Work

  1. To ensure that you have successfully added the Google Analytics Code Block to your Blogger blog, go back to http://google.com/analytics/.
  2. Next to your blog’s URL it will say either Receiving Data (you were successful) or Tracking Not Installed (something is amiss).
  3. If it said Tracking Not Installed, click on Check Status. Google then checks your blog for the Analytics Code Block and reports back if it find it or not.
  4. If not, try re-pasting the Code Block in.

148 comments

  1. Implemented Google Analytics on my site a few months ago.
    I have been using it for a few months yet keep discovering features all the time.
    I suggest you write an article on the features of Analytics so we will all learn new tricks.

    • Google analytic tool is a great SEO tool for your website because it helps you to see your site back-links and shows you where your traffic is coming from.

  2. If you’re using WordPress. There’s a couple of great plugins that really make this simple, as well.
    I use Ultimate Google Analytics.
    Simply add the plugin into your plugin folder, activate and enter your Google Analytics ID in the Options panel. Your done. Great thing about it, if you’re logged in as admin, you won’t be tracked by GA.

  3. Thank you for the tip, I have analytics running on my WP blogs, but was curious if it was possible on Blogger, now I know.. Thanks!

  4. I have just installed Google Analytics on my new WP blog and it was very easy.
    And thanks Dawud for the useful link!

  5. Andy, Have I told you lately you’re a flipping genius?
    Not to mention an acute listener…
    YDM!
    Hep

  6. Fantastic! I checked both Google Analytics and Blogger and neither gave me the info I needed. Your explanation was so clear and simple – Thanks a lot!

  7. Sure PI, glad to help out.

  8. Hi Andy, great post as usual, I love this series of posts that you have on implementing Analytics for different blogging platforms.
    I have recently done some work to put together all the info on setting up Analytics for Ecommerce website.. and thought I would put it in a blog post. You can check it at Guide to Google Analytics Setup and Ecommerce Tracking – would appreciate your comments on this.

  9. Is there a way to show each of the four graphs (Visits and Pageviews; Geo Map Overlay; Visits by New and Returning; and Visits by Source) of the Executive Overview of Google Analytics on a Blogger sidebar?

  10. Thanks the tip. Blogger is not as intuitive as you would like it to be, I hadn’t seen the “Edit HTML” link before you pointed me to it.
    Great post!

  11. I’ve recently tried to add analytics to my blog in blogger and haven’t had success. Blogger keeps changing my double quotes to " . Anybody else had this problem? Anybody know the solution? Thanks in advance for any advice.

  12. nice! it works perfectly!

  13. Great and simplistic information you set out above – thank you.

  14. Thank you for these instructions!

  15. I can’t seem to find in my blog html, although I see
    Is this where the code goes?

  16. I can’t seem to find (“”) in my blog html, although I see “(
    )”
    Is this where the code goes?

  17. Perfect instructions. Thanks.

  18. Hey there, is google analytics automatic on some blogs? I see on my blog, that SSL-analytics shows up in the upper left hand corner when I log in.
    Every time I log in I see that there…..I wondered if was automatic with the new version or is someone tracking me at google because my blog is controversial.
    I haven’t added analytics to my blog yet…. So I don’t know why that is showing up. Hope you can answer thanks.

  19. thanks for the blogger analytics tip

  20. Google Analytics is very nice web statistics program.
    Alex

  21. payday loan canada loan payday…

    Beginnenmit internet spiele unbegrenztes frei spiel…

  22. Bless you for making explaining this so clearly.

  23. Thanks a ton. This piece of info was of great help to a non-techie who does not absolutely get any hang of these codes.
    Cheers,
    Ruby

  24. I know I am a moron when it comes to computers, but I have followed your directions exactly and still cannot get it to work… PLEASE HELP!!!

  25. I used these instructions and the tracker code is in the exact right spot in the html but Google Analytics keeps saying tracking code not detected.

  26. Thanks for the instructions! It’s so simple, and yet I couldn’t find a clear guide any where until I stumbled across your blog (thanks to a hefty Google search).

  27. Great, Ive just set mine up, thanks

  28. I’ve tried this for two weeks, and it is definitely not working. Help?

  29. Great article. Thanks.

  30. Hi Andy, I dollowed the instructions that u have given for tracking vistors to my blog page. I have created an account on google analytics. Then i also pasted the tracking code into my blog’s html code. However it isn’t getting saved. i’m getting the following error message
    “We were unable to save your template
    Please correct the error below, and submit your template again.
    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 content of elements must consist of well-formed character data or markup.

  31. Hey Andy, the above(in the edit html) procedure works only for classic templates.
    @Dhawal Chotai and Breeanne
    What you have to do is add the code in the html/Js page element. Go to Template, Add a Page Element, HTML/JS Script.
    And it works.
    Jyoti

  32. Thanks so much for the easy to follow instructions!

  33. Very detailed explanation. I have just started using blogger and adding google analytics is a very useful option.

  34. Thanks. I managed to add analytics code with your information.
    Its got many cool features.

  35. Thanks for the clear info!
    Happy to start getting some stats

  36. Followed your instructions, had no problems, all done in about a minute – thanks very much!

  37. Thanks… for your writing..it’s a very good resource !! :-)

  38. I just added the HTML/JavaScript page element and pasted the code into it. It was a cinch. Leave the title blank.
    Really, it couldn’t be easier.

  39. I will try the plugins, nice info!

  40. Thanks for that, found your entry by Google and successfully applied the steps you suggested in less than 5′!

  41. Hi Andy,
    You are great – such a nice explainer – as somebody has already pointed it out before me – I got the info neither in analytics nor in blogger (the two places i was looking for it), and then came ur page.
    Thanks a lot.

  42. I have recently reached the point where I am brnching beyond Adsense and making individual ads for people. this helped me add Analytics in order to track them thansk so much

  43. soittoäänet kaverille…

    Before soittoäänet com kummeli soittoäänet…

  44. Very useful post. Just what I was looking for!

  45. disney free mobile ringtones…

    There is free lg ringtones verizon cell download free phone ringtones…

  46. free ringtones for nextel phone…

    One of free motorola mp3 ringtones free cingular music ringtones…

  47. Thanks so much, this was really easy to follow!

  48. I just used your suggestion. Thanks a lot.

  49. Thanks for the tip, not being an html genius, I was at a loss until I ran across your instructions.
    Cheers!

  50. Thanks, your instructions were so easy to follow. Cheers.

  51. Thanks so much – this was invaluable. I’m no expert at all and after struggling for days with various Help pages I found your blog and got it installed in minutes.

  52. Thanks! I tried doing it on my own and the template got all screwed up. After reading this, it worked!

  53. Thanks a millionfor ths info – t was very helpful!

  54. I’ve been a WordPress blogger for some time (which has statistics built in). This is my first use of blogger.com and I’m very suprised that Google doesn’t provide analysitics automatically. So the general public is suppose to be able to cut-paste javascript? Scary. Worse than Microsoft! Thanks for the instructions.

  55. Great instructions! Thanks!

  56. Thanks so much for the quick, concise tip. Worked great!

  57. hey thanks a lot i was able to add analytics script in my blog success fully. it was really wonderful working with ur details. amazing …………

  58. Very Very Great Thanks

  59. Worked for me, too, thanks a lot! The only thing I stumbled over was my own ad blocker that blocked the Google JavaScript, which led to a JavaScript error…
    Took me quite a while to figure out, maybe this post helps others who have the same problem!

  60. Thanks, helped a lot!

  61. Andy,
    Thanks for taking the time to share this information. It was very useful and saved me a lot of screwing around.
    Mike

  62. Thanks alot

  63. This sorted out a persistent little problem which no other source seemed able to help me with.
    Thanks very much!!

  64. Thanks for your information.
    That very use full.
    Once Again Thanks.

  65. I was stuck on this for 2 days but after going thru ur post I activated analytics in 10 mins. flat! Thanks

  66. thank you so much! could never have figured that out without help…

  67. Thanks for the instructions! It’s so simple, and yet I couldn’t find a clear guide any where until I stumbled across your blog (thanks to a hefty Google search).

  68. Andy, is there any way to add analytics to wordpress blog?

  69. Google Analytics is very nice web stats program.

  70. Thanks very much – seems to have worked perfectly :)

  71. Your instructions were some of the best I’ve seen EVER for installing anything – online or off, you rock. Thanks so much!

  72. thank you. my search ends here.

  73. my search ends here. thank you

  74. advance cash check credit no cash advance no credit check…

    Let”s begin low interest payday loan bad card credit credit uk cash advance loan idaho no credit credit card application payday loan cash advance loan…

  75. Wow !! This was really helpful.

  76. You would think Google would make it easy, like a one click type of thing.

  77. Thank you so much for this, very helpful and your instructions were very easy to follow!

  78. I had inserted right but then noticed a gray screen. When I used the site overlay feature. I took out the tracking code and it went a way. But now I keep getting a gray screen on my website if I try and add the code back. Do you know what I can do?

  79. I added the analytic code to blogger before tag 2 days ago. But still Waiting for Data. Is it normal? What can i do?

  80. oooh this was perfect! thanks!

  81. Thanks i use blogger and wordpress and this was realy helpful

  82. Thank you so much for these directions!

  83. Andy, your help was spot on. The step by step instructions were appreciate, thanks for putting time into this.

  84. finally i get to analyze my traffic on my blogs, i have a quite a huge number of blogs, and lemme tell you that if you can’t see what your traffic is doing in your site, you are doing nothing. thanks a lot man, i hope i can now set things right. GOOGLE ANALYTICS RULZ.!!

  85. thanks very much. super helpful.

  86. just got our blogged moved over to our domain, and we are infinitely grateful for good web citizens like you who give us step by steps on matters such as these. thank you!

  87. Worked great! thanks dude!

  88. Thank you!
    When I first got my site running I pasted the code into completely the wrong place!
    Cheers
    Sam

  89. Thanks a lot, it was really helpful.

  90. Hi!
    I used google analytics and was able to see the great effect of it. I was trying to improve my site based on the data from analytics and it was amazing and i was able to manage my traffic well.
    Thank you
    Charles
    http://www.resourcesandmoney.blogspot.com

  91. Thanks that was really nicely explained and a great help!!!
    Yours,
    Alex

  92. thx for posting this it was very helpful

  93. Very helpful. Thanks.

  94. Hi Andy,
    Will this trick work with the new ga.js tracking code

  95. great article..simple and clear

  96. Thank’s for this helful tips

  97. i have successfully added the Google analytics great option. thanks again.
    http://electronics345.blogspot.com/

  98. I just added the google analytics to one of my new sites. Thank you so much Andy for such clear, concise directions….it made it so easy!! I am going to use your site as a reference and hopefully learn more. Thanks again for the great information…!!

  99. How do I add the Google Analytics Tracking Code to my Moveable Type templates so that every time I create a new article and publish it, it will inherit the Google Analytics Tracking Code?

  100. This is a good tutorial on how to add google analytics to your blogger blog, I used it for my blog, and it helped alot. Thanks alot!

  101. LG Ringtone maker software. Follow instructions on the site…Works in 17 counries – USA, Australia and Europe

  102. Dear Sir or Madame,
    Allow us to introduce our company to your company. We are a professional, licensed and insured air conditioning and heating company that is family owned and operated.
    We here at Trifko & Sons have decided to include appliance repair to our list of services provided. Though this is certainly a benefit to you as property managers, it still does not cover the void you experience when there is a multitude of miscellaneous. repairs needed at a particular property. Therefore, after careful consideration, and a number of conversations with some property managers, we have come to the conclusion that we can easily fill this void by providing you with a complete, one stop shop to address all of these issues for you.
    In short, we are restructuring our business primarily to accommodate the property management industry. Later in this introduction I will list all of the services we will now be able handle for you.
    We have staffed our organization with a number of skilled tradesmen and outfitted our trucks in a multitude of general trades. In essence, we will be able to solve 90% of your service needs with one simple phone call, streamlining the process for your property owners and their tenants. If, in the rare instances, we can not handle a particular service request we will work hard for you, in securing the appropriate contractor to solve the issue.
    We will handle all the billing, invoicing, payments and warranty concerns in house, therefore you would only call our office.
    We are fully licensed and insured and we are dedicated to your complete satisfaction.
    The services that we provide are as follows:
    • Air Conditioning
    • Heating
    • Refrigeration
    • All major appliances
    • Light electrical
    • Light plumbing
    • Carpet Cleaning
    • Acoustical ceiling installation and repair
    • Windows & Doors
    • Bathroom Renovation
    • Concrete cutting
    • Painting
    • Fencing
    • Chainsaw Work
    • Drywall repairs
    • Garage Doors
    • Pool pumps & Filters
    • Well pumps
    • Landscaping
    • Hardwood, Laminate & Ceramic Tile Flooring
    • Pressure washing
    This is a generalized list and may or may not include your specific needs; a simple phone call to our office will answer all your questions.
    Sincerely,
    Trifko & Sons Inc. Team

  103. many thanks for this

  104. I Just installed right now, thanks for the help

  105. Helped me figure out the “Edit HTML” feature. Thanks, it’s working. :)

  106. Thanks for making things simple and easy!
    Works GREAT!

  107. Hi Andy
    Fab post – thank you. Your instructions were so clear even an idiot (me) has installed analytics!
    Thanks again,
    Beth

  108. you are such a great guy andy I very much appreciate your help

  109. Thanks for the post! Been trying to figure this out for a while and it only took me about 10 minutes with your help. You Rock!

  110. An excellent guide, thank you very much! Us complete newbies need some help sometimes.

  111. thank you so much. I’ve been trying to figure out how to add the google analytics code for like EVER!! You are my hero.

  112. THANK YOU Andy!!!
    For some reason Google Analytics wasn’t working before on my blog. After reading your blog and posting the code in the correct area, it seems to be working now. Thanks for your help!

  113. Thank you – worked brilliantly first time. Hurrah!

  114. Great tips. Many thanks

  115. Really good article!

  116. Using your super clear instructions, I just added google analytics to my travel blog http://iamitravel.blogspot.com/

  117. Great post! That was very helpful and easy to follow. Thanks so much for sharing that tip.

  118. Love your post. I hope this post will help others. Sorry for the short review.

  119. Hey man,

    You are certainly a genius, man i am impressed. it worked like miracle. thanks!

  120. Thank you for this explanation! I will try to do as described asap and start tracking! :-)

  121. See the official guidelines at http://www.google.com/support/analytics/bin/answer.py?answer=55604&topic=11126 for how to install Google Analytics into your blog.

  122. Blogger has since better integrated with Analytics. All you need is your analytics Web Property ID and there is a field in the ‘basics’ tab of the blog admin (settings) section. Pop it in and it (appears to) works!

    Commenting because this still appears in google searches despite evidently being quite old

  123. Hi. I search my html numerous times and I don’t see that part:

    Hope you can help me with this.
    Tonya

  124. Every time i forgot how to add analytics code immediately come to this site and check this article.Its really helpful to me.Thank you

  125. Thank you sir….
    Now Google Analytics is integrated to the Blogger. But I am still looking the way how to link it.

  126. I know this is an old post but in case you want to update it Blogger now has a spot to add your Google Analytics ID without having to edit templates. You can find it under Settings -> Other at the end of the page.

  127. Hi, i tried adding the code to my blog account but it doesn’t seem to work. The problem is that in teh HTML code i cannot find

    I can only find

    but no

    Is there anything else I can do?
    Thanks

  128. Please help me. I tried but it says
    Status: Tracking Not Installed

  129. I tried many times to install Analytics on my blog using that UA code but No Success,
    Thanks
    Your Trick Helped Me

  130. Hi,

    should I only add UA-xxx-xx (with or without ‘ )

    or the whole script provided by analytics

    from until ???

  131. This post is really helpful for me. I successfully add my Google Analytics code on my blog site. Thanks for this post….

  132. that was really helpful.. thank you for this post…

Leave a comment