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.
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 Get Satisfaction, SAY Media, InMobi, Keas, and Mindjet. Currently, Andy is Director of Marketing at Lucidworks. Tw · Fb · G+ · Li

48 thoughts on “How to Add Google Analytics to Your WordPress Blog

  1. Harri

    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 šŸ™‚

    Reply
  2. Brent

    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?

    Reply
  3. 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.

    Reply
  4. Stephen Grant

    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

    Reply
  5. Mark

    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

    Reply
  6. muki

    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… šŸ˜‰

    Reply
  7. Devin Rose

    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!

    Reply
  8. raquel

    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.

    Reply
  9. Azhar

    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

    Reply
  10. jay

    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

    Reply
  11. www.nexopia.com

    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.

    Reply

Leave a Reply

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