matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.67k stars 2.62k forks source link

option to exclude all query parameters - or to include only required/wanted paramters #2620

Open anonymous-matomo-user opened 13 years ago

anonymous-matomo-user commented 13 years ago

we use piwik in our intranet. we are not interested in the query paramters. so at the moment you only can exclude parameters by setting a list of query parameters in gui -> config -> website.

how about an option to exclude ALL of the parameters. at the moment i have patched core/Action.php in line 190

$parsedUrl['query'] = substr($validQuery,0,-strlen($separator)); $parsedUrl['query'] = ''; // new $url = Piwik_Common::getParseUrlReverse($parsedUrl);

simple way to remove all of the parameters.

make this configurable for all or certain websites.

one more option: maybe have an option to

i am not sure, how save it is to remove all the parameters the way i do it at the moment. for example the SiteSearch plugin needs the query params to track searches. so there might be a conflict.

my problem is, in our intranet we have index.php?search=foobar. so in the aciton page report we have "houndreds" and "thousands" of index.php?search=xxx entries. i want only see index.php, but have the search=xxx in the SiteSearch report.

but this is another subject. at the moment i have disabled the sitesearch plugin as we have this informatio in our search database.

markus

mattab commented 13 years ago

At least we should option to "exclude all parameters" from all websites, or per website.

mattab commented 12 years ago

+1 Vote to add a check "Exclude all URL parameters" below each Excluded URL Parameters Textarea. Setting cached in cache/tracker/.

quba commented 9 years ago

There's a workaround - you can strip all not needed parameters directly in the tracking code - it's similar to forcing lowercase URLs (of course some more logic required). See http://piwik.org/faq/how-to/faq_90/

pafgoncalves commented 7 years ago

This #10846 pull request can help. Allows to use a regular expression for the exclude option. /.*/ will exclude all parameters.