I'm looking to pass email address as an encrypted value (DES) to avoid PII in email links for compliance with Google remarketing.
I'm able to use the EncryptSymmetric in the email body to create a DES-encrypted value passed in a URL:
<!-- %%[ Var @encData SET @encData=EncryptSymmetric(emailaddr, 'des', @null, '0x7FEBCBCBCB9BCB01', @null, @null, @null, @null) ]%% --> <table id="Table_01" width="640" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#ffffff"> <tbody><tr> <td> <a href="http://www.garnethill.com/womens-fashion/dresses/?ucv=%%=v(@encData)=%%" conversion="true" alias="0">This email link is encrypted</a></td> </tr> </tbody></table>
But this method requires me to hard code
?ucv=%%=v(@encData)=%% to the link.
I've tried passing the same variable
_AdditionalEmailAttribute2 but the resulting link only includes
&ucv= without pulling in the dynamic value. Can the
_AdditionalEmailAttribute2 only look up a standard personalization string or a dynamic value in a data extension (as opposed to the body of the email sent)?
If this was sent using Web-Analytics Connector to use the dynamic variable (
ucv=%%=v(@encData)=%%) would WAC correctly pick up the
@encData from the email body?
Any other methods to accomplish DES encryption for email in a parameter?
AMPScript variables will not get evaluated in the Additional Email Attributes, unfortunately.
Yes, you can include email variables in the WAC.
Decrypting SFMC content outside of the platform is tricky.
Here's one solution using AES: EncryptSimmetric AMPScript AES