Our hashed emails barely match anything on Meta. What's the right way to hash PII?
We SHA-256 emails and phone numbers before sending purchase events, but match rates are terrible. Wondering if we're doing something obviously wrong.
Answer from the Linkrunner team
Normalisation is the usual culprit. A hash changes completely with any change in input, so ' John@Example.com' and 'john@example.com' never match. Before hashing, trim spaces and lowercase emails, and for phone numbers remove spaces, dashes and brackets and use the full international format with country code. Then hash with SHA-256 as lowercase hex, which is what Meta's Conversions API and Google's enhanced conversions expect. Check that every system in the pipeline uses the same rules, since one lowercasing and another not is enough to break matching. Also, hashed PII isn't anonymous: it's pseudonymised personal data, so consent and deletion duties still apply. In the Linkrunner SDK, hashing is opt-in with enablePIIHashing(true), which hashes name, email and phone with SHA-256 on the device. Where hashing fits after ATT: https://linkrunner.io/blog/privacy-preserving-attribution-after-att
More on this: linkrunner.io/glossary/what-is-pii-hashing