Thomas--F / BotTracker

BotTracker-Plugin for Piwik
GNU General Public License v3.0
32 stars 14 forks source link

Integrate device-detector #60

Open Findus23 opened 5 years ago

Findus23 commented 5 years ago

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.

hpvd commented 5 years ago

+1

simonschaufi commented 4 years ago

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

Thomas--F commented 3 years ago

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

sgiehl commented 3 years ago

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

Findus23 commented 3 years ago

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.