Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate device-detector #60

Open
Findus23 opened this issue Dec 2, 2018 · 5 comments
Open

Integrate device-detector #60

Findus23 opened this issue Dec 2, 2018 · 5 comments

Comments

@Findus23
Copy link
Contributor

Findus23 commented Dec 2, 2018

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
Copy link

hpvd commented Feb 25, 2019

+1

@simonschaufi
Copy link

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

@Thomas--F
Copy link
Owner

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

@sgiehl
Copy link
Contributor

sgiehl commented Dec 2, 2020

@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
Copy link
Contributor Author

Findus23 commented Dec 2, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants