
WordPress.com Stats Not Working for You?
WordPress.com Stats is a hugely useful tool. In one screen you get numbers for today/week/month, along with post and SEO information. It’s everything a blog author needs for metrics. If it’s installed and not working, you’ll want to read this.
If you’ve installed the WordPress.com Stats plugin and it’s broken, I may have a quick solution for you.
Go into your theme folder and open footer.php. Look for this code:
<?php wp_footer(); ?>
If you DON’T see it, your WordPress.com Stats will not be able to install the javascript code it needs to collect activity. Add it somewhere above the closing </body> tag.

WordPress.com Stats
Aside from seeing stats in your Stats page, you can tell that WordPress.com Stats is working by viewing source and finding the line of code beginning with:
<script src="http://stats.wordpress.com/....You can also go to the bottom of any content page and look for the little smiley character.
I hope this helps you save the hour that I just lost to this little template bug.


January 30, 2010
Hey, thanks for this, it really helped. I usually delete all the contents of the default theme and building on it from scratch. It never crossed my mind that the wp_footer() was actually useful for something.
Cheers!