WordPress.org

Support

Support » How-To and Troubleshooting » WordPress Stats

WordPress Stats

  • Is there a piece of code or something I should have in my site for the webstats to work? I know for a fact people have been to my site but when I use the Dashboard->Blog Stats and login to wordpress there is nothing showing?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    I have been using the services of GoStats.com , it is working fine for me. It is as simple as copy and paste of code.

    I have the same problem and I think I have one piece of the puzzle. I see a reference to this in the FAQ for the WordPress stats plugin but I’m not quite sure how to implement it:

    [QUOTE] What if the stats don’t start showing up? Do I need anything special in my theme?
    Yes, your theme must have a call to <?php wp_footer(); ?> at the very bottom right before the </body> tag.[END OF QUOTE]

    I edited the footer of my theme (where the </body>
    tag is and pasted <?php wp_footer(); ?> in right in front of the body tag. Not sure if that counts as a ‘call’ or do I have to add something else?

    Example of a footer.php in your theme folder:

    <div id="footer">
    <a href="<?php bloginfo('siteurl'); ?>/wp-admin/" title="Login">Powered</a> by <a href="http://wordpress.org" title="WordPress" target="_blank">WordPress</a>
    	</div>
    <?php wp_footer(); ?>
    </body>
    </html>

    Just has to be in there for the wp.com stats plugin to work.

    Trent

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Stats’ is closed to new replies.