The concept of personalization in your email designs (for example inserting variables, displaying different content to your customers based on the data you have collected on them, etc.) is the topic of a dedicated article. In this article, we will focus on some specific examples linked with Loyalty data. For example, how to display remaining points to your customers in their emails, what points are needed to upgrade to the next status or which rewards are available to them.
Loyalty variables
All fields listed below can be found either in Message Builder> Text content > Splio Variables or in the HTML Editor > Functions > Loyalty variables. We also recommend checking out this article for more details on the topic of variables.
Campaign type |
Variables |
Email personalization example |
Post-purchase |
$loyalty.cardcode$ |
Remember to use your Card Number: $loyalty.cardcode$ at checkout. |
Program anniversary |
$loyalty.subscription_date$ |
A year has gone by! You subscribed to our program on the $Loyalty.subscription_date$, happy anniversary! |
Loyalty newsletter |
$loyalty.program$ |
You are receiving this message as a $loyalty.program$ member. |
Loyalty newsletter |
$loyalty.tier$ |
This offer is only available for $loyalty.tier$ members! Click here to claim your reward. |
Post-purchase |
$loyalty.total_nqpoints$ |
Thank you for your purchase. Your new balance is now $Loyalty.total_nqpoints$ points. |
Loyalty newsletter |
$loyalty.total_qpoints$ |
Thank you for your purchase. Your new balance is now $Loyalty.total_qpoints$ points. |
Loyalty newsletter |
$loyalty.expiring_nqpoints$ |
Your $loyalty.expiring_nqpoints$ points will expire on $loyalty.expiration_date_nqpoints$, don’t waste them and come and check out our latest offers! |
Loyalty newsletter |
$loyalty.expiration_date_nqpoints$ |
Displaying rewards in email designs
If you are granting rewards to your customers as incentives within your Loyalty program, you will want to display those within your email designs. This is possible using what we call “reward loops”.
We also have some ready-to-use blocks & loops, which you may find useful to complete your knowledge of the subject.
The most common use case is the following: you want to display rewards available to your customers that have not been used yet. Note that for this use case, the variable $reward.attribution_extid$ must be inserted as this is the unique ID that your customers will need to be able to use their reward.
Use case |
Syntax needed |
#1. You want to display the list of granted rewards |
{SPLIO FOREACH REWARD AVAILABLE} Congratulations $firstname$, your $reward.name$ is available! The ID is: $reward.attribution_extid$ and will expire on $reward.expiration_date$. {SPLIO ENDFOREACH} |
#2. You want to display several rewards from a rewards filter created beforehand |
{SPLIO FOREACH REWARD IN SEGMENT 123} If you join the program, you will be able to win: $reward.name$, $reward.description$,$reward.picture_path$ {SPLIO ENDFOREACH} |
#3. You want to display specific rewards using their ID |
{SPLIO FOREACH REWARD in "extid 01,extid 02"} If you join the program, you will be able to win: $reward.name$, $reward.description$,$reward.picture_path$ {SPLIO ENDFOREACH} |
Rewards variables (those fields can be included in one of the reward loop shown above)
Campaign |
Variable |
Rendering |
Reward attribution |
$reward.name$ |
Congratulations! Your $reward.name$ is now available to be claimed! |
Reward attribution |
$reward.attribution_extid$ |
Come and claim your reward now using this reference on our website: $reward.attribution_extid$ |
Reward attribution |
$reward.description$ |
These fields can be inserted as part of a reward loop (see further up) |
Reward attribution |
$reward.nqp_value$ |
|
Reward attribution |
$reward.picture_path$ |
|
Expiration reminder |
$reward.earned_date$ |
Your reward was earned on $reward.earned_date$ and will expire on $reward.expiration_date$, time flies, don’t waste it! |
Expiration reminder |
$reward.expiration_date$ |
Your reward will expire on $reward.expiration_date$, don’t waste it! |