- 1 Minute to read
Tealium Implementation
- 1 Minute to read
Abstract
Describes how to perform hashing and pass the email to DSP via Dot using Tealium iQ.
Steps
If you’re using Tealium, follow these steps to perform the hashing and pass the email to DSP via Dot.
Important
Before you begin, ensure that you’re using the latest Yahoo Dot template in Tealium. Refer to Yahoo Dot template for Tealium for details.
Add a Data Layer Variable (also known as a UDO variable) and set the Source to:
customer_email_hashed
.Add a JavaScript Code extension and paste in the following 3 lines of JavaScript code:
if (b.customer_email && !b.customer_email_hashed) { b.customer_email_hashed = b["customer_email"].toLowerCase().trim(); }
Note
If you use a different Data Layer Variable for
customer email
addresses thancustomer email
, change customer_email in the code above to match your Data Layer Variable name. Leavecustomer_email_hashed
as is.Set the title of this JavaScript Code extension to
Customer Email Lowercase and Trim Whitespace
.Add the Crypto extension, making sure it appears below
Customer Email Lowercase and Trim Whitespace
in your list of extensions.Set
Hash Method
to: sha256.Click Add Variable and select the
customer_email_hashed
Data Layer Variable you created in Step 1.Click the Approve for publish button in the
Customer Email Lowercase and Trim Whitespace
JavaScript code extension.Save and publish to Dev or QA for testing and validation.