Google Analytics

Installing Google Analytics in Blogger

12:40 AMWebmaster


To track your site/blog using analytics you need to have an account with Google Analytics, If you already have a Google Account you can use that username/password here or you can always sign up for a free google account. In either case you need to go to http://www.google.com/analytics [ Opens in a New Page ]


After you login with your username/password, you will be in your dashboard area.


Scroll down to the bottom of the page and find the link to "Add Website Profile".





On the next screen select the option to "Add a profile for a new domain".





Click continue and on the page that follows, type the URL of your blog.





The final screen will generate two tracking codes for your blog. make sure you are on "New Tracking Code(ga.js)" tab






This is the code that you need to copy/paste on your blog. We are now going to install google analyics tracking code to your blogger blog.



Go to http://www.blogger.com [ Opens in a New Page ] and login with your id/password.



Once you are logged in go to your dashboard, where you have to click the "Design" "Layout"  link(beside the settings link) of your blog. make sure you are on the "page elements" sub-tab, where you can easily add and arrange page elements.

You will now add a gadget by clicking the "Add a Gadget" link



From the popup that appears, you can add many gadgets to your blog, this time we need to scroll down to the HTML/JavaScript option and click the "+" sign beside it to add it to your blog







This will open a final popup where you paste your code(your google analytics code) under the "content" textarea. I prefer not to give it a title because the code is invisible, so leave the title field blank and click the button to "save changes"


You Might Also Like

