How to Add Google Analytics to Your WordPress Blog

AddThis Social Bookmark Button

Install the WordPress Google Analytics Plugin

  1. Download Denis’s Google Analytics plugin.
  2. Unzip the plugin.
  3. Upload the plugin to your /wp-content/plugins/ folder.
  4. Go to your WordPress blog’s Dashboard > Plugins. A list of both active and inactive plugins displays.
  5. Scroll to the plugin and Activate it. A success message displays.

Grab Your Google Analytics Code Block

  1. In another browser window (Ctrl+N or Command+N), 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.

Add the Google Analytics Code Block to Your WordPress Blog

  1. Back in your WordPress Dashboard, go to Options > Google Analytics.
  2. The options screen displays with a text field. Paste your Google Analytics Code Block into that text field and click Update Options.

You have now added your Google Analytics Code Block to Your WordPress 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-adding the Google Analytics Code Block.

28 Comments

  1. Posted Feb 1, 2007 at 6:09 am · Permalink

    Hi Andy,

    thanks for the great post! I had been adding GA code manually for my themes and this really solved my problem! Now I don’t have to worry about GA while changing themes.

    I commented your post in my blog, since it was so useful information :)

  2. Posted Oct 8, 2007 at 4:13 am · Permalink

    Great post! Bookmarked!

    Thanks!

  3. Posted Oct 10, 2007 at 3:15 am · Permalink

    brilliant advice Andy..thanks a million!

  4. Posted Nov 5, 2007 at 10:01 pm · Permalink

    i already did.
    see it
    www.azazone.com

  5. Archana M
    Posted Nov 22, 2007 at 12:33 am · Permalink

    What is mean by google analytics…?how it is useful..?how is helps to us..?

  6. Posted Dec 28, 2007 at 5:41 am · Permalink

    Thanks this is great. Will analytics track your sub blogs along with the main site content. ie www.graduatetutor.com/blog?

    Does it matter if there are multiple blogs?

  7. Posted Jan 8, 2008 at 11:20 pm · Permalink

    Thank you. Sometimes simple instructions are impossible to come by.

  8. Posted Jan 9, 2008 at 5:55 pm · Permalink

    Is there sometimes a lag after i embed the code into the analytics? Like do i have to wait an hour or two for google to check for the embed html for analytics? I did everything you said, activated the analytics embedded the custom code, etc. But for some reason google isn’t activating the analytics. Any ideas as to what might be happening. I’m thinking maybe i just have to wait an hour or two. I’m on godaddy hosting. My blogs post right away, but maybe this takes some time?

  9. Posted Jan 17, 2008 at 5:39 am · Permalink

    This plugin was really useful for me to add the code into my blog.Thanxs a ton for this.

  10. wilbur
    Posted Jan 27, 2008 at 10:55 am · Permalink

    Please help me. Your instructions were great but after I’ve uploaded the plugin to my plugins folder it never shows up in the wp-admin section. In other words I don’t see this new plugin anywhere. When I go to my FTP client I see the files in the plugins directory. What am I doing wrong? Thanks for the help.

  11. Posted Feb 2, 2008 at 3:33 pm · Permalink

    thanks dude, worked like a charm!

  12. Andy
    Posted Feb 7, 2008 at 3:37 pm · Permalink

    Thanks a lot. That made installing Google Analytics quick and painful

  13. anon
    Posted Feb 29, 2008 at 5:21 pm · Permalink

    thanks - beats hand coding it every time!

  14. Posted Feb 29, 2008 at 10:45 pm · Permalink

    Thanks Andy

    What a neat step-by-step procedure.

    I wish someone would make the rest of the Internet this simple

  15. Posted Mar 17, 2008 at 9:55 am · Permalink

    and do you know of a way to help GA track then /feed/ from wordpress?

  16. Posted Apr 6, 2008 at 12:48 am · Permalink

    Great information, but I’m stuck near the beginning of your instructions. Where do I find the /wp-content/plugins/ folder?

  17. Posted Apr 25, 2008 at 6:43 am · Permalink

    thank u. it worked good

  18. Posted Apr 25, 2008 at 3:21 pm · Permalink

    Thanks for this. Now I’ll know who’s not visiting my blog lol

  19. Posted May 13, 2008 at 10:02 am · Permalink

    Very useful blog for adding google analytics to your wordpress blog!

    Easy to follow and link to a great little plugin.

    Thanks Again!

    Stephen Grant
    blog.ktid.co.uk

  20. Posted Jun 2, 2008 at 10:50 am · Permalink

    I have followed your instructions without issue until “adding the Google Analytics Code block back into Wordpress”. I have the code copied from the analytics site but i cannot find any “options” option anywhere on my wordpress dashboard… Do I go to plug-ins > Google analytics > edit … and then paste the code into that text field? If so, where in that field do I paste the code? Thanks for the help…

    Mark

  21. Posted Jun 4, 2008 at 4:42 am · Permalink

    Wow! That’s great tips, Infact tip of the day. Keep going..

  22. Posted Jun 6, 2008 at 5:22 pm · Permalink

    Thanks for the helpful post Andy. I’m up and running thanks to your post.

    \m/ \m/

  23. Posted Jun 6, 2008 at 7:36 pm · Permalink

    Mr andy…
    help me…
    i don’t know how enter wordpress plugins… :((
    i already try find until dizzy… :( but i am not found…
    you can give me tutorial step by step…???
    please….
    sory my english speak is very bad… ;)

  24. Posted Jun 22, 2008 at 3:19 pm · Permalink

    Thank you so much for your great instructions! It made installing google analytics a breeze!

  25. Posted Jul 4, 2008 at 10:05 am · Permalink

    The step: Back in your WordPress Dashboard, go to Options > Google Analytics.

    Should be changed for Wordpress 2.5 (or thereabouts) to say, go to Settings > Google Analytics.

    Thanks for posting these steps!

  26. Posted Jul 22, 2008 at 8:47 am · Permalink

    Hello Andy,

    Thanks for the step by step instructions.

  27. Posted Aug 10, 2008 at 10:43 am · Permalink

    thank you, trying now :)

  28. Posted Aug 25, 2008 at 8:46 am · Permalink

    Thanks for the walk-through. Very helpful!

13 Trackbacks

  1. […] I was checking out Andy Wibbles’ blog for the Google Analytics plugin for WordPress. I was feeling stupid: why hadn’t I been looking for a plugin to solve this problem The thing I like in WP is that there are many skillful people developing plugins that solve many tedious tasks. Respect to you all! […]

  2. […] Adding Google analytics code to Word Press This is a page from Andy Wibbels web page It is definitely worth reading he has a huge amount of goodies on his site. It really helped me to add my Google analytics code to this blog. Hopefully if someone other than me is reading it then I will be able see some stats appearing in my reports How to Add Google Analytics to Your WordPress Blog […]

  3. […] of code on any page you want to keep track of. If you’re a WordPress user, there’s even a plug-in to automatically add it to your site. Blogger users are also able to add it by tweaking their blog […]

  4. […] of code on any page you want to keep track of. If you’re a WordPress user, there’s even a plug-in to automatically add it to your site. Blogger users are also able to add it by tweaking their blog […]

  5. By links for 2007-05-11 at DeStructUred Blog on May 12, 2007 at 10:47 am

    […] How to Add Google Analytics to Your WordPress Blog | Andy Wibbels (tags: Google Analytic Stat Wordpress Blog) […]

  6. By ThinkBooth on May 26, 2007 at 12:30 am

    […] written by: Andy Wibbels […]

  7. By Simon Scullion » links for 2007-10-02 on Oct 2, 2007 at 4:24 pm

    […] Andy Wibbels » How to Add Google Analytics to Your WordPress Blog (tags: wordpress google analytics plugin) […]

  8. By mindest einsatz einsatz einsatze on Nov 15, 2007 at 10:28 am

    spielebank…

    Danach internet spiele realisitisches kasino…

  9. […] just added Google Analytics to our blog. Andy Wibbels had a great post that told me how to add it to WordPress (that’s the software that makes this blog […]

  10. By application loan payday on Dec 20, 2007 at 1:59 am

    business internet loan payday start internet loan payday…

    Actually application loan online payday loan payday software…

  11. By klingeltöne kostenlos on Jan 9, 2008 at 11:05 am

    klingelton download klingelton klingeltöne…

    At the gratis klingeltöne samsung fake credit card numbers…

  12. By kristilliset soittoäänet on Feb 2, 2008 at 1:25 am

    simpsons soittoäänet…

    Here are soittoäänet elvis my chemical romance soittoäänet…

  13. […] Andy Wibble - Who wrote a Blog article explaining how to install Google Analytics. […]

Post a Comment

Your email is never published nor shared.