Q - How can I count the unique subscribers to my website's RSS feed?
A - Use use PHP to find out via accesslog ...
Create block with the following code in it:
<?php
$rssreaders = db_fetch_array(db_query("SELECT COUNT(DISTINCT(hostname)) AS hostname FROM {accesslog} WHERE path LIKE '%/feed' OR path LIKE 'rss.xml'"));
?>
<p>Currently we have <b><?php print $rssreaders['hostname']; ?></b> RSS subscribers now.</p>Then place on a relevant page and restrict the view to webmaster/admin role
[l:http://www.polzer-sw.com/how-count-your-drupal-website-rss-subscribers further reading/credit]


Add new comment