Open Findus23 opened 5 years ago
+1
@Thomas--F what do you think about that suggestion?
see #66: do you still need this plugin, when Matomo can detect bots itself?
@Thomas--F Matomo is able to detect a bot, but they are ignored by default. Also no information about the bot is tracked anywhere. And as most users won't need that I don't think that will be part of the core. So guess the plugin would still be useful.
One could in theory write a plugin that sets Matomo to not ignore bots and uses the output of device-detector to track the full information about the bot into a custom dimension.
I started here: https://github.com/Findus23/plugin-BotTracking, but gave up before finishing it. If someone wants to do this, feel free to use the code as an inspiration.
Hi, (related to #59) @sgiehl Matomo already maintains a huge list of regexes to detect bots to be automatically excluded from the tracking. https://github.com/matomo-org/device-detector/blob/master/regexes/bots.yml It would be great if this could be merged with
botlist.txt
so that only one list has to be maintained and this plugin is able to detect more bots reliably.I am not sure what is the easiest way to integrate it, but maybe directly calling
$dd->getBot();
or even getting the already calculated result from Matomo seems like the way to go for me.