Plugin Directory

WordPress.com Stats

Simple, concise stats with no additional load on your server. Plug into WordPress.com's stats system with this plugin or use Jetpack to bring eve

Can I keep using existing stat systems like Mint, Google Analytics, and Statcounter?

Of course, nothing we do conflicts with any of those systems. We're just (hopefully) faster.

How long before I start seeing stats?

It may take as long as 20 minutes the first time you use it. After that they should update every 3 minutes or so.

Does it count my own hits?

There is an option to disable counting the hits of logged-in users.

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. (Typically in your theme's footer.php, but some themes put this in more than one place.)

Can I hide the smiley?

Sure, just use display:none. Try this code in your stylesheet (style.css in your theme):

img#wpstats{display:none}

Is it compatible with WP-Cache?

The plugin collects stats via a javascript call, so as long as the JS call is on the page stats will be collected just fine, whether the page is cached or not.

Can I use the same API key on multiple blogs?

You're welcome to use the same API key on multiple blogs. If you view your stats directly on WordPress.com, you can easily switch between all of your blogs' stats reports.

How do I add a Top Posts widget to my blog?

We opened our database for developers to retrieve stats. The API is at http://stats.wordpress.com/csv.php and the plugin includes a handy function, stats_get_csv(), which you can use to get your most popular posts. Here is code you can add to your theme based on the work of Ben Gillbanks:

<?php if ( function_exists('stats_get_csv') && $top_posts = stats_get_csv('postviews', 'days=7&limit=8') ) : ?>
    <h3>Currently Hot</h3>
    <ol>
<?php foreach ( $top_posts as $p ) : ?>
        <li><a href="<?php echo $p['post_permalink']; ?>"><?php echo $p['post_title']; ?></a></li>
<?php endforeach; ?>
    </ol>
<?php endif; ?>

Requires: 2.8 or higher
Compatible up to: 3.2.1
Last Updated: 2011-9-15
Downloads: 3,079,193

Ratings

3 stars
3.2 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
1 person says it's broken.

100,1,1
50,2,1 86,7,6 0,1,0 100,1,1
100,1,1 74,50,37
100,1,1 63,27,17 82,11,9 75,4,3 67,3,2 67,3,2 100,1,1 100,1,1 100,1,1 50,2,1 100,1,1 100,1,1
94,18,17 70,37,26
100,1,1 100,1,1 100,1,1 65,37,24 59,79,47 0,2,0 100,1,1 0,1,0
0,1,0 0,1,0 50,2,1 0,1,0 75,8,6 57,75,43 62,74,46 50,4,2 67,3,2 38,8,3 100,1,1 0,1,0
100,1,1 69,16,11 100,1,1 100,3,3 60,63,38 100,3,3
100,1,1 69,13,9 51,90,46 100,1,1 73,59,43 100,1,1 0,1,0
57,7,4
100,11,11 0,1,0
100,7,7 67,3,2 89,9,8
33,12,4
0,1,0 83,6,5 83,6,5 21,225,47 100,2,2
33,15,5
0,1,0 0,1,0 0,1,0 40,15,6
50,12,6
100,2,2
75,4,3 100,1,1
46,24,11 0,1,0 60,20,12
60,5,3
53,19,10
38,8,3
100,2,2
67,3,2
100,1,1
50,2,1
50,2,1