Posted in Code, Nerdiness, News, Wordpress
0 Comments

StatsFeed Wordpress Plugin — Mar 26, 2009

Intro­duc­ing Stats­Feed, a Word­Press plu­gin that pro­vides an RSS feed of your blog stats, so you don’t have to keep log­ging in and check­ing your Dash­board (which, before writ­ing this plu­gin, I did obsessively).

Instal­la­tion:

  • Down­load statsfeed.zip, and either use WordPress’s Add New Plu­gin browser, or unzip statsfeed.zip and upload the stats­feed folder to your plu­g­ins direc­tory /wp-content/plugins/
  • Make sure you have the WordPress.com Stats plu­gin already installed.
  • Acti­vate Stats­Feed. Con­fig­u­ra­tion is not nec­es­sary, but you may choose an update sched­ule (other than every 20 min­utes, the default) in Set­tings, under StatsFeed.
  • Sub­scribe to your Stats­Feed at
    <your blog url>/wp-content/plugins/statsfeed/index.xml

(For details on installing Word­Press plu­g­ins in gen­eral, see here.)

Descrip­tion and Notes

Stats­Feed is a very sim­ple wrap­per for a python script that checks your blog sta­tis­tics (by query­ing http://stats.wordpress.org/csv.php) at a fre­quency of your choos­ing. If your blog has gar­nered new hits since the last check, Stats­Feed updates an rss feed, which you can view on your own time in your favorite reader.

A few notes:

  • Stats­Feed requires the WordPress.com Stats plugin.
  • The sta­tis­tics in the feed are total views, post views, refer­rers, clicks, and searchterms peo­ple used to get to your site (the same as on your Blog Stats page).
  • Stats­Feed uses Andrew Dalke’s PyRSS2Gen python module.
  • Stats­Feed does not track the stats for your blog’s RSS feeds. It only gath­ers infor­ma­tion from WordPress.com Stats. To track sub­scribers and views for your blog’s other feeds, have a look at Feed­burner.

Here’s an exam­ple of a Stats­Feed feed (viewed in Net­NewsWire):

an example of a StatsFeed feed

an exam­ple of a Stats­Feed feed

This is my first Word­Press plu­gin, and it’s still in test­ing, so I’m not ready to sub­mit it to the word­press plu­g­ins site just yet. This post is here so I can gauge inter­est in Stats­Feed, and also respond to fea­ture requests and bug reports.

If you decide to give Stats­Feed a whirl, please leave a com­ment or send me a mes­sage whether it works or not. I’d like to know that a fair num­ber of peo­ple have tried it out suc­cess­fully before I move for­ward. Thanks!

Share and Enjoy:

Comment Feed, Trackback.

Leave a Reply