Query Parameter Stripping Utility

Community variable by CardinalPath

What is Query Parameter Stripping Utility?

This will remove unwanted query parameters( page UR, Referrer, etc.) to reduce cardinality.

Query Parameter Stripping Utility variable is created by CardinalPath. Once you set up server side tagging with MetricsGate, you can use this variable with Google Tag Manager to enhance your data analytics.

This variable template is part of an open-source community, with its source code accessible on Github, and its documentation can also be found online.

You can check its version history below:

  1. 3 | validate input URL, preserve marketing parameters is now optional
  2. 2.0 | allowed setting so certain parameters cannot be forced to lower case, removed duplicate parameters.
  3. 1.3 | added default allowed query params as per https://github.com/CardinalPath/gtm-template-ga-queryparam-stripper/issues/1
  4. 1.2 | bugfix on excludes when field is empty
  5. 1.1 | code changes to reference parseUrl api
  6. 1 | initial release

More tags and variables supported

Tags

Variables

Join early adopters globally and leverage server-side tagging, GA4 custom events, and cookieless tracking to gain deeper insights and enhanced analytics data about your visitors!

Get Started now