Readers in User Agent 007 Pepper sometimes shows wrong data

I have the User Agent 007 pepper installed, which works great. The only thing is that occasionally, when I select “Readers”, I get incorrect data. My current data reads like this:

50% Unknown
29% Google Reader
7% Apple-PubSub
7% Moreoverbot
7% Opera

Yesterday when I went to check my Readers stats, it said:

75% Opera
25% Unknown

I’ve noticed this a few times - probably somewhere between 10-20% of the time that I check Readers, I only get 2 or 3 listed, but they have very suspicious percentages like 75/25 or 66/33 which indicate that most of the data is being dropped for some reason.

It seems as though there is a rare, intermittent bug in the way that User Agent 007 collects its Reader data. Has anyone else experienced this?

It seems odd that it’s intermittent - I can’t imagine how my WP plugin would intermittently affect the Mint page. Half the time, the data shows up correctly, so presumably the data in the DB is correct, it’s just an issue with either the query or the rendering code.

As far as I know, none of my WP plugins would get loaded when I’m viewing, so I can’t see how there could be any PHP namespace clashes happening.

I’ll do some more digging, then report back. Inspecting the Mint DB should at least give me an idea of whether or not the problem is with the query/rendering phase.

I’ve just done an SQL dump of the db that contains my mint stats, and the ‘mint_readership’ table only contains the entries that are currently showing up, which are a subset of the real data.

If Mint is reflecting the data that MySQL is showing in a db dump, but that data itself is changing, does this mean that my db is corrupted somehow? Do you have any suggestions on what could be causing it or how to fix it?

Reading through class.php from the Bird Feeder Pepper, on line 207 it looks like when you get a hit, all data from previous days is deleted. Is this the correct behaviour? If it is, that might explain a few things….

If that is indeed how it’s supposed to work, is there any specific reason why the Readers tab on User Agents doesn’t work like all the other tabs? In other words, why doesn’t it have “Show All | Past Hour | 2h | 4h | …. etc.” tabs at the top?

Yes, this is the correct behavior. Subscriber counts are not aggregate. The people who are subscribed to your blog today may not be in a month. Similarly, if they were subscribed at one point but haven’t checked your feed today they aren’t subscribers today.