If you've been assigned a custom user info token by Barilliance, you can use it freely anywhere in the email template. This includes the subject line, main template or advanced widget section.
A custom token may not always have a value. For example a token that holds the visitor's name will be empty if the system was not able to capture the name. You can still use the token in the email but nothing will be printed. It's possible to assign a default value to a token in the case that it is empty. If the token is empty the default value will be printed instead. A default value may look like this:
In the above example if the name token doesn't have a value then the word "customer" will be printed instead.
When sending yourself test emails all tokens will be empty. If you would like to see them displayed you must either use a default value as explained above or (recommended) assign values in the Set custom parameters for test emails section in the rule setup.
Testing With Real Data
If you want to test the tokens with real data you can activate the rule in BCC mode where the email rule is live but the emails are sent to a en email address you specify instead of to your visitors.
Conditional email sections
Sections in the email HTML can be shown or hidden based on the existence of user info tokens. For example a section may be required to be seen only if the user name is collected for the recipient.
The format for conditional sections based on user info tokens is as follows:
[@name] conditional section HTML [/name]
In the case above if the user info token %@name@% is not empty the HTML in the section will be rendered into the email.