Conditional Content Basics for Emails in Tourism Engine™
This will show how to create content that shows for specific conditions. You can show content based on the data in Tourism Engine™. That includes all the data imported into Tourism Engine™ as well.
Why You’d Use It
Being able to control what content shows based on conditions allows you to understand what engages your audience. Are they more invested in deals or video content? How early in the season and they planning?
How It Works
Tourism Engine™ reads script inside curly brackets: {}. These scripts will control what content shows to whom and where. You can use any variable from the user profile (so first_name, email, statefield, or any other custom field you created). These are case-insensitive. You can use these operators:
- = (which means equal)
- != (which means not equal to)
- > (greater than, think revenue)
- < (less than)
- ~ (contains the string)
- !~ (does not contain the string)
Examples
#1. Show a special offer to in-state People.
{if:statefield=CO}Hello Locals! To show you how much we love you, here’s an offer just for you. Take 15% with this link: 15% Off. {/if}
#2. Display text based on the user’s interests
If you create a custom field with checkboxes to capture a user’s interests, you should then use the operator “~” as a user may have several interests.
{if:interests~skiing}{/if}
#3. Display text according to the list subscription
If you want to display some text according to the list subscription, you can use the tag giving all lists the user is subscribed to. Then search if your list name is inside:
{if:var.{list:names}~your first list name}Message for your first list{/if}
{if:var.{list:names}~your second list name}Message for your second list{/if}