Word Press Stats Dissapearing?
New readers probably think that I’ve got a pretty good design going on here, but some of you will recognize that I recently changed my template (for the better, I think). The day that I changed my template, my word press stats stopped updating.
I deactivated and reactivated the plugin, double checked my wordpress API key and everything seemed to be in order. A quick check of the Codex brought me the solution.
First of all, if you havn’t already, check out the WordPress Stats plug in (see this post). You’ll need a wordpress API to activate it, all you have to do is create an account on Wordpress.com, you don’t need to create a blog.
After installing the WordPress Stats plugin and activating it, simply drop in your API code to start collecting stats. The stats are stored on the WordPress servers and database which saves space and processign time on your own server. I imagine that by offering such a nice stats package, the folks at WordPress have a means to track the usage of WordPress software, since it’s freely downloadable onto a local server. This is a way in which they can still see how much it’s being used by open source fans.
So now that you’ve gotten that far, you only need one more check. There is a PHP call that needs to be in your footer (probably anywhere in your template), that calls the stats package, without it, no stats will be updated.
This was the missing piece in my new template. once I added it using the Theme Editor from my Presentation tab, my stats were back up and yet another tool for procrastination was created!
Here’s the magical code:
Note that this is different than the following code that probably appears in your index file.
Every template is slightly different, so check the code in your footer if you are having trouble with your stats. Let me know how its going!
Popularity: 12% [?]

Leave a Reply