The last two days I wrote my first Piwik-Plugin: BotTracker
It searches the UserAgent of a visitor for different keywords to check if it’s a SearchBot or something like that.
If the keyword is within the UserAgent, the timestamp is logged and the counter for that Bot is increased.
The visit will not be logged in the visitor-log.
All data is stored in an extra table calles “piwik_bot_db”.
The plugin comes with some pre-configured bots.
I also wrote a (very simple) widget do show the data of this table.
So far, so good. What still is missing is an widget do edit the table (add more bots, (de-)activate bots, change keywords, etc.) and some beta-testers.
What are the next steps? Open a ticket?