Hide sensitive data in URL

If one or several URL might contain sensitive data as a URL parameter, you can tell the tag to avoid collecting it.

Block simple URL parameter

  1. Set the parameter you want the tag to ignore

    1. for example, input email if you want to remove an email from this sample URL: https://www.mywebsite.com/[email protected] .

  2. You can add as many parameters as you need

Block a parameter based on a regular expression

  1. Set the required regular expression that the tag needs to evaluate to ignore a URL parameter

    1. for example, to define the URL https://example.com/url-part-to-hide/other-part, enter the following expression (https?://example.com/).*?(/other-part)

As evaluating a regular expression as a performance cost, always prefer a simple URL parameter filter if possible.

Last updated

Was this helpful?