Redacting Personally Identifiable Information from URLs for Google Analytics


Hi there,

as we want to pre-fill mailchimp merge tags into an unbounce form ([How-to] Pre-Fill MailChimp Merge Tags Into Unbounce Forms), we’re dealing with the problem of how to avoid PII being sent to our GA.

I found the following article including a code for a custom JavaScript variable:

Did someone face the same issue before and can help with his/her experience? We’re not sure if the code we just found is trustworthy, so it would be great if someone could help.

Thanks in advance!

1 Like