<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://ideas.4brad.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Brad Ideas - Simple script to count how many read your blog - Comments</title>
 <link>http://ideas.4brad.com/simple-script-count-how-many-read-your-blog</link>
 <description>Comments for &quot;Simple script to count how many read your blog&quot;</description>
 <language>en</language>
<item>
 <title>Simple script to count how many read your blog</title>
 <link>http://ideas.4brad.com/simple-script-count-how-many-read-your-blog</link>
 <description>&lt;p&gt;Ok, admit it, who likes blogging in to a vacuum.  You want to know how many people are actually reading your blog.&lt;/p&gt;

&lt;p&gt;I have created a simple Perl script that scans your blog&amp;#8217;s log file and attempts to calculate how many people read the blog and the RSS feeds.&lt;/p&gt;

&lt;p&gt;You can &lt;a href=&quot;http://www.templetons.com/tech/feedreaders.pl&quot;&gt;download the feed reader script&lt;/a&gt;.  I release it under GPL2.&lt;/p&gt;

&lt;p&gt;It&amp;#8217;s a perl script, so you would go to your web server log in the shell, and type &amp;#8220;perl feedreaders.pl logfilename&amp;#8221;
or if you like just &amp;#8220;tail -99999 blogfilename | perl feedreaders.pl -&amp;#8221; because you only need to scan a couple of days worth of logs to get the figures.&lt;/p&gt;

&lt;p&gt;Here are some notes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I take advantage of the fact that most blog aggregators now report how many people they are aggregating for.  There is no standard but I have put in code to match the common patterns.&lt;/li&gt;
&lt;li&gt;I identify common RSS feed URLs, as well as the most common &amp;#8220;main feed&amp;#8221; names.  If you have other feeds that it doesn&amp;#8217;t pick up on, it&amp;#8217;s easy to add them to the list at the start of the program.&lt;/li&gt;
&lt;li&gt;A reader has to fetch the feed or home page multiple times from the same IP to count&lt;/li&gt;
&lt;li&gt;On the other hand, people who change IPs regularly will count multiple times.  People behind caches may count just once all together.&lt;/li&gt;
&lt;li&gt;I try to eliminate fetches from the most common non-RSS-aggregating spiders&lt;/li&gt;
&lt;li&gt;Based on my experiences, Google Reader and Bloglines are the most popular aggregators, then NewsGator.&lt;/li&gt;
&lt;li&gt;At least one aggregator identifies as Mozilla, custom code tags it.&lt;/li&gt;
&lt;li&gt;It also counts people who fetch your non-RSS blog page multiple times as readers.&lt;/li&gt;
&lt;li&gt;Programs that don&amp;#8217;t say they handle multiple users get grouped among the singles.&lt;/li&gt;
&lt;li&gt;Programs with only a few fetches are not counted&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I invite my 1146 main blog readers to give it a whirl.  (The 53 readers of the new &lt;a href=&quot;/battlestar&quot;&gt;Battlestar blog&lt;/a&gt; feed won&amp;#8217;t see this notice, nor the 72 reading the comments.&lt;/p&gt;
</description>
 <comments>http://ideas.4brad.com/simple-script-count-how-many-read-your-blog#comments</comments>
 <category domain="http://ideas.4brad.com/archives/cat_announcements.html">Announcements</category>
 <category domain="http://ideas.4brad.com/taxonomy/term/40">Internet</category>
 <pubDate>Mon, 07 Apr 2008 14:58:41 -0700</pubDate>
 <dc:creator>brad</dc:creator>
 <guid isPermaLink="false">741 at http://ideas.4brad.com</guid>
</item>
</channel>
</rss>
