The number of unique URLs on our site exceeds the limit in our Google Analytics. We tried to exclude URL Query Parameters in the View Settings but it doesn't work, GA continue to record all of them as unique URLs.

How do we limit the number of URLs in Google Analytics by removing the query string from all URLs?


2 Answers 2


Only ? indicates a query parameter; adding f to the exclusion list would remove ?f=... parts of a URL but won't affect /f/....

You should be able to do this with a filter, though. Add a new filter of type Custom > Search and Replace, using the field Request URI and the search string /f/.*.

Filters are destructive, meaning they permanently alter your data with no way to recover the original information. Therefore a recommendation: Apply the filter to a testing view first, and before saving, verify the filter to make sure it is not causing side effects. Add it to your primary view only after it's well-tested. (And of course it is always best to have a view that has no filters on it at all, and no query parameter removal.)

Screenshot of filter setup


Instead of writing fbclid, msclkid, page_id, preview_id, cm you write fbclid,msclkid,p=,page_id,preview_id,cm. Remove the spaces, it might help.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.