Wordpress.com Stats Disappear After New Theme Install

Written by sean on April 30, 2008 – 11:30 am -

Wordpress_IconLast week, when I installed the new theme for my site (Xplosive from BlogOhBlog), I noticed my stats in Wordpress.com Stats plugin dropped to 0. I thought this might just be a fluke, since every once in a while I will have a day where the visits are in the single digits. But by day two I was getting worried. Then I received a message from a friend using the Contact page and I knew something was up since it was still showing 0 hits.

I was still getting a page count via Google Analytics, but I love Wordpress.com Stats. The stats are (almost) real time, and it gives me just enough information for a quick over view of what has been going on. After some digging I found that this sometimes happens.

The fix is pretty easy, although it will require you to modify actual PHP pages (which is not that hard with the Wordpress Theme editor. I am assuming Wordpress 2.5 for this (although everything should work in earlier installations). Simply go to the Design Tab->Theme Editor. Now we will need to add the function in 3 places:

Read more »


Tags: , , , ,
Posted in Blogging, Tech, Tip, Web | 1 Comment »
RSS