Hey, folks. We're running into an
Hey, folks. We're running into an interesting issue: Zaraz's built in tags like Facebook expect to have to hash email addresses. But we only receive some of our events with emails pre-hashed. Is there a way, or could I add a feature request, to allow us to tell the tag that a value is pre-hashed? We get it in and are trying to pass it along pulling an event property, but I believe the hash is being hashed, looking at the code.

4 Replies
Unfortunately no, the way the Facebook MC is implemented, it hashes all data that it gets. So you're probably getting double hashed. If desired, you can run the Facebook Pixel MC as a custom MC and modify it to include a way to check if it is already hashed, but that is somewhat involved and incurs additional usage costs.
GitHub
facebook-pixel/src/track.ts at 7196dc2c16010e25146a3530758a7ee66cc4...
Track user activity using Facebook Pixel. Contribute to managed-components/facebook-pixel development by creating an account on GitHub.
Yeah, and then I have to manage any changes long term. That's a real shame as the cases for gathering email addresses via javascript unhashed only really apply to SPAs -- in any context with postback, caching, etc it's a good practice to return them already hashed. Defense in depth. Now we need to get a security exception or simply use another tool like Google Tag Manager that supports this.
Yeah I agree. And fair point about having to keep it up-to-date.
Unknown User•4mo ago
Message Not Public
Sign In & Join Server To View