Plain text
Please use the setEmail event if you are passing plain text emails.
In the event that a plain email address is sent, Criteo will then encrypt the user's email address automatically before it is saved in our database. Here is an example of the plain-text email sent in the setEmail event:
{ event: "setEmail", email: "user@example.com" },
In the event that you are unable to pass either an unhashed or hashed email address, please simply pass us an empty string:
{ event: "setEmail", email: "" },
The setEmail 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 email is passed whenever your website has it available.
Shown here is an example of how this event looks using SHA256 hash in Criteo's Homepage tag.
<!-- Criteo Homepage Tag -->
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
window.criteo_q.push(
{ event: "setAccount", account: YOUR_PARTNER_ID},
{ event: "setEmail", email: "##Email Address##"},
{ event: "setSiteType", type: deviceType},
{ event: "setCustomerId", id: "##Customer Id##" },
{ event: "setRetailerVisitorId", id: "##Visitor Id##"},
{ event: "setZipcode", zipcode: "##Zip Code##" },
{ event: "viewHome" }
);
</script>
<!-- END Criteo Homepage Tag -->