When creating your design using the Message Builder or the visual editor (WYSIWYG), you’ll able to find Splio variables and custom fields within the toolbar.
Typing manually a variable or selecting a custom field will insert the variable directly for you. Use the functions menu.
- Add a text block
- Click on Special links to insert the 3 Splio variables
- Click on Merge tags to select any custom field to be used as variable
- Click on More > Functions to access blocks & loops
The most used Splio variables
SMS sender number
Date (email and SMS)
Dynamic subject (automatic email campaigns only)
Last click category
URL in custom fields for HTML personalization and link tracking
Encrypted email address
SALT for additional security
Having an unsubscription link in emails is mandatory. We also recommend using Splio's unsubscription process, as it is the quickest way for the user to unsubscribe. Having additional steps (such as login in) rather than a one-click unsubscription is also illegal in many countries and will hurt your e-reputation.
Providing a mirror page is an extra service for users who can’t see the email properly in their inbox or can’t load images (poor connection). Statistics on subscribers that clicked on this link can also give you an indication that your HTML is not optimised for email.
The mirror page is generated when the campaign is sent and is customised for each user, to keep personalisation while reading online.
If are using Mobile Wallets, you’ll find a variable which allows users to add the Pass to their mobile. .
It is usually positioned behind an image or a CTA, functioning as direct link to open the Pass. Alternatively, it can be inserted as link to a text, if so: double click on the text > special links > $MobileWalletsUrl$.
These 3 Splio variables above described will automatically be replaced by unique, tracked, links.
Other Splio variables
1. SMS sender number
$num$ variable in an SMS design will now render the numerical short-code of the router.
This is especially useful when using a Sender Name, which hides the phone number on many devices, making the unsubscription impossible for some contacts.
When using a Sender Name, instead of the usual "Reply STOP to unsub" message, you must use
STOP at $num$.
2. Date (email and SMS)
Date variables can be useful for any regular or automatic campaign. Using one of these variables will automatically insert the current day’s date when the campaign is sent.
||2015-10-22||“Field” would be any custom field, or
||2015-11-22||The formula [$format]$field$[modifier$] allows you to create date modifiers within your designs, such as “today + 15 days”, or “this field + 15 days”. Changes apply to emails, mirror pages, tracked links and SMS.|
||20151027||“Format” would be optional, with any combination of “d”, “m”, “y”, and separators “-”, “/”, or nothing.
“Modifier” would be any calculation based on a number of days, weeks, months, or years, for example “+5d”, “+1m”, “-1y”.
||30/09/2015||You can also personalize your date with a specific field. For example, you have a date you want to display in D/M/Y format. Unfortunately, the date included in your file is in YYYY-MM-DD format. You can use this variable,
These variables can be used in emails and SMS designs, mirror pages and tracked links.
3. Dynamic subject (automatic email campaigns only)
When you are sending an email using an external HTML, it is possible to use a variable to fetch the email’s subject. This is particularly useful if the HTML is hosted on your server and the file changes periodically.
To use a dynamic subject, your message must contain a
<title></title> tag in the
<head> of your HTML. Put your email’s subject in the
<title> tag, then, when creating an automatic campaign, instead of inserting a subject, you can type in
4. Last click category
If a link category has been indicated in your links, Splio will store the last link clicked for each recipient. You can use the Last Click Category value in your filters and conditional blocks to send targeted content to your contacts. You can find a detailed article on this topic here.
To do so in conditional blocks, use
5. Sending ID
$envoiid$ can be added in your tracking URLs to return the sending ID of your campaigns. You can then know from which specific message your website visitors came from.
$envoiid$ will return the sending ID that the user received. A Sending ID is a unique code, identifying the message sent in a campaign (Ex: 6PDz8u4uJ). It corresponds to a specific action in a scenario.
If you create a scenario that splits into 2 or more actions, each message will have its own Sending ID. When using
$envoiid$ in an URL, it will return the ID of the message the contact received.
Here are examples of how it can be used in your messages, using Google Analytics:
<a href=”https://www.splio.com/?utm_source=Splio&utm_medium=Email&utm_campaign=CampaignName&utm_messageID=$envoiid$”>My Link</a>
<a href=”https://www.splio.com/?utm_source=Splio&utm_medium=Email&utm_campaign=CampaignName&utm_$envoiid$=parameter">My Link</a>
6. URL in custom fields for HTML personalization and link tracking
In the case where you have URLs stored in your database (in custom fields) and wish to use them for personalisation, you have to mind the behavior of the scripts in charge of generating the final HTML.
Assuming below you have a custom field named
myURL populated with
|Variable||Intermediate rendering||Final rendering|
<a href="$myUrl$"> in your HTML design is first converted into
<a href="https://www.google.com/analytics">, and then replaced with the tracking link.
Specific necessity of encoding : if you need to benefit from encoding by the scripts, you have to prefix the custom field name with
url_ Assuming below you have a custom field named
myField populated with
7. Encrypted email address
There are campaigns and environments where you may need to pass an encrypted email address of your contact in a link (e.g., due to GDPR).
To do so, you need to create a custom field for contacts in your universe. In this example this field name is variable_sha256 (the SHA256 algorithm is a recommended option to encrypt sensitive data under GDPR).
You will have to upload the encrypted email addresses (or similar identifiers) as values to this field.
When the values are imported, they can be used in a link like this:
8. SALT for additional security
SALT is a special value (string) that is added to the encrypted email in order to improve link security. If using salt, the value imported into the variable_sha256 field would incorporate 2 parts: the user.identifier and the SALT, like this:
As you can see, this value can contain characters which are forbidden in URLs. For this reason, we recommend using a slightly different link:
It combines the url_funtion described earlier to make sure that all characters are URL-encoded.
9. Dynamic images
A typical use case of the dynamic images would be if you want to insert them into a product loop (post-purchase confirmation email for example). It is possible to do so and we have outlined below how this can be achived. Dynamic images are an option available within an image block (when using Message Builder) and can be used when inserting product images within loops.
For more details on loops, you can refer to our dedicated article.
You can use whatever syntax and/or characters you wish to use when using this feature except for the ‘?’ which can only be used once in your url and which could result in breaking your link. This option can be useful if you do not have the option to directly insert the images in an HTML block or do not know how to do this.