PixelsClearedPixelsCleared

Common Scrubbing Rules

Pre-built rule suggestions for protecting email addresses, phone numbers, IP addresses, and URLs.


PixelsCleared includes default scrubbing that removes most common sensitive fields automatically. For additional control, here are commonly used custom rules you can add through Gateway > Rules.

Email Address Removal

Email addresses are removed by default scrubbing. If you need an explicit rule for a specific email field:

  • Rule Type: Remove
  • Field Name: email
  • Priority: 10

If your events contain email in a nested object:

  • Rule Type: Remove
  • Field Name: user.email
  • Priority: 10

Phone Number Removal

Phone numbers are removed by default scrubbing. Add an explicit rule for named phone fields:

  • Rule Type: Remove
  • Field Name: phone
  • Priority: 10

If your payload uses user_phone or a nested path:

  • Rule Type: Remove
  • Field Name: user.phone
  • Priority: 10

IP Address Hashing

IP addresses are hashed by default. If you want to replace the hash with a static placeholder instead:

  • Rule Type: Replace
  • Field Name: ip_address
  • Mapped Value: REDACTED
  • Priority: 15

To keep the hash behavior but apply it to a custom field name:

  • Rule Type: Hash
  • Field Name: client_ip
  • Priority: 10

URL Sensitive Parameters

URLs are stripped by default scrubbing. If you need to preserve the URL but remove specific query parameters:

  • Rule Type: Remove
  • Field Name: page_url
  • Priority: 10

Or if you want to replace the full URL with just the path:

  • Rule Type: Replace
  • Field Name: context.page.url
  • Mapped Value: /REDACTED
  • Priority: 12

Event Name Remapping

Sensitive event names like medicare_quote_started or insurance_lead leak page content to ad platforms. Use a Rename rule to remap them:

| Original Event Name | Remapped Name |

|---|---|

| medicare_quote_started | lead_start |

| insurance_form_submit | form_submit |

| loan_application_complete | conversion |

| health_plan_view | page_view |

To remap an event name:

  • Rule Type: Replace
  • Field Name: event_name
  • Pattern: medicare_quote_started
  • Mapped Value: lead_start
  • Priority: 20

Applying These Rules

  1. Go to Gateway > Rules.
  2. Click Add Rule for each rule you want to create.
  3. Fill in the type, field name, and mapped value from the examples above.
  4. Set priority so more specific rules override general ones.
  5. Click Save after each rule.

Rules are applied immediately to new events. Existing events in your log are not retroactively changed.


Back to Help Center