The function ecm:base64Encode encodes a string within a link parameter.
Use this function to encode a recognizable string within a personalized link. After encoding, the personalized string (for example, the contact's first or last name) is not readable.
The function ensures that the personalized value is not directly readable, but can be interpreted by the target website.
Example
Without encoding, a personalized HTML link has the following format:
<a href="">Shop'>https://website.com/shop/<%${user['LastName']}%>">Shop Now!</a>
CODE
This link resolves to the following example URL:
www.website.com/shop/Smith
With the base64 encoding function, a personalized HTML link has the following format:
<a href="">Shop'>https://website.com/shop/<%${ecm:base64Encode(user['LastName'])}%>">Shop Now!</a>
CODE
This link resolves to the following example URL:
www.website.com/shop/S2F0aGFyaW5h
Structure
ecm:base64Encode(string)
Parameters
Parameter | Description |
---|
string | Specifies the target string. |