How to Hash Email from dataLayer and Pass to XDM Object in Adobe Data Collection
Hello everyone,
I'm relatively new to Adobe Data Collection and am seeking some guidance on handling data from a `dataLayer`.
Let me apologize in advance if this seems like a basic question.
On our web pages, the developer has implemented a `dataLayer` with the following structure:
dataLayer.push({
event: "pageLoad",
user: {
email: "test1@gmail.com",
authenticatedState: "Authenticated"
}
});
I'm able to capture the raw email address as a Data Element without any issues.
However, I'm struggling with how to process this email into a SHA-256 hashed version and then pass it into my xdm (Experience Data Model) object.
Could anyone provide insights or suggestions on how to achieve this? Basically, I want to pre-hash the email address in Data Collection first before it ingest the full email address into AEP.
Thanks,
Rap