WordPress Tutorial: Add the Latest Version of Google Analytics to your WordPress Blog

This WordPress Tutorial will show you how to adding the proper tracking code to your header.php file in your WordPress Blog or Website so that you can view data and statistics related to your WordPress blog.

If you are using the WordPress Thesis Theme then you should not read this post or watch this video.  Thesis Theme users need to go here  immediately!

Some things that Google Analytics will allow you to observe are the number of visitors to your site, keywords people typed into Google to find your site, the name of other sites that referred a visitor to your site (e.g. Facebook, Twitter, LinkedIn, YouTube, StumbleUpon, etc.).

After you install the proper tracking code on your WordPress blog you will have to wait about 24 hours before any visitor statistics are posted in your Google Analytics Account.


Meet the Author

17 comments… add one
  • marquita herald Oct 17, 2011, 8:57 pm

    Great tutorial Jim – very easy to follow. Thanks!

  • Answering Service Oct 18, 2011, 7:48 am

    Straight to the point – great instructions.

    If there is anyone not using Google Analytics, please follow this post and get it installed. You have no idea how much data you are missing.

  • Trevor Barrett Oct 18, 2011, 9:02 am

    This is great advice for any blogger Jim. By the way, it isn’t just Thesis that has options, other themes do as well but you have made the process so simple for anyone to follow and complete.

    Just to reiterate, tracking where your visitors come from is such an important part of internet marketing.

  • Dr. Erica Goodstone Oct 18, 2011, 10:24 pm

    Jim, I do have Google Analytics installed and yet I don’t often check out the stats. Thanks for the reminder about how valuable that information really is.

    Dr. Erica

  • Kyle Quinlan Oct 19, 2011, 2:21 am

    Thanks for the informative post Jim.
    It was good to see your video because I just got camtasia yesterday and have been messing around with it. I’ve always like your on screen videos and I’m excited to begin to make my own now.
    Take Care!

  • Samuel Joshua Oct 19, 2011, 6:23 am

    Hey Jim !
    That was really very interesting and informative post.I have watched your video on Google Analytics Installation and it seems to be look like that it is very easy to install.The main thing which is very much beneficial with this Google Analytics software is that with the help of this we can get all the informations related to our visitors.I am going to install this right now on my Wordpress Blog.
    Thank you for sharing such a great,valuable and considerable content with us.

    Good Luck and God Bless!!

    With Regards!
    Samuel Joshua

  • Raena Lynn Oct 19, 2011, 10:22 am

    Hi Jim,

    Thank you for your informative video on installing Google Analytics. I already have it installed on my blog, however I needed some help with deciphering some of the information on the site. Your purpose of the video is to show how to install Google Analytics, but I like your overview of the statistics at the end.

    This is a good reminder to use the information to improve my traffic and staying power!

    Raena Lynn

  • Dave and Dawn Cook Oct 21, 2011, 3:08 pm

    Hi Jim,
    You do such a great video tutorial covering all the details. You do a great job with Camtasia’s great features to increase the benefits to your many students.

    You are correct in emphasizing the importance of the use of Google Analytics especially in the knowledge you can discern from the results of your blog’s analytics results that you covered so well. it’s great to hear your perspective on how to use your Google Analytics results to continue to improve traffic to our blogs.

    Continue your great service to all the bloggers who rely on your expertise and guidance.

    (Dave) and Dawn

  • Gary Young China Sourcing Oct 22, 2011, 5:16 pm


    I’ll have to give it a try. Seems very helpful!

  • Ana Oct 23, 2011, 7:57 am

    This is a very concise tutorial and easy to follow. Thanks for sharing!

  • Donna Merrill Oct 23, 2011, 8:34 pm

    Hi Jim. Google Analytics has been my best friend. If I can install it anyone can. This was such an informative post. Anyone with a wordpress blog needs to have this. I use it quite often just to see what is really happening on my blog.
    Thanks Donna

  • John Gaydon Oct 27, 2011, 6:50 pm

    Hey Jim,

    Like it or not, we need to know where our traffic is coming from, and what people are searching for.

    You don’t have to use it all, but the more information you have, the more likely you are to succeed!

    Thanks for laying this out so clearly.

  • Jaclyn Castro Oct 27, 2011, 8:26 pm

    Man I love the ‘system’ you use when you record your videos. Do you have some sort of blueprint/formula for being so complete when teaching us through your vids? I would love to know so please share. Thank you once again for sharing your knowledge. I do have Google analytics on my blog. But I did share your post ON my FB fan page.

    You rock Jim!!

    -Jaclyn Castro

  • Greg Nov 5, 2011, 5:16 am

    Hey I just found your post and it looks really informational. I will try this one on the video.

  • Pete Goumas Nov 13, 2011, 4:33 pm

    Hi Jim,
    It is a very nice and informative wordpress tutorial.You well explained how to add latest version of google analytics to wordpress blog.This post is really helpful.Thanks for sharing~!

  • Nile Jan 25, 2012, 11:22 am

    I recently decided to do away with the Google Analytics plugin as… well, it is just another plugin and the code for adding analytics is not that huge any way.

    I definitely recommend it as a top ten, but I have been having this feeling lately I need to write a post on several ways to add GA to a persons site, and include WordPress in it.

    Thanks you for sharing this. 😀

    • jupiterjim Jan 26, 2012, 1:58 am


      I agree, the process for adding Google Analytics is so simple and easy and requires so little code to be pasted, that it doesn’t make any sense to me to use the plugin. People forget that “the more the merrier” philosophy does not apply to plugins. You don’t want to use any more plugins than you absolutely have to. The more plugins you have, the more plugins that will NOT be updated ontime the next time WordPress updates. The more plugins you have, the greater the potential for plugin programming conflicts that can affect the smooth functioning of your site!

      — Jupiter Jim

Leave a Comment