Creating Hashed e-mailadres variables for your LinkedIn Conversion API
Open your sGTM container.
Go to Variables.
Create a new user-defined variable.
Select Event Data as the variable type.
For the Key Path, enter ‘user_data.email_address’. Name the variable the same and save it.
Create a new user-defined variable.
Select sha256 Hasher as the variable type.
For ‘value to hash,’ select your user_data.email_address variable.
For ‘Output encoding,’ select ‘hex’.
Give the variable a clear name and save it.
Go to your LinkedIn Conversion API tag and open it.
Expand the ‘User Ids Override’ settings. Add a property.
For ‘Property Name,’ select ‘SHA256_EMAIL,’ and for ‘Property Value,’ select your hashed email address variable.
Save the LinkedIn Conversion API. Now, email addresses will be sent hashed to LinkedIn Ads.
Go to Variables.
Create a new user-defined variable.
Select Event Data as the variable type.
For the Key Path, enter ‘user_data.email_address’. Name the variable the same and save it.
Create a new user-defined variable.
Select sha256 Hasher as the variable type.
For ‘value to hash,’ select your user_data.email_address variable.
For ‘Output encoding,’ select ‘hex’.
Give the variable a clear name and save it.
Go to your LinkedIn Conversion API tag and open it.
Expand the ‘User Ids Override’ settings. Add a property.
For ‘Property Name,’ select ‘SHA256_EMAIL,’ and for ‘Property Value,’ select your hashed email address variable.
Save the LinkedIn Conversion API. Now, email addresses will be sent hashed to LinkedIn Ads.
Updated on: 15/08/2024
Thank you!