WP Plugin: Feedburner Feed Stats

March 2nd, 2007
WordPress Hack, WordPress Plugins

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.




  1. Enblogopedia (3 comments.) says:

    If you run any kind of ads over Feedburner, this is not for you

    I`m not using Ads by Feedburener, by it`s the first question get to my mind :).
    Thanks for the clarification.

  2. (2 comments.) says:

    well… it is indeed good… but error shows on my site… -_-b… help…

    Fatal error: Call to undefined function apache_request_headers() in /home/.giantic/iambencn/ on line 92

    WP installed on Dreamhost….. and it cannot fix after deactivating…


  3. Mark (386 comments.) says: you should be able to just delete the plugin file from your plugin folder if you get that error for everything. Once you delete the file, everything should be back to normal.

  4. mark from (1 comments.) says:

    Awesome! Thanks for the mention and taking the small idea to great new heights.

  5. (2 comments.) says:

    Mark: well… i had tried it… after deleting the file, the /feed/ stayed the same with the error… and i turn off the cache plug-in, the same… and i clear the caches, also the same… and i am just wondering how can WP call the file after i deleted it… so weird… any other help…. T_T i just cannot fix it myself….. thx….

  6. Laundro (5 comments.) says:

    Maybe I am missing something. But where do your stats show up?

  7. Mark (386 comments.) says: If your blog is the one linked from your comment, the /feed/ works just fine for me here.

    Laundro: your stats show up inside feedburner. Once you log into Feedburner, click on “My Feeds” on the top left, then click on your feed title and then the Analyze tab.

  8. adam (39 comments.) says:

    the plugin requires Apache, as well? or just REQUEST_URI? i get a fatal error: call to undefined function apache_request_headers()

  9. Mark (386 comments.) says:

    Adam: Yes, at this time it does. I should have mentioned that in the requirements. I will add that. Thanks.

  10. mstormo (2 comments.) says:

    Oh man!
    I just release a FeedBurner Stats plugin today too, based on the same same article. :-P
    Oh well, we’ll see how it goes. You can check it out at:

  11. Mark (386 comments.) says:

    mstormo: Nice job. I see that yours will be IIS compatible.

  12. nonhocapito says:

    I have the same problem as tried the plugin and it breaks the subscribe function called from the address bar.

    it says: Call to undefined function: apache_request_headers() in [path]/FeedburnerFeedStats.php on line 92

    and it’s true the plugin seems to stay broken after you have unplugged the plugin or deleted the file, although if you open the site in a new tab and retry the subscribe operation then everything is back to normal.

    as far as I know my server is apache anyway (bluehost)-

    i really would have loved this plugin to work. I have a bunch of subscribers to my wordpress feed but there is no easy way to monitor them…

  13. Mark (386 comments.) says:

    nonhocapito and Download the plugin again and try it. I have fixed those requirements and if that was the only problem, it should work now.

  14. Sergio de la Torre (1 comments.) says:

    Line 92 problem :S

  15. jon (1 comments.) says:

    Thank you Mark, this one really helps. Too bad it took me over a month to find it.
    all the best, jon

  16. David Bradley (20 comments.) says:

    There is a neat hack to reveal a fellow blogger’s Feedburner count even if they have not displayed it on their blog, although it doesn’t work if they have set stats to hidden, it’s great for spotting who is hiding their light under a bushel and who really ought to stop wasting their time.


  17. Trevor Nash-Keller (1 comments.) says:

    Thanks for this plugin, this works great.


  1. […] that I was reading yesterday for a WordPress hack of sorts. The idea is good and the code is more | digg […]

  2. […] de FeedBurner sin tener que redirigir los feeds de tu blog. Pues ya está aquí, se llama FeedBurner Feed Stats y es obra de Weblog Tools Collection. Se lee en 0’12 minutos | Ver los enlaces a este […]

  3. […] this lead to new plugin called “Feed Burners Stats”. After writing this I am heading over to download the plugin. Tags: feed, feedburner, […]

  4. SigT says:

    Cómo tener estadísticas de FeedBurner sin usar su feed…

    Empezamos el mes calentito con el anuncio en Blog Herald de un método para aprovechar las estadísticas de FeedBurner sin necesidad de tener que usar su feed preparado por ellos.

    La idea es la más lógica, hacer que mediante PHP el Feed en cada peti…

  5. […] de FeedBurner sin tener que redirigir los feeds de tu blog. Pues ya está aquí, se llama FeedBurner Feed Stats y es obra de Weblog Tools […]

  6. […] Information for Windows WP Plugin: Preview Site Themes Privately WP Plugin: Feedburner Feed Stats 3 more GTD wallpapers! *Nice! Download a …coffee replacement, really! *I’m scared to […]

  7. […] 2.1.2 a few weeks ago, it broke (or i broke it, which is more likely). So now i’m using the Feedburner Feed Statistics Collector plugin which doesn’t hijack my feed like the other one did, but still lets me get my stats. I think […]

  8. […] 对于不想自己动手修改代码的朋友,也可直接使用按这个思路实现的WordPress插件,Feedburner Feed Stats Plugin,上传到服务器上,激活即可。——这也是博客学堂推荐使用WordPress搭建博客的原因:某个功能只要您需要,总能找到别人提供的现成工具。 […]

  9. […] 根据博客学堂对它的叙述,这个插件可以让 Feedburner 统计你所有的订阅数,包括没有使用 Feedburner 地址来订阅的。我比较赞同他的观点,使用博客自身的 url 来作为订阅地址,但也不能否认 Feedburner 存在的必要性,除了他提到的那几点使用 FeedBurner 的理由,我觉得它还可以保证博客访问的稳定性,例如前几天服务器机房搬迁,导致博客不能访问,FeedBurner 就起作用了,还有一种就是一些国外 IP 经常不能访问我的博客,这时 FeedBurner 又起作用了。既不放弃 FeedBurner 这种 Feed 托管服务,又可以使用本地 RSS 地址的订阅,还可以用 FeedBurner 统计所有的订阅量,不妨试试 Feedburner Feed Stats Plugin。 […]

  10. […] Feedburner Feed Statistics Collector 把所有 Feed 的订阅数都转向 Feedburner。 […]

  11. […] Feedburner Feed Statistics Collector ??? Feed ??????? Feedburner? […]

  12. […] Sin embargo Mangas Verdes nos indican como solucionar este inconveninete incluso ya se ha sacado un plugin al respecto. […]

  13. […] Feedburner Feed Statistics Collector ??? Feed ??????? Feedburner? […]

  14. […] Feedburner Feed Statistics Collector ??? Feed ??????? Feedburner? […]

Obviously Powered by WordPress. © 2003-2013

page counter