This plugin has been closed for new installs. Stats

Description stats has merged into Jetpack and all future upgrades to Stats will only be available in Jetpack. Jetpack connects your blog to the cloud, enabling awesome features. Get Jetpack now!


  • Your stats are displayed in a frame on your own blog's dashboard. There are graphs and several sections of charts below. You will need to be logged in at to see the stats. If you see a login box here, use your login.

  • Each post has its own graph.

  • You can add other users to the list of people allowed to see your stats.


Please install Jetpack.


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):

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, 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 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>
<?php foreach ( $top_posts as $p ) : ?>
        <li><a href="<?php echo $p['post_permalink']; ?>"><?php echo $p['post_title']; ?></a></li>
<?php endforeach; ?>
<?php endif; ?>


Read all 5 reviews

Contributors & Developers

“ Stats” is open source software. The following people have contributed to this plugin.


Translate “ Stats” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fixed typo.


  • Added notice to upgrade to Jetpack


  • Fix always-on admin_bar option (reported by sillybean)
  • Send more post data to the API (no content or passwords)
  • Send more blog data to the API for generating reports
  • Fix API key reset link
  • Update readme to mention Quantcast and Jetpack


  • Drop SSL from server-to-server requests for stats reports
  • Prepare dashboard widget for upgrade to flot charts


  • Fix Notice: Undefined index: HTTPS (props teetilldeath)
  • Add chart to admin bar with 48-hour views sparkline
  • Add color and ssl parameters to proxy calls
  • Update FAQ


  • Fix deprecated function call_user_method_array (props Galeforce99)
  • Move data deletion to uninstall hook (props viper007bond)
  • Change “Get your key here” link to


  • Reinstate deactivation hook


  • Add domain to gettext calls and load_plugin_textdomain (props nbachiyski)
  • Add POT file and Text Domain
  • Change some escaping functions (props nbachiyski)
  • Remove delete_option from deactivation hook


  • Remove footer test pending investigation of errors.


  • Add real-time test to check footer immediately prior to displaying notice. Should help automatic upgraders.


  • Remove support for hard-coded API key as $stats_wpcom_api_key
  • Update admin screen after API key entry to add Recommended Action and clarify instructions
  • Add option to disable shortlinks
  • Add option to select roles with stats report visibility
  • Add option to enable tracking logged-in users
  • When activated for entire network, do not show admin notice about missing API keys
  • When plugins.php disabled, move stats admin page to options-general.php
  • Add check for footer code and display a helpful notice if not detected


  • Add support for shortlink API in WordPress 3.0
  • Add CSV usage example to readme
  • Remove .htaccess
  • Remove all-time stats from dashboard widget


  • Fix infinite loop when shortlink function dec2sixtwo called with a negative number. Thanks to Andrew Mattie for identifying this bug.
  • Fix unescaped Top Searches section in dashboard module. Thanks to Kobi for the report.


  • Fix attachment titles in post stats list.
  • Fix chart not appearing due to .htaccess directive installed by some users. Thanks to Sean at for access to his affected system.


  • Add shortlink generator. Now shortlinks are available on the Edit Post screen from a button next to View Post.


  • Work around core API change in plugins_url. Different code for 2.7. Fixes missing charts in 2.7.*. No changes for 2.8+.


  • Restore backward compatibility for WordPress 2.7. Fixes “Call to undefined function plugin_dir_url()…”


  • Fix dashboard chart missing due to omitted line of code.


  • Include Open Flash Chart SWF. Faster and more reliable than proxying it. Should fix missing graph for many users.
  • Move change log out of source code.
  • Fixed an XMLRPC encoding issue that resulted in “malformed” error when entering API key. Thanks to Oscar Reixa for helping.


  • Kill iframes.
  • Use blog’s role/cap system to allow local users to view reports. (No more switcher.)
  • Thanks to Stefanos Kofopoulos for helping to debug encoding issues.


  • Added gmt_offset setting to blog definition. (Stats in your time zone.)


  • Fixed “Missing API Key” error appearing in place of more helpful errors. Hat tip: Walt Ritscher.


  • If blog dashboard is https, stats iframe should be https.


  • fopen v wp_remote_fopen CSV fix from A. Piccinelli


  • Compatibility with WordPress 2.7


  • Compatibility with WordPress 2.7


  • wpStats.update_postinfo no longer triggered by revision saves (post_type test)