SHA256

As phone numbers are a sensitive PII, Criteo accepts hashed phone numbers from partners and encourages it. 

Expected underlying phone numbers format is a trimmed E.164 format including the country code, without the leading "+" sign (so only 15 digits, at most): sha256(internationalPhoneNumber.replaceAll(/[^0-9]/g, "")).

 

Examples:

  • 1 (234) 567-8910 → sha256(12345678910) → 63640264849a87c90356129d99ea165e37aa5fabc1fea46906df1a7ca50db492

  • 81-12-3456-7891 → sha256(811234567891) → d9825fb05347d3c910fc5202c0c20d07a87b791cc643c6f2d70402394a849540

  • 02 1234 5678 → sha256(0212345678) → 826f54894e28f3f1795f3c5e3335cf98709c5d5b38b3f9c6d72467d491f032df

  • +33 1 40 40 22 90 → sha256(33140402290) → fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e988

 

Please use the setSha256HashedPhoneNumber event if you are passing SHA256 hashed phone numbers. Here is an example of the SHA256 hashed phone number sent in the setSha256HashedPhoneNumber event:

{ event: "setSha256HashedPhoneNumber", phone_number: "fda66831d0cb0eb4bffb21bc795308d69921c211c57be0ae15702071e3b9e989" }

 

The setSha256HashedPhoneNumber event should be added to all of the Criteo event tags that are on your website (e.g. Homepage, Product. AddToCart, Basket, Sales/Conversion), so that the phone number is passed whenever your website has it available.

Examples of how this event looks in Criteo's Homepage tag is visible on the left side.

Was this helpful?