Ometria uses the Jinja conditions {% if %} and {% else %} for personalisation fallbacks.
For example, if you use the merge tag {{ profile.name }} and there's no name in Ometria for that profile, you can include a fallback to default to something else.
You can use Jinja fallback conditions in your emails, text messages and push notifications, as well as the subject line builder.
See also: 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 Ometria has the contact’s first name then the first part of the copy is used (everything between {% if [merge tag] %}and {% else %}).
If Ometria doesn't have the contact’s first name then the fallback copy (everything between {% else %} and {% endif %}) will be applied instead.
Comments
0 comments
Article is closed for comments.