RSS Feed for This Post

WordPress Plugin Feedburner Feed Stats Your Blog

Feedburner Feed Stats is a simple plugin that I put together with the ideas (and some of the code) from an article that I was reading yesterday for a Wordpress hack of sorts.

The idea is good and the code is simple

.

Since a lot of people like the subscriber statistics offered by Feedburner but want to continue to offer feeds directly through Wordpress, if there was a way to pass on every feed request made to Wordpress transparently onto Feedburner, Feedburner would be able to gather subscription data. 45n5 came up with the concept and some of the code for the Wordpress hack. I took some of that code, some more code from transparent proxy scripts, added a smattering of more code on suggestions from Eric Lunt along with the plugin framework that was already built by Steve Smith and am ready to alpha test my version of the Feedburner Feed Stats Plugin.

As I explained to a friend, after installing this plugin, the feed for your (Wordpress) blog will be served directly by your blog. All feedburner is doing at that point is counting the number of people that read your feed.

You can download the alpha code from the following link. Download the Feedburner Feed Stats Plugin

Couple of gotchas and assumptions:

  • You have to disable any Feedburner redirect plugins since this will effectively do the same thing. Might cause double the stats and all kinds of goofy redirect problems.
  • You will lose the click through statistics from Feedburner since the links on the feed are no longer from Feedburner.
  • I am assuming that Feedburner respects the HTTP_X_FORWARDED_FOR header from transparent proxies and uses that information to tag unique subscribers. The answer to that question might affect subscriber numbers
  • It looks like the country of origin is not determined by the proxy information and everything is showing up as the servers’ location. I wonder what they use to determine the location of the subscriber. I also wondered if there was a way to spoof the remote_addr server variable from inside a curl request.
  • As pointed out in the comments, this plugin requires PHP 4 >= 4.3.0
  • Also, as Adam points out in the comments, Apache is required for this version of the plugin
  • If you run any kind of ads over Feedburner, this is not for you

,
If you still have questions, please leave a comment. Installation is really simple. Just download, move to your plugin folder, activate in your Wordpres back end, go to the options tab and configure. If something breaks, simply turn the plugin off or delete it from your plugin folder. Please post bugs and suggestions.

564 Read

Trackback URL