Set up your account in a few simple steps.Read the guide
First things first: In order to make good use of the dynamic content feature, you’ll need to be comfortable with HTML, working in ‘source code’ mode in the HTML editor, and writing a little code along the way.
All Dynamic Content is inserted into emails by adding code in [square brackets] . Your dynamic content can be formatted with HTML, but all of the instructions for Dynamic Content must be contained within square brackets like these in order to work properly: [ ] This quick sample will give you an idea:
<p>This is going to stay here just like it’s written. <b> [Dynamic Content Goes Here] </b> <br/> This is going to stay here just like it’s written, too.
A basic dynamic content expression is generally set up as follows:
[IF variable operator constant] <HTML code to display result> [ELSEIF variable operator constant] <HTML code to display alternative result> [ELSE] <HTML code to display when no result matches> [ENDIF]
This quick documentation will outline the rules for variables, operators, constants, and expressions, which will help you get started writing your own.
Dynamic content supports a number of different data types, meaning that there are a few ways in which you can create expressions for variables that decide which content gets displayed.
Supported data types are:
Hours must be written in 24-hour clock (so 18:30 instead of 6:30 PM)
Variables are the criteria that you’re basing your content on. This can include list fields like firstname, lastname, or any other data field your subscribers have submitted content to. It can also include campaign activity, allowing you to send specific content to just those who clicked on a link or opened a previous email campaign.
List fields can be used as criteria. The value of these fields generally changes with every list subscriber. The variables are enclosed by the apostrophe character ( ` )
List fields can be any of the integer, string or date/time data types.
We can also refer to action a subscriber has taken for a previous email campaign including opening the message, or clicking on any links in the email itself. To refer to a specific campaign, you’ll need to find the mailing ID and refer to it using MAILING(id), where id is a reference to the campaign number. To refer to a specific link, you’ll need to find the link ID and refer to it using LINK(id), where id is a reference to the link number.
Example: MAILING(43243) LINK(3245364)
An email campaign has two different statuses: CLICKED and OPENED A link can be: CLICKED
The following operators are supported: For list fields that are text strings
=- Equal to
! =- Not equal to
<- Less than
< =- Less than or equal to
>- Greater than
> =- Greater than or equal to
Contants must be enclosed in double quotes ‘ “ ‘ if they are of text strings, datetime or integer data types.
Dynamic content supports boolean expressions (TRUE / FALSE). Expressions can be created by combining a variable, an operator and a constant.
`email` LIKE “%hotmail%”
(their email address contains the text “hotmail”)
`id` > “1000”
(list ID is greater than 1000)
MAILING(34342) IS OPENED
(subscriber opened campaign #34342)
The variable and the constant must be the same data type.
Expression can be combined together to become a larger and more complex expressions by using parentheses.
(`email` LIKE “%hotmail%”) AND (MAILING(34342) IS OPENED)
(their email address contains the text “hotmail” AND they opened campaign #34342)
A control structure gives the starting statement for the expression, and can be nested for more complex expressions.
[IF expression] HTML code to display
Displays HTML code if expression is TRUE
[ELSEIF expression] HTML code to display
[IF] statement. Displays HTML code indicated if the previous
[IF] expression is FALSE but the expression from
[ELSEIF] is TRUE. There can be multiple
[ELSE] HTML code to display
Displays HTML code if the expressions from previous
[ELSEIF] (if any) are FALSE.
The following functions are supported: MOD
This is a Modulo operation. Returns the remainder of N divided by M.
[IF MOD(`id`,10) = 5] <p>You are a winner!</p> [ELSE] <p>Sorry! Try again!</p> [ENDIF]