How to Add Google Analytics to Your WordPress Blog

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.

Posted

in

by

Tags:

Comments

48 responses to “How to Add Google Analytics to Your WordPress Blog”

  1. Harri Avatar

    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. Chris Hunter Avatar

    Great post! Bookmarked!
    Thanks!

  3. Kamal Avatar

    brilliant advice Andy..thanks a million!

  4. mindest einsatz einsatz einsatze Avatar

    spielebank…

    Danach internet spiele realisitisches kasino…

  5. Archana M Avatar
    Archana M

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

  6. application loan payday Avatar

    business internet loan payday start internet loan payday…

    Actually application loan online payday loan payday software…

  7. GMAT Avatar

    Thanks this is great. Will analytics track your sub blogs along with the main site content. ie http://www.graduatetutor.com/blog?
    Does it matter if there are multiple blogs?

  8. Carlos Miller Avatar

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

  9. klingeltöne kostenlos Avatar

    klingelton download klingelton klingeltöne…

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

  10. Brent Avatar

    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?

  11. sharemarkets Avatar

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

  12. wilbur Avatar
    wilbur

    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.

  13. kristilliset soittoäänet Avatar

    simpsons soittoäänet…

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

  14. thepixeljam Avatar

    thanks dude, worked like a charm!

  15. Andy Avatar
    Andy

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

  16. anon Avatar
    anon

    thanks – beats hand coding it every time!

  17. Andrew Smith Avatar

    Thanks Andy
    What a neat step-by-step procedure.
    I wish someone would make the rest of the Internet this simple

  18. Neil Cowley Avatar

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

  19. No Name Blogger Avatar

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

  20. eugenio Avatar

    thank u. it worked good

  21. bored-mind Avatar

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

  22. Stephen Grant Avatar

    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

  23. Mark Avatar

    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

  24. Gadgets Avatar

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

  25. Patti Avatar

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

  26. muki Avatar

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

  27. Sarah Avatar

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

  28. Devin Rose Avatar

    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!

  29. Roopesh Avatar

    Hello Andy,
    Thanks for the step by step instructions.

  30. cuwid ganteng Avatar

    thank you, trying now 🙂

  31. James Kurtz III Avatar

    Thanks for the walk-through. Very helpful!

  32. montia Avatar

    Thanks a bunch for these clear instructions!

  33. raquel Avatar

    I get lost here.
    Where is the /wp-content/plugins folder? I can’t find it….
    And I cannot find plugins on my dashboard.
    Help, anyone?
    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.

  34. Azhar Avatar

    Hello, I want to add google analytics code on officepictures.wordpress.com

    how could do that? can you please me guidance for this ?

    Thank you

  35. prashant Avatar

    Nice plugin. thanks for sharing.
    keep posting.

  36. jay Avatar

    thanks, just what i needed, very simple instruction and easy to follow. i have the google analytics code now, was looking for where to add it, i thought i have to add the code to header.php, good thing i did a google search on where to add.

    thanks

  37. Rakesh Avatar

    i want to add Google analytics in my site.

  38. www.nexopia.com Avatar

    Why is this so. Invicta Watches for women are made with great
    skill to meet the needs of women, and hence they are made using various
    colours and designs, as well as jewellery, in order to attract the eyeballs.
    Today more than 80,000 multinational corporations (MNCs or MLMs) are
    operating worldwide with more than 800,000 foreign affiliates.

Leave a Reply to Andy Cancel reply

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