Can A Youtuber See When A Message Is Redacted

Updated: January 23rd, 2024

Data redaction in Google Analytics 4 can safeguard against the collection of personally identifiable information (PII) that may unexpectedly find its way into your data.

For example, the URL of your form’s “Thank you” page might contain the visitor’s email address. This automatically will be tracked by Google Analytics (or any other analytics/marketing tools you use). So, you’re basically leaking user’s private information to other vendors. Luckily, this can be mitigated.

If you want to learn more about how to use the data redaction feature, its limitations, and other solutions to remove sensitive information from your data, keep reading!

Table of Contents

Here’s what you will learn in this article

  • Why is it important to redact sensitive data?
  • What data can be redacted?
  • How does data redaction work?
  • How to redact data
    • How to redact email data
    • How to redact URL query parameters
      • What are query parameters?
      • How to determine which query parameters are being collected
      • How to set which query parameters to redact
      • Testing query parameter redaction
  • Limitation to data redaction
  • What is the best solution?
  • Final Words

Video Tutorial

If you prefer video content, then check out the Analytics Mania Youtube channel for a video on Data Redaction in GA4.

Why is it important to redact sensitive data?

First, you are leaking personal information (even if it’s accidental). That’s not cool both from the ethical and legal perspective.

If that is not enough of an incentive for you, then keep in mind that sending personal info to GA4 (even accidentally) goes against the terms and services of Google Analytics. You can find more information under Section 7: Privacy of the Google Analytics Terms of Use. What does that mean? Technically, Google has the right to shut down your property due to this.

What data can be redacted?

Google Analytics 4 can redact sensitive information that may appear in the data in two ways: (1) Email and (2) URL query parameters. Currently, this feature is only available in web data streams.

Tham Khảo Thêm:  Myungsoo Before Plastic Surgery

Using common text patterns for email addresses, any data fitting the pattern will be redacted from your data before it even reaches Google Analytics 4.

Google Analytics 4 allows up to 30 user-defined query parameters to be selected for data redaction. This will only work with some parameters, including page_location, page_referrer, page_path, link_url, video_url and form_destination.

How does data redaction work?

Before getting into the step-by-step instructions, it is important to note that data will not be redacted retroactively. This means that the data redaction will only occur after it’s been implemented.

Data redaction works client-side, so when the Google Analytics 4 tracking code is activated, the query parameters are removed within the browser, and the data never reaches the Google servers.

Follow along below to learn how to implement the data redaction feature!

How to redact data

To choose the information you want to redact from your data, click “Data streams” in the Admin section.

Data Redaction in Google Analytics 4

Then, click on the web data stream.

Data Redaction in Google Analytics 4

Lastly, scroll down and select the “Redact data” element.

Data Redaction in Google Analytics 4

How to redact email data

On any Google Analytics 4 properties created before October 2023, you will need to manually enable email data redaction. For properties built after, this will automatically be enabled.

Email redaction is enabled if there is a blue checkmark next to the Email feature. If it is not, then click on the slider element to enable it.

Now, GA4 will identify email addresses in all event parameters using common text patterns and redact the information.

One thing to note is that there is the chance that data may be falsely identified as an email because it follows the typical patterns of an email address. For example, any text containing “@domain.com” will be removed from the data, whether or not is an email address.

How to redact URL query parameters

The data redaction feature also allows the selection of up to 30 user-defined query parameters to be redacted from your data.

What are query parameters?

Query parameters are extra information that may be added to page URLs that start after a “?” and are separated by “&”s. They may unexpectedly collect information, such as email, firstname or lastname.

Tham Khảo Thêm:  Carey Mulligan on How ‘Maestro’ Isn’t a Biopic and Bradley Cooper’s Request They Bare Their Souls to Each Other

Data Redaction in Google Analytics 4

How to determine which query parameters are being collected

If you’re not sure what query parameters you may be collecting in your data, you can create an Explore report to investigate your data.

Learn more about explorations in Google Analytics 4 here.

Under Explore, create a new Exploration.

Data Redaction in Google Analytics 4

Add “Page path + query string” as a dimension and “Event count” or “Active users” as a metric in the report.

Data Redaction in Google Analytics 4

To make the data easier to look at, add a filter to only have “Page path + query string” contains “?” so that you only see page URLs that contain query parameters and click “Apply”.

Data Redaction in Google Analytics 4

Drag the dimension into the Rows and the metric into the Values.

Data Redaction in Google Analytics 4

