Issue on excluded parameters from URL


I’ve configured my website to exclude some query parameters from the url.
Some parameters are excluded but it seems that the first parameter in the URL is not.
parameter excluded: “aggregation”
URL logged after having exclude the parameter:

I can’t reproduce the issue with a classic static html page (without the angular # of the URL) it may be an issue with it ? How can I get pass through it ? (I can’t remove it)


The URL doesn’t contain any URL/GET parameters. Everything after the # is part of the hash and doesn’t belong to the URL (even if your single page application router might act like it is one).

new URLSearchParams("")
// returns URLSearchParams { }

So you might either want to rewrite the URL with something like
_paq.push(['setCustomUrl', theURLforMatomo]); to remove the part from the URL you don’t want to see or change your URL scheme to use “proper” URLs using the history API.


Thank you for your answer!
But if everything after the # is just part of the hash, why some parameters are correctly excluded?
For example if I ignore 2 parameters, the first one in the url does not get excluded but the second one is.

Anyway I’ll tell my end-user to rewrite the url then I think.

Thank you

i don’t understood why with my exclusion list : x,y,z. i just had a partial exclusion…

ihave the same issue, when i have , that delete y & z but not x :

How to configure matomo to exclude the complete exclusion list of my customs parameters ?

Thank you,