matomo-log-analytics
matomo-log-analytics copied to clipboard
Not possible to exclude by query parameters?
The --exclude-path
option does not seem to work with query parameters. An option to exclude by query parameters would be very useful. For example, Drupal sites are regularly scanned with requests for /?q=node/add
and /?q=user
.
Same issue here. Any idea how to fix this? I've tried this --exclude-path=/index.php?eID=tracking*
but without success.
I'm not sure if this is still an issue for either of you but I thought I would leave a brief note for others
It looks like the --exclude-path
option, as you have rightly stated, does not take into account query parameters.
In my case I wanted to ignore a url like this /?foo=bar
In order to do so I actually had to configure my Matomo server according to this https://matomo.org/faq/how-to/how-do-i-exclude-specific-tracking-requests-in-matomo editing the file config/config.ini.php
[Tracker]
exclude_requests = "url=@foo%3Dbar"
Hope that helps