As you can see in the screenshot above, firstname and lastname query parameters are being collected in the data, so we must ensure that this data is redacted, and email is already redacted.

You can repeat this process with the other parameters that data redaction can be applied to (page_referrer, link_url, video_url, and form_destination).

How to set which query parameters to redact

Once you have determined which query parameters you want to exclude, return to the “Redact data” section as shown above.

Here, you can type the query parameters you would like to have redacted from the select group of parameters mentioned above, and then click “Enter” on your keyboard.

Data Redaction in Google Analytics 4

Once you have entered all the query parameters, click “Save”.

Testing query parameter redaction

There is a feature at the bottom of the page that allows you to test what happens when you select certain query parameters to be redacted. This is a good tool to use to ensure that your data will appear how you intended it to.

Enter a page URL containing the query parameters you want to exclude, and you can see how the data will appear after it has been redacted.

Data Redaction in Google Analytics 4

Since data redaction will only apply to data after it has been implemented, you will have to wait up to 24 hours to start to see the redacted data appear. Once this time has passed, you can go to the report that you created above to check that the data is being redacted as expected.

Now, you have successfully implemented data redaction in Google Analytics 4 for both emails and URL query parameters!

Tham Khảo Thêm:  ‘Lost on Planet Earth’ to Focus on Those Left Behind by Sci-Fi Utopias

Limitation to data redaction

While the data redaction tool in Google Analytics 4 is a great way to safeguard against sensitive information making its way into your data, there are some limitations to consider.

First, the parameter that you are redacted is not entirely removed from the page path, so this results in messier data than if the query parameters were just removed from the page path.

If you want to learn more about how you can exclude URL query parameters in Google Analytics 4 using GTM, read the article here. In this case, the data redaction is a good second layer of protection.

Second, if you are sending data using the measurement protocol (sending data directly from your server to Google Analytics 4) or using the data import feature, then data redaction will not work since there is no opportunity for the data to be modified before it’s sent to GA4.

What is the best solution?

So, what is the best way to ensure that sensitive information doesn’t make it into data in Google Analytics 4? Block it from the source!

The best solution is not to include sensitive information in the URL to begin with. You can work with your developers to ensure that sensitive information doesn’t make its way into the URL by blocking it from the source.

This data redaction feature only works for GA4, not any other tracking applications you may be using, so you must ensure that this information is not making its way into another tool too.

Date redaction in Google Analytics 4: Final Words

While the data redaction feature is something that you should consider enabling to ensure that sensitive information is not entering your data, there are other actions that you can take to protect your users further and improve your reporting. Data redaction should be treated as a second layer of protection.

Ultimately, it would be best if you tried to ensure that your website does not allow sensitive data to enter into the page URL. However, if this is not possible, then you can at least exclude URL query parameters from appearing in reports.

Hopefully, this tutorial has been helpful in guiding you to a solution for safeguarding against any sensitive information entering your data!

Related Posts

Heidi Yeh Before Plastic Surgery

Có thể bạn quan tâm Berlin Hot List: Films With Margot Robbie, Cillian Murphy, Dave Bautista, Tilda Swinton Hit the Market [100% Worked] How to Screen Mirroring…

Tori Spelling Before And After Plastic Surgery

Có thể bạn quan tâm Mariah Carey’s ‘Magical Christmas Special’ Tops Apple TV+ Charts in 100 Countries Burton B Buffaloe Niki Minaj Before Plastic Surgery Cast of…

Sylvester Stallone Before Plastic Surgery

Có thể bạn quan tâm A Little Barbie Could Take Nikki Haley All the Way to the White House (Guest Column) Andrew Carriker Brother Usher to Host 2021…

Abdominal Plastic Surgery Before And After

Có thể bạn quan tâm Naomie Harris, Pierce Brosnan, Tom Burke Board Steven Soderbergh Spy Thriller ‘Black Bag’ (Exclusive) Tracy McGrath, Veteran Physical Production Executive, Dies at…

‘Schitt’s Creek,’ ‘Wynonna Earp’ Favorites to Star in Syfy Series

Có thể bạn quan tâm ‘Jurassic World: Dominion’ Trailer Features Jeff Goldblum, Laura Dern and Sam Neill Returning to Save the Day Plastic Surgery Before And After…

Jessica Before After Plastic Surgery

Có thể bạn quan tâm Phoenix Plastic Surgery Before After ‘Pose’ Star Michaela Jae Rodriguez to Be Honored at GLAAD Media Awards Critic’s Picks: The 5 Best…