BotTracker icon indicating copy to clipboard operation
BotTracker copied to clipboard

Integrate device-detector

Open Findus23 opened this issue 7 years ago • 5 comments

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.

Findus23 avatar Dec 02 '18 09:12 Findus23

+1

hpvd avatar Feb 25 '19 13:02 hpvd

@Thomas--F what do you think about that suggestion?

simonschaufi avatar Jul 15 '20 21:07 simonschaufi

see #66: do you still need this plugin, when Matomo can detect bots itself?

Thomas--F avatar Dec 02 '20 20:12 Thomas--F

@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.

sgiehl avatar Dec 02 '20 20:12 sgiehl

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.

Findus23 avatar Dec 02 '20 20:12 Findus23