Add Google Analytics to your WordPress blog

August 28th, 2006 Da Vinci

Google Analytics is arguably the best free Web analytics tool available. It’s free and they have now made it available to everyone. To sign up go to google.com/analytics and login using your Google account info. After creating an account you will be guided through the steps to set up your first profile. Copy the tracking code or keep it close for the next step.

There are two ways to add the tracking code to your WordPress blog: 1) by installing a plug-in and 2) by editing the theme source pages directly.

Install a Google Analytics plug-in.
There are a number of plug-ins available for free and they are mostly similar and very easy to use, including:

Edit your WordPress pages directly.
This is probably the no so smart option, but since I did it I might as well mention it. You will need to edit the source of your theme pages. Login to your WordPress admin tool, select the Presentation tab and then Theme Editor. The Header (header.php) or Footer (footer.php) is normally the best place to insert your Google Analytics code, but make sure that you insert it after the <body> tag in the Header or before the </body> tag in the Footer, depending on which file you inserted the code. After saving the file, preview your blog and view the page source to verify that the tracking code has been inserted. Google Analytics can can lag a few hours to show traffic.


80 Responses to “Add Google Analytics to your WordPress blog”

  1. Des Walsh Says:

    Thanks for the plain English explanation. Very helpful. Now I just have to wait and see if it works! :)

  2. Alex Says:

    Thank You

  3. Ivan Teoh » Blog Archive » Add Google Analytics Tool to WordPress Says:

    [...] Add Google Analytics to your WordPress blog [...]

  4. Haber Says:

    Thank You Davinciplanet

  5. Network Marketing Duplication Says:

    This paragraph is actually a nice one it assists
    new the web visitors, who are wishing in favor of blogging.

  6. www.youtube.com Says:

    Hmm is anyone else experiencing problems with
    the images on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog.

    Any responses would be greatly appreciated.

  7. www.youtube.com Says:

    My spouse and I stumbled over here by a different web address and
    thought I may as well check things out. I like
    what I see so now i’m following you. Look forward to going over your web page again.

  8. www.youtube.com Says:

    Hey just wanted to give you a brief heads up and let you know a few of
    the pictures aren’t loading properly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two
    different browsers and both show the same outcome.

  9. network marketing Says:

    It’s actually very complicated in this full of activity life
    to listen news on Television, therefore I simply use internet for that purpose, and take the
    newest information.

  10. Youtube.com Says:

    After looking over a number of the blog articles on your blog, I honestly like your way of writing a blog.
    I book marked it to my bookmark webpage list and will be checking back
    in the near future. Take a look at my web site too and tell me what you think.

  11. youtube.com Says:

    Hi there! I know this is somewhat off topic but I was wondering if you knew where I could find
    a captcha plugin for my comment form? I’m using the same blog platform as yours and I’m having trouble finding one?
    Thanks a lot!

  12. www.youtube.com Says:

    hi!,I like your writing very a lot! share we be in contact more approximately your post on AOL?
    I need an expert in this house to unravel my problem.

    May be that is you! Taking a look forward to look you.

  13. {earn money online paypal Says:

    When someone writes an article he/she keeps the idea of a user
    in his/her mind that how a user can know it. Thus that’s why this piece of
    writing is great. Thanks!

  14. easy money paypal Says:

    Every weekend i used to visit this website, because i want enjoyment, as this this website conations in fact
    good funny material too.

  15. make money online from home legit Says:

    Terrific work! That is the kind of information that are supposed
    to be shared around the web. Shame on Google for no longer
    positioning this submit higher! Come on over and discuss with
    my website . Thanks =)

  16. working from home online jobs Says:

    My brother suggested I might like this website. He used to be totally right.
    This submit truly made my day. You cann’t believe
    just how so much time I had spent for this information!
    Thanks!

  17. Work online and get paid daily Says:

    I like what you guys tend to be up too. Such clever work and coverage!
    Keep up the wonderful works guys I’ve you guys to
    blogroll.

  18. work from home for free no fees Says:

    It’s remarkable in support of me to have a web page,
    which is helpful in favor of my experience. thanks admin

  19. {make money online paypal Says:

    I just like the helpful information you provide for your articles.

    I’ll bookmark your weblog and check again here frequently.
    I am relatively sure I’ll be told many new stuff right right
    here! Best of luck for the next!

  20. mlm Advertising Says:

    You are so cool! I do not think I’ve read through something like that before.
    So great to discover another person with a few genuine thoughts
    on this issue. Seriously.. thanks for starting this up.
    This site is one thing that’s needed on the internet,
    someone with a little originality!

  21. why people fiail in network marketing Says:

    You can certainly see your skills within the article you write.
    The world hopes for even more passionate writers such as you who aren’t afraid to say how they believe.
    Always follow your heart.

  22. Success online Says:

    This piece of writing is genuinely a fastidious one it helps new net users, who
    are wishing in favor of blogging.

  23. online lead generation Says:

    I know this web site presents quality dependent articles or
    reviews and other information, is there any other web site which gives such data in quality?

  24. network marketing Says:

    Great beat ! I would like to apprentice while
    you amend your website, how could i subscribe for a blog
    website? The account helped me a acceptable deal. I had been tiny bit acquainted of this your
    broadcast offered bright clear idea

  25. ds domination Says:

    Hello to every one, as I am actually eager of reading this web site’s post to
    be updated regularly. It contains pleasant information.

  26. Make Money with Ebay Says:

    My brother recommended I might like this website.
    He was entirely right. This post actually made my day.
    You can not imagine just how much time I had
    spent for this information! Thanks!

  27. do people really make money on ebay Says:

    This is really interesting, You’re a very skilled blogger.

    I’ve joined your feed and look forward to seeking more
    of your magnificent post. Also, I have shared your web site in my social networks!

  28. Www.youtube.com Says:

    I read this article fully about the comparison of hottest and preceding technologies, it’s awesome article.

  29. generate leads online Says:

    This piece of writing is in fact a fastidious one it assists
    new the web viewers, who are wishing in favor
    of blogging.

  30. http://Www.Youtube.com/watch?v=Ac20tEztL-M Says:

    Great article.

  31. Ebay Selling Tools Says:

    I do not leave a ton of comments, but i did some searching and wound up here Add Google Analytics to your WordPress blog.
    And I do have some questions for you if you don’t mind.
    Could it be just me or does it look like a few of the remarks come across like written by brain dead
    visitors? :-P And, if you are posting at additional online sites,
    I would like to follow anything new you have to post.

    Would you list of the complete urls of all your
    public pages like your linkedin profile, Facebook page
    or twitter feed?

  32. www.youtube.com Says:

    This is a topic that is near to my heart… Cheers! Where are
    your contact details though?

  33. Gano Excel Says:

    If you are going for most excellent contents like myself, only pay a quick
    visit this site every day as it gives quality contents,
    thanks

  34. Momentis Scam Says:

    Today, while I was at work, my cousin stole my apple ipad and tested
    to see if it can survive a forty foot drop, just so she
    can be a youtube sensation. My apple ipad is now destroyed and she
    has 83 views. I know this is completely off topic but I had to share it with someone!

  35. Ludaxx Reviews Says:

    I must thank you for the efforts you’ve put in writing this website.
    I am hoping to check out the same high-grade content from you in the future as well.
    In fact, your creative writing abilities has encouraged me
    to get my own, personal site now ;)

  36. How to Sell Things on Ebay Tutorial Says:

    Remarkable issues here. I’m very satisfied to
    see your article. Thank you so much and I
    am looking ahead to contact you. Will you kindly drop me a mail?

  37. www.youtube.com Says:

    Right now it looks like Movable Type is the
    top blogging platform out there right now. (from what I’ve read) Is that what you
    are using on your blog?

  38. What Makes Good Money on eBay What Makes Good Money on eBay Selling on eBay Tips Says:

    Greetings! Very helpful advice within this post! It is the little changes which will make the
    greatest changes. Thanks for sharing!

  39. TelexFree Says:

    Howdy! Quick question that’s entirely off topic. Do you know how to make your site mobile friendly?
    My blog looks weird when viewing from my apple iphone. I’m trying to
    find a theme or plugin that might be able to fix this issue.
    If you have any suggestions, please share. Thanks!

  40. Youngevity Says:

    Thanks for any other fantastic article. Where else could anyone get that kind of
    information in such an ideal manner of writing? I have a presentation next week, and I am at the
    look for such info.

  41. mlm marketing tips Says:

    This post is invaluable. When can I find out
    more?

  42. Social Media Says:

    Great post. I am facing some of these issues as well..

  43. network marketing Says:

    It’s actually a great and helpful piece of information.
    I’m satisfied that you shared this helpful info with us. Please stay us informed like this.
    Thank you for sharing.

  44. four Different types Of personalities Says:

    You should take part in a contest for one of the finest sites on the web.
    I will highly recommend this site!

  45. what sells best on ebay Says:

    Woah! I’m really enjoying the template/theme of this blog.

    It’s simple, yet effective. A lot of times it’s hard to get that
    “perfect balance” between user friendliness and appearance.
    I must say you’ve done a amazing job with this.
    Additionally, the blog loads extremely fast for me on Firefox.

    Outstanding Blog!

  46. www.youtube.com Says:

    Great post. I used to be checking constantly this weblog and I am inspired!
    Extremely helpful info specifically the closing part :) I take care of such info a lot.
    I was seeking this particular info for a very long time.

    Thank you and best of luck.

  47. javita Says:

    Why people still make use of to read news papers when in this technological globe
    all is existing on net?

  48. miessence Says:

    You can certainly see your skills within the work you write.

    The world hopes for even more passionate writers such as you who are not afraid to mention how they believe.
    All the time go after your heart.

  49. quivana scam Says:

    Hello! I know this is kinda off topic however , I’d figured I’d
    ask. Would you be interested in exchanging links or maybe guest
    writing a blog article or vice-versa? My site discusses a lot of the same
    topics as yours and I think we could greatly benefit from each other.
    If you’re interested feel free to shoot me an email.

    I look forward to hearing from you! Great blog by
    the way!

  50. pink zebra review Says:

    It’s a shame you don’t have a donate button! I’d without a doubt donate to
    this outstanding blog! I guess for now i’ll settle for bookmarking
    and adding your RSS feed to my Google account. I look forward to fresh updates and will share this website with my Facebook group.
    Talk soon!

  51. talk fusion Says:

    naturally like your website but you need to check the spelling on several of your posts.
    A number of them are rife with spelling problems and I to find
    it very bothersome to tell the truth however I will certainly come back
    again.

  52. Visi Says:

    Howdy! This post could not be written any better!

    Looking through this post reminds me of my previous
    roommate! He always kept preaching about this.

    I most certainly will forward this post to him. Pretty sure
    he’s going to have a good read. Many thanks for sharing!

  53. univera reviews univera Says:

    Cool blog! Is your theme custom made or did you download it from
    somewhere? A theme like yours with a few simple tweeks would really make my blog
    stand out. Please let me know where you got your
    theme. Bless you

  54. younique Says:

    Hey would you mind letting me know which webhost you’re working with?
    I’ve loaded your blog in 3 different internet browsers and
    I must say this blog loads a lot quicker then most.
    Can you recommend a good web hosting provider at a reasonable price?
    Thanks a lot, I appreciate it!

  55. Zija International Says:

    You really make it seem so easy with your presentation but I find this topic to
    be really something which I think I would never understand.
    It seems too complex and very broad for me. I am looking forward for your next post,
    I’ll try to get the hang of it!

  56. youtube.com Says:

    Heya just wanted to give you a brief heads up and let you know
    a few of the pictures aren’t loading correctly. I’m not sure why
    but I think its a linking issue. I’ve tried it in two different internet browsers and both show
    the same outcome.

  57. youtube.com Says:

    Greetings! I’ve been reading your website for a long time now and finally
    got the courage to go ahead and give you a shout out from Dallas Tx!
    Just wanted to say keep up the great job!

  58. metabolife Says:

    I have read so many posts regarding the blogger lovers except this paragraph is actually a good
    paragraph, keep it up.

  59. Saladmaster Says:

    I’m very happy to discover this site. I want to to
    thank you for your time just for this fantastic read!!
    I definitely appreciated every part of it and i also have you
    saved as a favorite to see new information on your site.

  60. Ganolife Scam Says:

    Just wish to say your article is as astounding.

    The clearness on your put up is just cool and i can think you are a
    professional on this subject. Well along with your
    permission allow me to snatch your RSS feed to stay up to date with coming near near post.
    Thanks one million and please continue the rewarding work.

  61. Legalshield Says:

    I believe everything wrote was very logical. But, what about this?
    what if you were to create a awesome headline?
    I ain’t saying your content isn’t good., but what if you
    added a title that grabbed people’s attention? I mean Add Google Analytics to your WordPress
    blog is kinda vanilla. You could peek at Yahoo’s home page and note how they create post headlines to grab people to
    click. You might try adding a video or a related picture or two to get people interested about what you’ve written.
    Just my opinion, it would make your posts a little bit more interesting.

  62. ROI Unlimited Says:

    I love your blog.. very nice colors & theme. Did you make
    this website yourself or did you hire someone to do it for
    you? Plz answer back as I’m looking to construct my
    own blog and would like to find out where u got this from.
    cheers

  63. youtube.com Says:

    Hey there just wanted to give you a quick heads up.
    The words in your article seem to be running off the screen in Internet explorer.
    I’m not sure if this is a formatting issue or something to do with web browser compatibility but
    I thought I’d post to let you know. The design and style look great though!

    Hope you get the problem resolved soon. Many thanks

  64. selling on eBay tips Says:

    Hey there just wanted to give you a quick heads up.
    The text in your content seem to be running off the screen in Internet explorer.

    I’m not sure if this is a format issue or something to do with internet
    browser compatibility but I figured I’d post to let you know.
    The design look great though! Hope you get the problem resolved soon.
    Thanks

  65. LeadsOnline Says:

    When I initially commented I clicked the “Notify me when new comments are added” checkbox and now
    each time a comment is added I get four e-mails
    with the same comment. Is there any way you can remove people from that service?
    Many thanks!

  66. youtube.com Says:

    Howdy! I’m at work surfing around your blog from my new iphone 4!

    Just wanted to say I love reading through your blog
    and look forward to all your posts! Keep up the superb work!

  67. Oriflame Says:

    Hi, I do believe this is an excellent blog. I stumbledupon it
    ;) I’m going to revisit yet again since i have bookmarked it.
    Money and freedom is the greatest way to change, may you be rich and continue to guide others.

  68. juice plus reviews Says:

    Write more, thats all I have to say. Literally, it
    seems as though you relied on the video to
    make your point. You definitely know what youre talking about, why waste your intelligence on just posting
    videos to your blog when you could be giving us something informative to read?

  69. Tastefully Simple Says:

    When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each
    time a comment is added I get three e-mails with the same comment.
    Is there any way you can remove people from that service?
    Cheers!

  70. Viridian Energy Says:

    It’s a pity you don’t have a donate button!
    I’d without a doubt donate to this outstanding blog!
    I guess for now i’ll settle for book-marking and adding your
    RSS feed to my Google account. I look forward to new updates
    and will share this website with my Facebook group. Talk soon!

  71. genesis pure Says:

    Thanks for your personal marvelous posting! I quite enjoyed reading it, you can be a great author.I will remember to bookmark your blog
    and will eventually come back later in life.
    I want to encourage that you continue your great posts,
    have a nice morning!

  72. Xyngular Says:

    My partner and I absolutely love your blog and find most
    of your post’s to be precisely what I’m looking for. Do you offer guest writers to write content in your
    case? I wouldn’t mind composing a post or elaborating on
    a few of the subjects you write concerning here. Again,
    awesome site!

  73. market america Says:

    Greetings! Very useful advice within this article! It is the little changes that produce the most important changes.
    Thanks a lot for sharing!

  74. youtube.com Says:

    Hello everyone, it’s my first pay a quick visit at this website, and post is truly fruitful in support of me, keep up posting these posts.

  75. Ariix Reviews Says:

    I love what you guys are up too. Such clever work and reporting!
    Keep up the superb works guys I’ve included you guys to blogroll.

  76. zurvita Says:

    Every weekend i used to visit this web site, for the reason that i wish for enjoyment, since this this site conations in fact pleasant funny information too.

  77. xocai Says:

    I was wondering if you ever considered changing the layout of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content so people could connect with it
    better. Youve got an awful lot of text for only having one or two pictures.
    Maybe you could space it out better?

  78. sprz?t medyczny Says:

    jednak to nie suma .

  79. ?ó?ko oferta Says:

    Guzik innego do DOA € | oni wulgarnie.

  80. convertible car seat reviews 2014 Says:

    Pretty nice post. I just stumbled upon your blog and wanted to say that I
    have really loved browsing your weblog posts. In any case I will
    be subscribing in your rss feed and I’m hoping you write once more very soon!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>