How to Add Google Analytics to Your WordPress Blog

by Andy Wibbels on January 29, 2007


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.

{ 44 comments… read them below or add one }

How To Add Google Analytics Plugin To WordPress at AppMan January 31, 2007 at 2:04 am

Harri February 1, 2007 at 4:09 am

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 :)

www.kenwong.com.au/blog » Blog Archive » Adding Google analytics code to Word Press February 21, 2007 at 7:45 am

Web2.0 Effect Blog Web 2.0 Blog Technology Help » Blog Archive » Google Analytics gets a facelift May 8, 2007 at 5:11 pm

Web2.0 Effect Blog Web 2.0 Blog Technology Help » Blog Archive » Google Analytics gets a face-lift May 8, 2007 at 6:16 pm

links for 2007-05-11 at DeStructUred Blog May 12, 2007 at 9:47 am

ThinkBooth May 25, 2007 at 11:30 pm

Simon Scullion » links for 2007-10-02 October 2, 2007 at 3:24 pm

Chris Hunter October 8, 2007 at 3:13 am

Great post! Bookmarked!
Thanks!

Kamal October 10, 2007 at 2:15 am

brilliant advice Andy..thanks a million!

muhammad November 5, 2007 at 8:01 pm

i already did.
see it
http://www.azazone.com

mindest einsatz einsatz einsatze November 15, 2007 at 8:28 am

spielebank…

Danach internet spiele realisitisches kasino…

Archana M November 21, 2007 at 10:33 pm

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

The Gasall Family » Blog Archive » I’m watching you November 30, 2007 at 1:26 am

application loan payday December 19, 2007 at 11:59 pm

business internet loan payday start internet loan payday…

Actually application loan online payday loan payday software…

GMAT December 28, 2007 at 3:41 am

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?

Carlos Miller January 8, 2008 at 9:20 pm

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

klingeltöne kostenlos January 9, 2008 at 9:05 am

klingelton download klingelton klingeltöne…

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

Brent January 9, 2008 at 3:55 pm

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?

sharemarkets January 17, 2008 at 3:39 am

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

wilbur January 27, 2008 at 8:55 am

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.

kristilliset soittoäänet February 1, 2008 at 11:25 pm

simpsons soittoäänet…

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

thepixeljam February 2, 2008 at 1:33 pm

thanks dude, worked like a charm!

Andy February 7, 2008 at 1:37 pm

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

zerotomillion.com » Your Blog Philosophy - Do you pay it forward? February 11, 2008 at 6:32 pm

anon February 29, 2008 at 3:21 pm

thanks – beats hand coding it every time!

Andrew Smith February 29, 2008 at 8:45 pm

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

Neil Cowley March 17, 2008 at 8:55 am

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

No Name Blogger April 5, 2008 at 11:48 pm

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

eugenio April 25, 2008 at 5:43 am

thank u. it worked good

bored-mind April 25, 2008 at 2:21 pm

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

Stephen Grant May 13, 2008 at 9:02 am

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

Mark June 2, 2008 at 9:50 am

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

Gadgets June 4, 2008 at 3:42 am

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

Patti June 6, 2008 at 4:22 pm

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

muki June 6, 2008 at 6:36 pm

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… ;)

Sarah June 22, 2008 at 2:19 pm

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

Devin Rose July 4, 2008 at 9:05 am

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!

Roopesh July 22, 2008 at 7:47 am

Hello Andy,
Thanks for the step by step instructions.

cuwid ganteng August 10, 2008 at 9:43 am

thank you, trying now :)

James Kurtz III August 25, 2008 at 7:46 am

Thanks for the walk-through. Very helpful!

montia September 7, 2008 at 2:44 pm

Thanks a bunch for these clear instructions!

raquel September 11, 2008 at 12:18 pm

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.

Fernando July 31, 2010 at 5:27 pm

I paste the code and save it but it won’t stick. It reverts back to the default code it came with the plugin.

What’s up?

Leave a Comment

Previous post:

Next post: