ecm:base64Encode
- 1 Minute to read
- Print
- DarkLight
ecm:base64Encode
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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>
This link resolves to the following example URL:
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>
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. |
Was this article helpful?