Skip to main content

Conversion Uplift

How to Redact Email Addresses and Query Parameters in Google Analytics 4

Today, we’re diving into a nifty GA4 feature that helps you redact sensitive data like email addresses and query parameters. This is useful for both data protection issues and for data quality purposes.

Why Redact Data?

Redacting data is crucial for privacy and GDPR and data privacy compliance reasons. You don’t want to accidentally collect sensitive user information. This can result in your Google Analtyics Property being closed by Google, and it can also cause reputational damage. Redacting query parameters from data in GA4 helps prevent row fragmentation in reports. This is because for page_view events, query parameters will result in identical page_views being separated into different rows due to the value of the query parameter.

If you prefer, you can watch our YouTube video here, or read the blog post below.

Step-by-Step Guide

Head to Admin Area

  1. Go to Admin: Open your GA4 property and head to the Admin area.
  2. Data Streams: Click on ‘Data Streams’ and select your web data stream.

Redact Email Addresses

  1. Redact Data: Scroll down to find the ‘Redact Data’ option.
  2. Enable Radio Button: Simply enable the radio button next to ‘Email Addresses’.

Redact Query Parameters

  1. Check Your Data: Before redacting query parameters, check which ones are actually in your data. We recommend creating a free-form report in GA4.
  2. Add Query Parameters: In the ‘Redact Data’ section, you can add up to 30 query parameters. Separate them with commas.

For example:

  • gtm_debug,
  • fbclid
  1. Save: Don’t forget to hit save!

Verify

After a day or two, revisit your free-form reports to make sure the redacted data is no longer appearing.

Popular Query Parameters to Consider

Check out our list of popular query parameters like gtm_debug and fbclid.

Final Thoughts

That’s it! A simple yet effective way to keep your GA4 data clean and compliant. Check back in a day or two to make sure it’s all working as it should.

You can also check out more of our blogs here.

Neal Cole

Neal Cole

Neal is the founder of Conversion Uplift and the author of the official GA4/GTM audit course for CXL. It's the course much of the industry trains on. He's spent over 20 years in digital analytics, including senior roles in online gaming and financial services, working out where businesses' numbers go wrong and what it costs them. His work now focuses on server-side tracking, GA4 and BigQuery: getting the data right, and being the person who's accountable for it when a decision depends on it.
Neal Cole

Neal Cole

Neal is the founder of Conversion Uplift and the author of the official GA4/GTM audit course for CXL. It's the course much of the industry trains on. He's spent over 20 years in digital analytics, including senior roles in online gaming and financial services, working out where businesses' numbers go wrong and what it costs them. His work now focuses on server-side tracking, GA4 and BigQuery: getting the data right, and being the person who's accountable for it when a decision depends on it.
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Free audit checklist to

Fix GA4 Tracking Like a Professional

Acceptance
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Free audit checklist to

Fix GA4 Tracking Like a Professional

Acceptance