Hello wonderful MC developers,
Two questions:
- If I'm not passing an email address via the url, do I still need to hash it?
When I don't md5 the email address in theme.liquid, Marketing Cloud is able to track the sessions fine:
<script>
_etmc.push(["setOrgId", ""]);
_etmc.push(["setUserInfo", {"email": "{{ customer.email }}"}]);
_etmc.push(["trackPageView"]);
</script>
But when I do hash it, MC is no longer able to track the sessions, presumably because it can't magically unhash the email:
<script>
_etmc.push(["setOrgId", ""]);
_etmc.push(["setUserInfo", {"email": "{{ customer.email | md5 }}"}]);
_etmc.push(["trackPageView"]);
</script>
So if the email address of a logged in account is passed to MC in the source code, instead of the url, does it still need to be hashed to protect their PII?
- If I do still need to protect their PII, but still want to use email address (instead of a unique customerID etc.), how do I output the md5 email in a way that Marketing Cloud can understand it?
Thanks in advance for you answers - it's greatly appreciated! -Ed