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.

114 Comments

  1. Posted January 29, 2007 at 8:17 AM | Permalink | Reply

    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.

  2. Posted January 29, 2007 at 10:22 AM | Permalink | Reply

    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. Posted January 29, 2007 at 10:08 PM | Permalink | Reply

    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. PI
    Posted January 30, 2007 at 4:11 AM | Permalink | Reply

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

  5. Jay
    Posted January 30, 2007 at 5:11 PM | Permalink | Reply

    Andy, Have I told you lately you're a flipping genius?

    Not to mention an acute listener...

    YDM!

    Hep

  6. Posted January 30, 2007 at 7:24 PM | Permalink | Reply

    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. Posted January 31, 2007 at 4:46 AM | Permalink | Reply

    Sure PI, glad to help out.

  8. Posted April 13, 2007 at 1:34 AM | Permalink | Reply

    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. Posted April 29, 2007 at 10:18 AM | Permalink | Reply

    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. Posted May 14, 2007 at 8:55 AM | Permalink | Reply

    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. Posted July 5, 2007 at 8:58 AM | Permalink | Reply

    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. Posted October 3, 2007 at 12:37 AM | Permalink | Reply

    Thank You

  13. kerb
    Posted October 6, 2007 at 1:34 AM | Permalink | Reply

    nice! it works perfectly!

  14. Posted October 9, 2007 at 9:06 PM | Permalink | Reply

    Great and simplistic information you set out above - thank you.

  15. Posted October 10, 2007 at 8:55 AM | Permalink | Reply

    Thank you for these instructions!

  16. Posted October 11, 2007 at 8:06 AM | Permalink | Reply

    I can't seem to find in my blog html, although I see

    Is this where the code goes?

  17. Posted October 11, 2007 at 8:06 AM | Permalink | Reply

    I can't seem to find ("") in my blog html, although I see "(
    )"

    Is this where the code goes?

  18. Posted October 17, 2007 at 1:39 AM | Permalink | Reply

    Very useful. Thanks

  19. David Tussey
    Posted October 22, 2007 at 8:43 AM | Permalink | Reply

    Perfect instructions. Thanks.

  20. Posted November 7, 2007 at 2:41 PM | Permalink | Reply

    So helpful! Thanks!

  21. Amanda
    Posted November 10, 2007 at 6:44 PM | Permalink | Reply

    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.

  22. Posted November 12, 2007 at 4:16 PM | Permalink | Reply

    thanks for the blogger analytics tip

  23. Posted November 13, 2007 at 8:36 AM | Permalink | Reply

    Google Analytics is very nice web statistics program.

    Alex

  24. Posted November 16, 2007 at 11:54 AM | Permalink | Reply

    Bless you for making explaining this so clearly.

  25. ruby
    Posted November 17, 2007 at 11:48 AM | Permalink | Reply

    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

  26. Amber
    Posted November 21, 2007 at 8:49 PM | Permalink | Reply

    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!!!

  27. TJW
    Posted November 24, 2007 at 8:05 PM | Permalink | Reply

    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.

  28. Posted November 25, 2007 at 8:54 AM | Permalink | Reply

    Thank you!

  29. Posted November 29, 2007 at 5:25 AM | Permalink | Reply

    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).

  30. Posted November 30, 2007 at 12:10 AM | Permalink | Reply

    thanks dude

  31. Posted December 2, 2007 at 12:27 AM | Permalink | Reply

    Great, Ive just set mine up, thanks

  32. Breeanne
    Posted December 10, 2007 at 12:42 PM | Permalink | Reply

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

  33. Posted December 11, 2007 at 9:21 AM | Permalink | Reply

    Great article. Thanks.

  34. Posted December 18, 2007 at 10:37 AM | Permalink | Reply

    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.

  35. Posted December 19, 2007 at 5:23 AM | Permalink | Reply

    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

  36. Posted December 20, 2007 at 12:46 PM | Permalink | Reply

    Thanks so much for the easy to follow instructions!

  37. Posted December 28, 2007 at 10:10 PM | Permalink | Reply

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

  38. Posted December 30, 2007 at 9:30 AM | Permalink | Reply

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

  39. Posted January 3, 2008 at 2:32 AM | Permalink | Reply

    Thanks for the clear info!

    Happy to start getting some stats

  40. Joanna Scott
    Posted January 8, 2008 at 6:09 AM | Permalink | Reply

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

  41. Devid
    Posted January 21, 2008 at 9:30 PM | Permalink | Reply

    Thanks... for your writing..it's a very good resource !! :-)

  42. EMY
    Posted January 22, 2008 at 12:07 AM | Permalink | Reply

    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.

  43. Posted January 23, 2008 at 4:32 AM | Permalink | Reply

    I will try the plugins, nice info!

  44. Posted January 25, 2008 at 2:57 PM | Permalink | Reply

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

  45. Posted January 28, 2008 at 2:42 AM | Permalink | Reply

    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.

  46. Posted January 28, 2008 at 1:01 PM | Permalink | Reply

    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

  47. Posted February 3, 2008 at 5:36 AM | Permalink | Reply

    Very useful post. Just what I was looking for!

  48. Posted February 7, 2008 at 8:13 AM | Permalink | Reply

    Thanks so much, this was really easy to follow!

  49. Posted February 18, 2008 at 12:21 PM | Permalink | Reply

    I just used your suggestion. Thanks a lot.

  50. Posted March 2, 2008 at 12:55 PM | Permalink | Reply

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

    Cheers!

  51. Posted March 11, 2008 at 3:38 AM | Permalink | Reply

    Nice ;)

  52. SKhan
    Posted March 17, 2008 at 12:40 PM | Permalink | Reply

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

  53. Posted March 19, 2008 at 9:10 AM | Permalink | Reply

    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.

  54. Posted March 19, 2008 at 10:05 AM | Permalink | Reply

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

  55. Anonymous
    Posted March 20, 2008 at 4:32 AM | Permalink | Reply

    Thanks a millionfor ths info - t was very helpful!

  56. Posted March 26, 2008 at 4:12 PM | Permalink | Reply

    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.

  57. pvkr
    Posted March 29, 2008 at 2:30 PM | Permalink | Reply

    Great instructions! Thanks!

  58. Posted March 29, 2008 at 7:30 PM | Permalink | Reply

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

  59. Posted March 31, 2008 at 1:37 AM | Permalink | Reply

    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 ............

  60. Posted April 1, 2008 at 4:43 AM | Permalink | Reply

    Very Very Great Thanks

  61. Joo
    Posted April 2, 2008 at 4:40 AM | Permalink | Reply

    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!

  62. tony
    Posted April 2, 2008 at 11:40 PM | Permalink | Reply

    Thanks, helped a lot!

  63. Posted April 3, 2008 at 6:01 AM | Permalink | Reply

    Andy,

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

    Mike

  64. Krishna
    Posted April 3, 2008 at 11:18 PM | Permalink | Reply

    Thanks alot

  65. Ken
    Posted April 4, 2008 at 11:00 AM | Permalink | Reply

    This sorted out a persistent little problem which no other source seemed able to help me with.

    Thanks very much!!

  66. RHL
    Posted April 16, 2008 at 11:01 PM | Permalink | Reply

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

  67. SB
    Posted April 30, 2008 at 10:02 PM | Permalink | Reply

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

  68. Posted May 2, 2008 at 11:19 AM | Permalink | Reply

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

  69. Posted May 3, 2008 at 2:33 AM | Permalink | Reply

    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).

  70. sp22
    Posted May 6, 2008 at 7:46 PM | Permalink | Reply

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

  71. New
    Posted May 16, 2008 at 5:33 AM | Permalink | Reply

    Google Analytics is very nice web stats program.

  72. Posted May 16, 2008 at 6:46 AM | Permalink | Reply

    Thanks very much - seems to have worked perfectly :)

  73. Posted May 22, 2008 at 9:26 PM | Permalink | Reply

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

  74. Posted May 24, 2008 at 5:57 AM | Permalink | Reply

    thank you. my search ends here.

  75. Posted May 24, 2008 at 6:18 AM | Permalink | Reply

    my search ends here. thank you

  76. Posted May 28, 2008 at 3:13 AM | Permalink | Reply

    Wow !! This was really helpful.

  77. Posted June 3, 2008 at 8:38 AM | Permalink | Reply

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

  78. Posted June 9, 2008 at 11:37 PM | Permalink | Reply

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

  79. Posted June 10, 2008 at 10:05 AM | Permalink | Reply

    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?

  80. Posted June 11, 2008 at 1:08 AM | Permalink | Reply

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

  81. Posted June 11, 2008 at 6:35 PM | Permalink | Reply

    Great post!

  82. jen
    Posted June 21, 2008 at 5:54 PM | Permalink | Reply

    oooh this was perfect! thanks!

  83. Amp
    Posted June 23, 2008 at 5:02 PM | Permalink | Reply

    Thanks i use blogger and wordpress and this was realy helpful

  84. Posted June 25, 2008 at 11:37 AM | Permalink | Reply

    Thank you so much for these directions!

  85. Posted June 25, 2008 at 9:05 PM | Permalink | Reply

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

  86. Posted July 8, 2008 at 1:22 PM | Permalink | Reply

    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.!!

  87. joe
    Posted July 9, 2008 at 12:25 AM | Permalink | Reply

    thanks very much. super helpful.

  88. Posted July 10, 2008 at 7:16 PM | Permalink | Reply

    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!

  89. Posted July 12, 2008 at 11:03 AM | Permalink | Reply

    Worked great! thanks dude!

  90. Posted July 17, 2008 at 3:53 AM | Permalink | Reply

    Thank you!

    When I first got my site running I pasted the code into completely the wrong place!

    Cheers

    Sam

  91. Hebe
    Posted July 18, 2008 at 3:46 AM | Permalink | Reply

    Thanks a lot, it was really helpful.

  92. Posted July 22, 2008 at 9:01 PM | Permalink | Reply

    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

  93. Posted July 25, 2008 at 5:53 AM | Permalink | Reply

    Thanks that was really nicely explained and a great help!!!

    Yours,
    Alex

  94. Posted July 25, 2008 at 12:41 PM | Permalink | Reply

    thx for posting this it was very helpful

  95. Matthew
    Posted July 26, 2008 at 4:38 AM | Permalink | Reply

    Very helpful. Thanks.

  96. Posted July 31, 2008 at 9:33 PM | Permalink | Reply

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

  97. Sai
    Posted August 1, 2008 at 2:47 PM | Permalink | Reply

    great article..simple and clear

  98. Posted August 2, 2008 at 9:15 AM | Permalink | Reply

    Thank's for this helful tips

  99. Posted August 3, 2008 at 9:11 PM | Permalink | Reply

    i have successfully added the Google analytics great option. thanks again.


    http://electronics345.blogspot.com/

  100. Posted August 7, 2008 at 12:43 AM | Permalink | Reply

    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...!!

  101. Dominic
    Posted August 10, 2008 at 10:13 PM | Permalink | Reply

    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?

  102. Posted August 11, 2008 at 4:38 PM | Permalink | Reply

    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!

  103. Posted August 17, 2008 at 11:05 AM | Permalink | Reply

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

  104. Posted August 18, 2008 at 3:30 PM | Permalink | Reply

    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

  105. Posted August 22, 2008 at 4:21 AM | Permalink | Reply

    many thanks for this

  106. Posted August 23, 2008 at 10:36 AM | Permalink | Reply

    I Just installed right now, thanks for the help

  107. Posted September 5, 2008 at 10:00 AM | Permalink | Reply

    Helped me figure out the "Edit HTML" feature. Thanks, it's working. :)

  108. Posted September 7, 2008 at 6:09 PM | Permalink | Reply

    Thanks for making things simple and easy!
    Works GREAT!

  109. Posted September 13, 2008 at 3:06 AM | Permalink | Reply

    Hi Andy

    Fab post - thank you. Your instructions were so clear even an idiot (me) has installed analytics!

    Thanks again,

    Beth

  110. Posted September 13, 2008 at 12:49 PM | Permalink | Reply

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

  111. Posted September 13, 2008 at 3:27 PM | Permalink | Reply

    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!

  112. Dee
    Posted September 17, 2008 at 11:48 AM | Permalink | Reply

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

  113. Posted September 18, 2008 at 5:45 PM | Permalink | Reply

    Great post. Thank you.

  114. carla kaiser
    Posted September 24, 2008 at 6:39 AM | Permalink | Reply

    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.

8 TrackBacks

  1. By Speedlinking 30 January 2007 on January 29, 2007 at 1:29 PM

    ……

  2. ……

  3. By unbegrenztes frei spiel on November 15, 2007 at 6:55 AM

    payday loan canada loan payday...…

    Beginnenmit internet spiele unbegrenztes frei spiel...……

  4. By video poker gratis on November 17, 2007 at 2:07 PM

    live poker spielen...…

    ...……

  5. By soittoäänet ja taustakuvat on February 1, 2008 at 11:24 PM

    soittoäänet kaverille...…

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

  6. By free real music cingular ringtones on February 4, 2008 at 2:44 AM

    disney free mobile ringtones...…

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

  7. free ringtones for nextel phone...…

    One of free motorola mp3 ringtones free cingular music ringtones...……

  8. 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...……

Post a Comment

*
*