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

  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
  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.
This entry was posted in General on by .

About Andy Wibbels

Andy is an award-winning blogger and author of the book Blogwild! A Guide for Small Business Blogging. His work has been featured in The Wall Street Journal, USA Today, Entrepreneur, Wired, Business Week, Forbes, and other national and international media. He was worked at several San Francisco startups including Typepad, Get Satisfaction, SInMobi, Keas, and Mindjet. Currently, Andy is Director of Marketing at Lucidworks. Tw · Fb · G+ · Li

148 thoughts on “How to Add Google Analytics to Your Blogger Blog

  1. infonote

    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.

    1. Daniel

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

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

    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!

  4. Virgilio A. P. Machado

    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?

  5. brian

    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.

  6. Amanda

    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.

  7. ruby

    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.

  8. Amber

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

  9. TJW

    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.

  10. Garrett

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

  11. Dhawal Chotai

    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.

  12. Jyoti

    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.

  13. EMY

    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.

  14. shadkam

    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.

  15. Ron Dean

    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

  16. SnaggleTT

    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.

  17. Jeff Staddon

    I’ve been a WordPress blogger for some time (which has statistics built in). This is my first use of 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.

  18. Niharika

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

  19. Joo

    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!

  20. Alexandr

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

  21. Qiana

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

  22. Sarah

    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?

  23. Jay Smith

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

  24. Erin

    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!

  25. Teri

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

  26. Dominic

    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?

  27. trifkoandsonsinc hva

    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.
    Trifko & Sons Inc. Team

  28. carla kaiser

    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.

  29. Tony

    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!

  30. Pingback: Australian Fashion Bloggers & Beauty Bloggers «

  31. John B

    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

  32. Michael Smith

    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.

  33. laura

    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?


Leave a Reply to trifkoandsonsinc hva Cancel reply

Your email address will not be published. Required fields are marked *