For more information on Emarsys Scripting Language filters and tags, see Emarsys Scripting Language.
Inserting Emarsys Scripting Language snippets
- Do not use the old personalization variable
$
and/or%
together with the new variable{{ }}
in ESL expressions because your email might be cancelled. For more information, please contact Emarsys Support. - Placeholders, variables and scripts used in other platforms (for example, SFMC, Shopify, Magento, etc.) will break ESL and your mail will be cancelled. To prevent such issues, you must remove ALL of these instances from your campaigns.
Example of an ESL snippet containing alternative text for the first name:
Hello, {{ contact.1 |default("Stranger") }}!
Similarly to other personalization options, the snippet will be shown within the text.

By using the snippets, you have the option to freely format your content, without breaking the end result in your email.
ESL Validation
When adding an ESL snippet to your content, the ESL script is validated on a campaign level. Unless the script is valid, you cannot save the token. While adding the snippet, the editor automatically checks if your code is valid or not:
