URL Cleaner

Community variable by mbaersch

What is URL Cleaner?

parses URLs and keeps only whitelisted or removes blacklisted parameters. Returns new full url, path or redacted query string only (optionally transformed to lower case)

URL Cleaner variable is created by mbaersch. 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. fixed case sensitivity for param names
  2. fixed template (picked wrong version - sorry!)
  3. added new option "Redact Path"
  4. enabled use of comma-separated lists of parameter names in a single list item for black- and whitelists
  5. added special matching option for parameter names in redaction feature
  6. UI fix (no functional changes)
  7. added regex and partial match for list items.
  8. added lowercase option.
  9. 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