Daniel-KM / Omeka-plugin-Stats

Plugin for Omeka that counts views of pages in order to know the least popular record and the most viewed pages. It provides useful infos on visitors too (language, referrer...). So this is an analytics tool like Piwik, Google Analytics and other hundreds of such web loggers, but integrated and adapted.
10 stars 2 forks source link

Excluding bots prevents hits to be recorded #7

Open mjlassila opened 5 years ago

mjlassila commented 5 years ago

I wonder, why hits are being logged only if traffic is from the bot and bot filter is not on ( eg. https://github.com/Daniel-KM/Omeka-plugin-Stats/blob/037fb4fa3d0c1a601595d9a2e96301daaa728f44/StatsPlugin.php#L788) Should it be actually reverse? I got a report from my client that that page-level traffic is not recorded at all when the bot filter is on. When the bot filtering is switched off, hits are recorded as supposed.

Daniel-KM commented 5 years ago

In fact, it's a complex question. 95% of hits or more are robots, so it's useful to skip them. But there may be a bug. It's something to check.

Daniel-KM commented 5 years ago

Yes, the code is probably buggy on this point.