Welcome email
Use cases:
- A new contact is created on our e-commerce website
- The new contact may be:
- A new newsletter subscriber
- A new e-commerce account
- A new e-commerce account with a purchase
- We are synchronizing the contacts orders and turnover in our custom fields
Because our contacts are synchronized each night, the Welcome email is sent every day to all new contacts that were created the day before.
We created a design that customizes the greeting depending on whether the contact is a prospect or a customer, by verifying if there is a completed order.
<p>
Dear
{SPLIO IF $nb_orders$ > 0 AND $firstname$ != ""}
$firstname$
{SPLIO ELSEIF $nb_orders$ > 0 AND $firstname$ = ""}
customer
{SPLIO ELSE}
subscriber
{SPLIO ENDIF},
</p>
<p>Welcome to Our Brand!</p>
A quick look at the code:
Dear {SPLIO IF $nb_orders$ > 0 AND $firstname$ != ""}$firstname$
Verifies if the contact has made an order AND if the firstname is disclosed. If all conditions are true, we'll display the contact's first name.
{SPLIO ELSEIF $nb_orders$ > 0 AND $firstname$ = ""}customer
Else, if the contact has made an order AND the first name is not disclosed (field is empty), we will display "customer" instead of nothing.
{SPLIO ELSE}subscriber{SPLIO ENDIF}
If the contact does not meet the criteria, we will display "subscriber" instead. End of condition.
Multi-language messages
You can use the conditional blocks to manage multiple languages at once in the same message.
Here is an example of SMS message handling multiple languages:
{SPLIO IF $language$ = "FR"}
Bienvenue chez Splio ! Pour vous connecter sur Splio, visitez www.splio.com!
{SPLIO ELSEIF $language$ = "ES"}
¡Bienvenido/a a Splio! Para conectaros a Splio, visitad www.splio.es!
{SPLIO ELSE}
Welcome to Splio! To login to Splio, visit www.splio.com
{SPLIO ENDIF}
/!\ Beware of the character count. The character counter does take into account the conditional blocks and will return the total number of characters for the whole multilanguage message. /!\
Email subjects
Conditional blocks are allowed in email subjects.
Here is an example of personalized subject:
{SPLIO IF $firstname$ != ""}$firstname$, delectable offer inside!{SPLIO ELSE}Dear subscriber, delectable offer inside!{SPLIO ENDIF}
Email Headers
CB can also be used to personalize email headers based on a value from the database.
_//!\ Domains must be signed and authenticated. Otherwise, the sender email address will fall back on the default settings of the universe. //!_
Default email headers:
Conditional blocks based on a filter
CB can be associated with a specific filter. Specific parts of your message will then be displayed to recipients present in the filter.
You can add conditions with the following syntax to match people belonging to a filter (or not):
{SPLIO IF IN SEGMENT 22}
[You are part of filter ID 22]
{SPLIO ELSEIF IN SEGMENT 26 AND NOT IN SEGMENT 35}
[You are part of filter ID 26 AND NOT part of filter 35]
{SPLIO ELSEIF IN SEGMENT 35 AND $email$ LIKE '%yahoo%'}
[You are part of filter ID 35 AND your email contains yahoo]
{SPLIO ENDIF}
You can find the ID of any Filter in TARGET > Filters.
Note: Conditional blocks on filters work only with filters made on contacts. Sales filters will not work (TARGET > Sales Filters).
Example of a loyalty program:
The following filters are used in this example: * Filter ID 22 = VIP customers * Filter ID 26 = regular customers * Filter ID 16 = prospects
{SPLIO IF IN SEGMENT 22}
[include a special offer for VIP customer]
{SPLIO ELSEIF IN SEGMENT 26}
[include a special offer for regular customer]
{SPLIO ELSEIF IN SEGMENT 16}
[include a special offer for prospects]
{SPLIO ELSE}
[include anything else]
{SPLIO ENDIF}