We always advise our customers no to send Personal Identifiable Information through our frontend pixel. This also applies for the email field.
In this article we tell you the best practice how to send the visitors email and how our email hashing mechanism works.
Below you see a small activity diagram how this internally works.
For the sake of this example, user@domain.com's hash is hash256-abc
- First you send a Purchase event through the frontend with an orderid (1234) and a hashed email (hash256-abc)
- Our system will tries to find a customer based on the given hash
- No customer found, so a new customer with ID 100012018
- After that you send a API backend call with the same orderid and other necessary fields, but this time you provide the real email
- Our system will convert the real email to the hash hash256-abc and tries to find a customer
- If a customer is found with the same hash, his/her profile is enriched with additional data, which is email in this example (preferred scenario)
- If no customer found with the same hash, a new customer is created
Best practice is to always send an API backend call with the same Purchase data and the non-hashed email address.
This way we can match the profiles and make it more complete.