Sending PII data to GA4 will likely get your GA4 account canceled. Don''t get in trouble with GA4, watch this video
Here is the link to complete GA4 course, https://academy.optizent.com/courses/...
Free GA4 resources, https://academy.optizent.com/free-dig...
GA4 Insights in your Inbox, https://academy.optizent.com/f/ga4-in...
Pii data includes information such as e-mail address, name of the person, phone number, et cetera. If you do end up sending PII data to Google Analytics, then your account can likely be removed. However, sometimes that information is required for your website to work. By default, when a user goes to that page, that information will be sent to Google Analytics 4. Make sure to remove any PII information from the URLs before you send the data over to GA4. In this video, I will show you how to do that within GA4 interface. Log in to your GA4 account and go to the Admin panel. In the Admin panel under Properties, click on Data Streams. Click on the Data stream and scroll down and you'll see an option called Redact Data. Click on it and this is where you can specify the data that you want to redact before it's sent to GA4. Redact simply means that the data will be hidden or obscured before it's sent to GA4. Or in simple terms, it'll be removed before the hit is sent to the GA4 server.
00:01:13.270
There are two options in this feature. One is an email feature that allows you to remove the email addresses from all the event data sent to GA4 by simply turning on the toggle button next to the Email option. By default, any new properties will have this option enabled. However, any GA4 properties that were created before this feature was available will have this option disabled. If that's the case with you, then go ahead and simply toggle this on. Any GA4 sees an email address, it'll remove it before the data is sent to GA4. The next option allows you to specify the URL query parameters that you want to remove. For example, if you are sending a name, username, IDs, et cetera, that you want to redact before it's sent to GA4, then you will use this option. Let's see an example of how this works. Go ahead and turn this toggle button on. Now you'll have a text field where you can specify the URL query parameters that you want to remove. To redact the data from multiple query parameters, you will enter them here one by one, separated by a comma. If I want to redact the data for name and phone number fields, then I will type them here: name, phone number.
00:02:38.370
Once you're done adding your query parameters, make sure to hit Enter. The next option allows you to test your data reduction before you hit the Save button on this feature. Click on the next section to expand it. Here is a text box where you can enter a sample URL with all this data to see how the redacted version will look like. I'm going to go ahead and paste a URL that I've already written. In this URL, I have a few query parameters: the name which will be redacted, phone number which will be redacted, and email address that will also be redacted. In addition to the three query parameters that will be redacted, I also have a fourth query parameter that should not be redacted. The order of these query parameters does not make any difference, so keep that in mind. Once you write the URL with all the query parameters, click on Preview Redacted Data. Here you can see that the name is redacted, phone number is redacted, and email is redacted. However, the course query parameter shows up as is. This is how your data will show up in Explore and other reports after you enable this redaction.
00:03:53.500
Another thing to note here is that email address redaction looks for both Ad symbol as well as the URL encoded version of the Ad symbol. Let's say instead of passing the ad symbol, your developers are passing the encoded version of the email address. Here, % 40 is the encoded version of ad symbol. In that scenario, data reduction will still recognize that as an email address and remove the data. Let's click on Preview Redacted Data, and here you can see that data is redacted. One final thing to note is that email redaction relies on the email address showing up in the URL. It does not rely on the name of the query parameter. This query parameter can be called anything. However, if you have togged the option to redact the email address, GA4 will look for the email address so it does not rely on the name of this field. For example, if I call this field, User ID, and click on Preview Redacted Data, that data is still redacted because it doesn't care what you call this query parameter. All it looks for is the presence of an email address, and if it finds it, it removes it.