Help! My Google Analytics Has Stopped Working!

This little tale of woe is being told so that hopefully, if your Google Analytics has stopped working on your Wordpress blog, you can get it up and running in a jiffy!

Google asks us to put the code for its analytics just before the closing body tag – which looks like this: </body> in the HTML code.

Well, Wordpress uses a loop to pull together several php files to display your site as a seamless work of art – it doesn’t work the same behind-the-scenes as a Joomla template, or a basic straight HTML site. And because not all Wordpress templates are created equal, the placement of the analytics code can differ.

Watch the above video (it’s short, so don’t worry!) to see what quick fix I used to get this blog’s stats back up and running after I changed it before going on vacation. The cardinal sin was not checking the stats worked before I went away!

Post to Twitter Tweet This Post

Related posts:

  1. Working Out Where Your Website Sucks


2 Responses to “Help! My Google Analytics Has Stopped Working!”

  1. If you are using Wordpress, you may consider using a plugin like Google Analyticator ( http://wordpress.org/extend/plugins/google-analyticator/ )
    This would insert the code (independent of the theme) in the correct place and also allows your (or your clients) to add additional tracking references (eg: file types) with the click of a button.

  2. That is a great plugin – thanks for the link! I a lot many plugins but never thought of having one to do something so simple as inserting the analytics code in the correct place. It also uses the async tracking methods so that’s even better. :)

Leave a Reply

Spam Protection by WP-SpamFree