Ometria uses the Jinja conditions {% if %}
and {% else %}
for personalisation fallbacks - i.e. if you use the merge tag {{ profile.name }}
and no profile name is found.
These conditions can be used in your email and SMS content as well as the subject line builder.
Read Jinja's documentation.
To use a fallback, enter:
{% if [merge tag] %}
{{ merge tag }} Enter your copy here {% else %}
Enter your fallback copy here {% endif %}
See also: Merge tags in Ometria
Example:
{% if profile.firstname %}{{ profile.firstname }}
, get 25% off this weekend when you use code HOT25. T&Cs apply. Reply STOP to opt out. {% else %}
Get 25% off this weekend when you use code HOT25. T&Cs apply. Reply STOP to opt out. {% endif %}
In this example, if the contact’s first name is found then the first part of the copy is used (everything between {% if [merge tag] %}
and {% else %}
).
If the contact’s first name isn’t found then the fallback copy (everything between {% else %}
and {% endif %}
) will be applied instead.
Comments
0 comments
Article is closed for comments.