Have Your WordPress Stats Stopped Working

So your WordPress stats don’t work?

stats.gifA few days ago the theme here on WordPressMax was changed and a few days later I checked my stats in the dashboard and I saw nothing at all. Now I know I am not getting tons and tons of traffic but when I saw absolutely none for a few days I knew there was a problem with one of the plugins or the theme. If you recently changed or edited your theme this may be why. Here is a short WordPress guide to check and fix your stats.

The WordPress.com Stats uses a bit of code in your footer template to run the plugin. Even if you have a footer.php file the code below must be in the file in order for the plugin to work. I am not going to get into why or how because I don’t know and frankly all I wanted was for it to be fixed and it worked.

Open your footer.php file and make sure you have the needed code in place to run the plugin shown below, near the bottom of the file just above the closing body or html tags:

<?php wp_footer(); ?>

</body>
</html>

This fix worked for me and stats started showing immediately.

Similar Posts:



Tags: , ,

If you liked this post, feel free to leave a comment that is relevant to the post or subscribe to the feed and get future articles delivered to your feed reader.

Sorry but due to the spamming of a few all comments are moderated and will appear when approved and all drive-by comments will be deleted!

Comments

Thank you for this tip.

Reply

[...] There were multiple possible reasons. The two less likely reasons concerned me a little. First, at that point I had just turned over my blog theme from its year long focus on Slow Reading to its current form; did I lose that much of an audience because of it? Two, I had just deleted my Twitter account after a one-day experiment with it; did this action seem un-”friend”-ly in Twitter world and cause those who welcomed me to dump me? Silly eh? The real reasons turned out to be the most likely: I had upgraded to WordPress 2.5 and changed my theme at the same time. See this solution. [...]

[...] several links on Google, I found the answer to my question. Jeff, from wordpressmax.com wrote a quick how-to to fixing this issue. Apparently a small line of code was not included by the author of the theme I had just [...]

Thanks for the tip! I moved some static pages over to WP with a custom template and it was driving me crazy trying to figure out why they weren’t showing up in the stats!

Reply

Ya it is. But i already upgrade the stats plugin now. And it work well.

Reply

Thanks, for the awesome tip, couldn’t have done it with it!!

Reply

Sometime this happens

Reply

nice info.. i love WordpPess so much .. thanks..

Reply

Thanks for the great tips. I love WP so much.

Vijay
Auto Repair Shop Software

Reply

Thanks a lot, i thought i have a real problem

Reply

Thanks…I was sure this wasn’t gonna solve my issue cause I hadn’t done anything to my footer.php file…but sure enough, when I checked it, half of my code had mysteriously disappeared. Super weird…and a little scary.

Thanks for the info tho….peace

Reply

Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I’m more of a visual learner,I found that to be more helpful well let me know how it turns out! I love what you guys are always up too. Such clever work and reporting! Keep up the great works guys I’ve added you guys to my blogroll. This is a great article thanks for sharing this informative information.. I will visit your blog regularly for some latest post

Reply

I agree with Melayu Boleh. I think the content on your site is very informative and helpful but, you might want to consider adding more videos or pictures to help your visual learners. It would be greatly appreciated.

Reply

Thanks for the fix!

Reply

[...] About a month after I started this Blog (maybe less) my Wordpress stats stopped working. I was too stupid at the time to notice that I had just coded my own theme from scratch. I figured it was because of one of my plugins, and just ignored it… until today. I got tired of having to use Google Analytics to get information on my visitors. After some Google searching I found this article. [...]

Thanks so much for this! I thought my Wordpress stats plugin would never count visits again. lol. Thank you. :D :D

Reply

Thanks man! I really wondered why no one visits my blog… then I tested it with my friend and stats didn’t work :-( but your fix is easy and fast thanks man worked great!

I really don’t like these wp_header and wp_footer functions because they put hell of useless code into your site (comment feeds in meta for example) but seems like there is no code/function to use wordpress dot com stats without them :-( .

Reply

WOOOWWW! It worked like a charm, I was very upset because there were zero visits in my blog and other plugins didnt work. Thanks a lot Jeff!!!

Reply

Leave a comment
Drive-By comments will be deleted! Like "Thanks for sharing", "Nice post", or any other text that doesn't contribute to the discussion. If you ask a very specific question about your particular WordPress theme, it will probably be deleted. I can fix your WordPress site but for a price. If you ask a question like "Why don't my blog work right", it will be deleted. If you ask a question about your WordPress site without a leaving a link to it, it will be deleted. The point is to ask questions and or comment on the the actual content of the post, and to please use some common sense. All comments are moderated and will appear when approved. Thank you.

(required)

(required)