Wordpress Stats Plugin is not Working or Gathering Information

June 8, 2008 · Filed Under Blogs 


WP Stats is not displaying any information for my blog!

If you are a blogger then you probably use the WordPress Stats plugin. For those who don’t, it is a plugin that gathers various statistics from hits to your blog. It gathers information on the number of page views, the most popular posts, search terms people use to find your blog, what sites send send you traffic, and lot of other great stuff.

Now imagine how lost you would be without this information. I recently ran into a situation where this was the case, and after a little research I was able to find out why WP Stats was not working on this particular blog.

I was helping a friend get their blog setup, and we ran into quiet a few issues. They were transferring an old website they barely maintained over to a blog format to make it easier to update and manage the information they already had.

During all the troubleshooting involved in switching the old site over to a blog, I noticed the WordPress Stats plugin was not gathering data. I tried several things to fix this, deactivating and restarting the plugin, re-entering the API key, checking settings in the admin panel and on WordPress.com, uninstalling and reinstalling the plugin, updating the plugin. None of this seemed to work.

Then I came across a post on the WordPress.com forums talking about this issue. Apparently on some themes there is a function that is left out of the footer that is needed for WP Stats to work correctly. If this is the case with your theme, that is probably what is causing the problem. To fix this you need to go into the “footer.php” file in your theme editor.

In the footer.php file scan to the bottom and look for the “</body>” tag [without the “ “]. Once you have found the tag you will need to insert this line of code above it:

<?php wp_footer(); ?>

Once that is done update (save) the file and then test WordPress Stats to see if it is working.

You may want to do this by logging out of your blog admin panel, and them clearing your cookies and temporary internet files. Once you have done this go back to your website and browse through a couple pages and this should generate a couple page views in WP Stats.

You need to make sure you are logged out of admin, and to clear your temp files or else your blog will not count hits from you because it will think you are the admin.

Hopefully your WP Stats plugin should be working now, and you will see your test page views showing up in the stats. If you see those page views WordPress Stats should now be working correctly.

Thanks for checking out Pseudorant. We appreciate the support!

Bookmark and Share

Comments

5 Responses to “Wordpress Stats Plugin is not Working or Gathering Information”

  1. Sue Massey on June 8th, 2008 8:31 pm

    Hello.

    I would like to put a link to your site on my blog roll if you want to do the same for mine. It would be a good way to build up both of our readerships.

    thank you.

  2. BioTecK on June 9th, 2008 6:57 am

    I didn’t knew about this plugin. I just trusted the information shown in my webstat.
    Thnx for sharing, going to get the plugin!

  3. Paul on June 9th, 2008 10:32 am

    I work with a lot of different stat services between home, work, and secondary jobs. Out of all of them I find the WordPress Stats Plugin the most useful for “at a glance” information. Other services provide very indepth details, but WP Stats manages to show me the majority of what I am looking for on one screen.

    It can also become a plugin that gets checked obsesively if you are like me. ;)

  4. Jonathan on June 29th, 2008 3:43 pm

    I have been searching for an answer to this very problem, and thanks to you I have found it! Great stuff… great stuff….

  5. Jeremy S on July 16th, 2008 7:24 pm

    Your help fixed my problem!! Thanks a bunch for the great info.

Leave a Reply