matomo-log-analytics icon indicating copy to clipboard operation
matomo-log-analytics copied to clipboard

Not possible to exclude by query parameters?

Open aleksip opened this issue 5 years ago • 2 comments

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.

aleksip avatar Sep 13 '19 09:09 aleksip

Same issue here. Any idea how to fix this? I've tried this --exclude-path=/index.php?eID=tracking* but without success.

fnagel avatar Mar 10 '21 08:03 fnagel

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

alanablett avatar Feb 01 '24 13:02 alanablett