Skip to content
  • There are no suggestions because the search field is empty.

Hashed Emails

Why Use Hashed Emails?

Hashed emails (using SHA-256) are one way representations of email addresses. Instead of sending plain text emails, brands can send hashes, which Duel then compares with hashes we’ve generated from emails already in the dashboard.

If the hashes match, we can confidently associate orders with specific individuals, all without ever needing to transmit or store raw email addresses. This ensures secure attribution while maintaining data privacy and compliance.

Formats Supported

Duel's order attribution endpoints accept either:

  • A plain text email address:
email=customer@example.com
  • A SHA-256 (UTF-8) hashed email:
email=e233d4a29013e9d87150c6237c6777bedf379ebf1acdc5d6126fec7e8bb74fb5

Preparing Emails for Hashing

The system seamlessly identifies SHA-256 hashes with UTF-8 encoding (which consist of 64 hexadecimal characters) without the need for any extra parameters.

Before sending the hashed email, ensure the following steps are completed:

  1. Convert the email address to lowercase.

  2. If the email domain is gmail.com or googlemail.com, remove all dots from the username portion of the email address (i.e. the part before the “@”).

Implementation Tips & Best Practices

For new integrations, we recommend setting up hashed emails from the start to ensure a smooth and future-proof implementation.

For brands that are already live on Duel, transitioning to hashed emails can require some additional steps. If you’re considering this, feel free to reach out to our team for guidance and support.