48 comments

  1. Thank you for these instructions, they worked like a charm.

    ReplyDelete
  2. Anonymous26.4.08

    Perfect, thanks!

    ReplyDelete
  3. nice one mate, works perfect.

    worth noting that it can take up to 24 hours for Analytics to actually start tracking the site. till then the status can still be unknown or unconfirmed.

    but yeah, leave it for a few hours till it kicks in.

    Thanks again.

    ReplyDelete
  4. Well that was easy, thank you so much!!!! saves paying my web master.

    ReplyDelete
  5. Thank you so much, this was super easy!

    ReplyDelete
  6. Thank you thank you thank you. I never would have figured this out on my own.

    ReplyDelete
  7. Great! Thank you very much.

    ReplyDelete
  8. Anonymous11.6.08

    thank you so much from Norway;))

    ReplyDelete
  9. Thank you,

    Do you know how I can add conditional code to my template, the way it will not count my own hits when I am logged in?

    ReplyDelete
  10. @ آقای دلگرم ,

    Unfortunately, it doesn't seem there is a simple way to exclude your own visits from Google Analytics logs. You could use StatCounter, which uses a cookie based identification to exclude your visits from report.

    ReplyDelete
  11. Anonymous6.7.08

    I can't thank-you enough. I really am computer illiterate and when I read I had to put a code just before "body" etc. etc. etc. I had no idea what any of that meant! Why can't google make things as easy as you did? Thanks again.

    ReplyDelete
  12. @Anonymous,

    We all were computer illiterate some time or the other, We're glad that all of you found our blog posts useful enough that you stopped by to say thanks.

    Coming to your question on why google didn't make the instructions more simpler, I could perhaps only guess that they must have thought that someone like US would write a better, simpler and more useful tutorial than they can ever write and that's why they left the job to US! ;-)

    ReplyDelete
  13. Thanks for your helpful post. However, it seems that I am still having trouble with getting the analytics to work. It's been over two weeks now and I have tried adding a new page element and putting the code directly in the HTML with no luck. The only thing I can think of is that I have Quantcast HTML in the page as well. Would that mess things up? Should I delete it? Thanks!

    ReplyDelete
  14. @www.theepictruth.com,

    After your comment, We checked if ,we faced any problems with google analytics. We concluded that the above written tutorial was 100% correct way to install google analytics on blogger blogs.

    The only thing was that it took around 48 hours to collect the data. Our guess is that maybe you did not install the code properly. please follow the tutorial EXACTLY and give us your URL, So that we can help.

    ReplyDelete
  15. I could not follow these instructions because my "Add and Arrange Page Elements" screen does not have an "Add a Page Element" choice, only has "Add a Gadget" which seems to be different.

    I was able to understand how to paste the code before the /body tag, but google analytics shows nothing, even after 24 hours, so I thought I would try a different method of adding the code. Oh, well, at least some people got this to work.

    ReplyDelete
  16. Anonymous16.10.08

    Drat!. The comments petered out right when it gets to the meat of the problem. The only way for me to do this is to go to the edit HTML thingy.

    There is no Add Page Elements.

    There is only Add a Friggin' Gadget which only lets you put in a URL

    I've tried three different lines of code supplied by Google. All are broken after saving. The " marks change to QUOT.

    I enter the code just before "body"

    I think this is because it's XML or something like that.

    In short, nothing works for my blogspot blog:

    http://nihondenki.blogspot.com

    Is this a known issue? If so, I can't find out much about it. Bleh.

    ReplyDelete
  17. hi, my blog is in french, but i like exchange link with you :
    Name of blog : L'Ame Du Pirate
    URL : http://rba3info.blogspot.com/

    thnks

    ReplyDelete
  18. I have same problem as John :-(

    ReplyDelete
  19. Anonymous10.12.08

    AMAZING :) Thanks for saving me hours of frustration

    ReplyDelete
  20. I only have 'Add A Gadget', too.

    ReplyDelete
  21. I couldn't find the prompts. The Blogger Template has changed could you please help me.

    I had to place the code in my HTML area after the body?

    Thank you.

    olivia_cobiskey@yahoo.com

    ReplyDelete
  22. This was super simple. Thanks for the tutorial.

    ReplyDelete
  23. Great tutorial! Thanks.

    ReplyDelete
  24. @ALL,

    everyone, following this tutorial, remember that google/blogger has changed the way HTML/Scripts can be added to blogger, that's why this tutorial is a "bit" outdated and perhaps you're getting only a "Add a Gadget" link instead of "Add a page element". Follow this tutorial, to add HTML/Scripts to blogger.

    ReplyDelete
  25. Thanks for the clear instruction!! It helped a lot!

    ReplyDelete
  26. Anonymous26.9.09

    great post

    ReplyDelete
  27. i have 2 blogger accounts. i followed the instructions and was able to install analytics to only one of the blogs. the other keeps coming up with a yellow triangle error symbol on analytics telling me that my tracking was not installed. i've tried deleting things and starting over, but nothing seems to work. does anyone have an answer? the google analytics help forum didn't help at all!

    ReplyDelete
  28. I added the analytics butt now the code is showing on the main page of my blog. I can see the script. What have I done wrong?

    ReplyDelete
  29. Solved the issue, re pasted the code, must not have picked all the code up the first time. Since re pasting code is gone from home page. Please note my blog says ADD A GADGET others are using the term "page elements" Can confuse the user given they might be using different versions.

    ReplyDelete
  30. Thank you very much for sharing your knowledge!
    You made it very easy.. :)

    ReplyDelete
  31. I tried so hard to connect my blogger account with google analytics but I failed, It is still showing an error sign

    ReplyDelete
  32. Thank you. Thank YOU. THANK YOU! I was making it way more complicated than it was...

    ReplyDelete
  33. Love to get the knowledge from your blog

    ReplyDelete
  34. Installing Google Analytics in Blogger is a very interesting post....Thank you for these valuable informations........Great tutorial I really like it....

    ReplyDelete
  35. I just added the google analytics to one of my new sites. Thank you so much 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…!!

    ReplyDelete
  36. Anonymous12.4.11

    Great post.

    ReplyDelete
  37. Easy peasy. thanks for the easy tutorial, i had no idea what ga were talking about so you have really helped me.

    ReplyDelete
  38. Dang! Wish I had known a few months ago how easy this was! Thanks!

    ReplyDelete
  39. Anonymous29.7.11

    Thanks! Easy to follow.

    ReplyDelete
  40. Your post has been very helpful. In Blogspot though, the instruction should be adjusted to:

    "Once you are logged in go to your dashboard, where you have to click the "Design" link(beside the settings link)"

    The correct link in the dashboard is labeled as "Design", and not as "Layout".

    ReplyDelete
  41. Your post has been very helpful. In Blogspot though, the instruction should be adjusted to:

    "Once you are logged in go to your dashboard, where you have to click the "Design" link(beside the settings link)"

    The correct link in the dashboard is labeled as "Design", and not as "Layout".

    ReplyDelete
  42. @Gadi Bizinyan,
    Thanks for the update, Blogger™ had renamed the "layout" link to "design", Hold on, the latest interface has the "layout" link, Still,for now we have updated the link as you have suggested.

    ReplyDelete
  43. Thanks for the very helpful information! Does it also work if you add the code to your HTML or is it better to just have it as a widget? I have it as a widget right now, so if that works, then no need to change.

    Thanks again! Can't wait to start tracking my traffic.

    ReplyDelete
  44. @The Queen of Quinoa, All seems well even if you add analytics code as a widget, We suggest to use the widget because its much simpler to install.

    ReplyDelete
  45. Nice post. I have tried several in my other sites. I never new is this easy! Thanks!

    ReplyDelete
  46. Thank you for this easy solution so I didnt have to keep going through my code! I hope this works :) gave you a +1 on google.

    ReplyDelete

Say something to us, we love to respond to our visitors

Popular Posts

Flickr Images

3/recentposts

Contact Form