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

Add bot inclusion? #48

Open
Seb35 opened this issue Mar 22, 2024 · 2 comments
Open

Add bot inclusion? #48

Seb35 opened this issue Mar 22, 2024 · 2 comments

Comments

@Seb35
Copy link
Collaborator

Seb35 commented Mar 22, 2024

By default Matomo does not track the bots (in the general sense on the Web: automatic agents doing some task, like crawling), but it is possible to add this tracking.

Is it something useful to add it in this extension? I mean a parameter $wgMatomoTrackWebBots, which will be false by default and could be set to true.


It is already possible to add $wgMatomoCustomJS = "_paq.push(['appendToTrackingUrl', 'bots=1']);"; but it is not possible to add &bots=1 in the image tracker, so the parameter $wgMatomoTrackWebBots would set both JS and non-JS parts.

Another more general way to solve this issue would be to add a free parameter $wgMatomoCustomImageParameters which could contain "&bots=1".

@Seb35
Copy link
Collaborator Author

Seb35 commented Mar 22, 2024

As a side note, MediaWiki bots (=users in the user group 'bot') are managed by the parameter $wgMatomoIgnoreBots (true by default). This task is about other bots.

@samwilson
Copy link
Contributor

Would this give useful aggregated information about misbehaving bots, e.g. their IP addresses for blocking purposes? I think that's the main use I'd have for it.

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

2 participants