How to: Redact Emails from Google Analytics using Google Tag Manager

We always have to be careful with the data we send Google Analytics (and other destinations). Here, we’ll look to see if we’re sending any email to Google Analytics (we are) and then go ahead and redact the emails using Google Tag Manager before the hit is sent to Google Analytics.

Best practices to avoid sending Personally Identifiable Information (PII):