Document Purpose
Implementation guide for the dev team to set up cookies for Personally Identifiable Information (PII) such as
email, phone number, first name, and last name. The information will be encoded using SHA256 format.
Step 1: Collect PII
Whenever users add the phone_number, email, first_name and last_name details during checkout journey,
collect and store it in a variable.
In the Example ‘+971 567891234’, you need to remove the ‘+’ sign and store the remaining phone number.
Value to be stored: 971567891234
Whenever users add the Email details during user journey, collect email address, and store it in a variable.
Normalize email addresses by trimming leading and trailing whitespace and converting all characters to
lowercase before hashing.
Whenever users add the First name and last name details during user journey, collect both the data and store
it in separate variable..
Step 2: Hashed Data
Once the First Party Data is collected, it needs to be hashed using the SHA256 encryption method.
For guidance on hashing information using SHA256 encryption encoding in JavaScript, please refer to the
reference link provided below.
SHA256 encryption
The table below illustrates examples of hashed and unhashed values for different parameters: