My sites is being bombarded with new and old URL parameters. At first I tried to add those to the list of excluded URL parameters. With that list now exceeding 200, I wanted to try and use a GA advanced filtern.
However, the only filter I found would exclude ALL parameters:
Create an advanced filter
Filter name: remove all query parameters from URI Filter type: advanced Filter field A: Request URI Filter
Field A pattern: (.)\?(.)
Field B: leave it blank
Output field: Request URI
Output pattern: $A1
Override output: YES Case Sensitive: NO
The only parameters I'd like to not be filteted are query and page.
Does anyone know how to alter the regex accordingly?