Closed godsyn closed 9 years ago
When you import the log-records, every entry is send by the same UserAgent "Piwik/LogImport". The plugin tries to find a bot by scanning the UserAgent for specific keywords. As you can see, the plugin cannot work when using the log-import, because the real UserAgent is not comming in. I'm sorry, but with the current version of Piwik, the plugin can only be used with the PHP-API during the webpage-hit.
Can you think of an API call other than Tracker.isExcludedVisit that would be further down the chain of execution? The reason I ask is this is doable via custom variables as seen here:
Which API-Call do you think of?
I use "Tracker.isExcludedVisit" because that's the reason I wrote this plugin: to exclude Bots from the visitor-list.
Do you just want to mark the visits with an custom variable? Then they will stay in the list and blurr the results of the "real" visitors.
Understood. As it stands there appears to be no way to use this plugin on large scale sites (using imports / crons). With a custom variable filter I was able to remove the bots from the main stats. I'll live with that. Thank you for your time.
I run the following hourly without issue.
Nothing is ever placed into the piwik_bot_db. The plugin is installed/activated, and all sites have the default list of bots active. BotTracker seems to never process imported data.
I've enabled the logging in ./plugins/BotTracker/BotTracker.php
And this appears in ./tmp/logs/log.txt
Suggestions?