How to fix WordPress.com Stats plugin showing zero (0) visitors!

Categories: Troubleshooting

This article explains how to fix WordPres.com Stats plugin when it doesn’t show any statistics for your site or shows 0 visitors.

I recently installed WordPress.com Stats Plugin on one of my sites. WordPress.com Stats provides statistics on most popular metrics about the visitors to your site. Unfortunately, for some reason the plugin wasn’t working properly. It was showing zero (0) visitors for each day (which was wrong) and all the other stat blocks like “Top posts & Pages”, “Clicks” etc were empty. I tried many things like deactivating, deleting and then reactivating after uploading a new copy of the plugin to address this issue. I even used a different API key to see if that works. None of these methods worked. It was really surprising to me as the plugin works fine on two of my other sites. Anyway, after spending a lot of time trying to fix this issue I decided to read the Frequently Asked Questions (FAQ) section and found the answer to the problem. *hint* always read the FAQ section :)

Here is what you have to do to address this issue if you are having a similar problem.

Insert the following line in your “footer.php” file of your template at the very bottom right before the </body> tag.

<?php wp_footer(); ?>

Example of a “footer.php” file

<div id=”footer”>
<p><a href=”<?php bloginfo(‘url’); ?>”><?php bloginfo(‘name’); ?> – Example text</a></p>
</div>
<?php wp_footer(); ?>
</body>
</html>

The reason it was working on my other sites from the start was because the themes used by default had that function call in the “footer.php” file. Hope this helps solve your WordPress.com Stats Plugin issue.

Articles you may also like:

  1. WordPress Easy Paypal Payment or Donation Accept Plugin
  2. Easy to use WordPress plugin for Contact Form
  3. How to Uninstall and Reinstall WordPress
  4. WordPress Plugin for Simple Google Adsense Insertion/Integration
  5. Apache Mod Security update, How to Fix ‘Error 406′ or ‘Not Acceptable’ issue
Tags: , , ,

Subscribe to Tips and Tricks HQ to stay informed

twitter_icon

5 Responses.

  • #1 by mommi84 on June 23, 2011 - 6:41 am

    GREAT JOB! Thank you so much!

  • #2 by Angelo on March 29, 2010 - 5:23 pm

    Thank you so much, I’ve been trying to solve this ever since I started my second blog for school. I just couldn’t find the problem.

    But it’s fixed now. Better late than never, but still thanks!
    .-= Angelo´s last blog ..Bauhaus =-.

  • #3 by ZcMander on March 23, 2010 - 2:47 pm

    Thanks, I have tried google this earlier, and never realized that I had construct site in wrong way.

    Another Stats-plugin called “StatPress” works perfectly without wp_footer();
    .-= ZcMander´s last blog ..Uutta peliprojektia =-.

  • #4 by Sushant @ Tech Gadgets on February 17, 2010 - 10:44 am

    Thanks you saved me a lot of time
    .-= Sushant @ Tech Gadgets´s last blog ..eVouse Mouse Pen Concept by Marcial Ahsayane =-.

  • #5 by John on September 5, 2009 - 9:16 am

    Hi, i have same problem. but its not working
    help me

Featured & Popular Articles

Tips and Tricks Hot Items

wordpress estore plugin
wordpress membership plugin
WordPress PDF Stamper Plugin
WordPress Lightbox Ultimate Plugin
WordPress Affiliate Link Manager Plugin
wordpress affiliate plugin