51黑料不打烊

[Also applies to v8]{class="badge positive" title="Also applies to Campaign v8"}

Conditional content conditional-content

By configuring conditional content fields, you can create dynamic personalization based on the recipient鈥檚 profile for example. Text blocks and/or images are replaced when a particular condition is satisfied.

Discover this feature in video

Use conditions in an email using-conditions-in-an-email

In the example below, you will learn how to create a message, dynamically personalized on the recipient鈥檚 gender and interests.

  • Display showing 鈥淢r.鈥 or 鈥淢s.鈥 according to the value of the Gender field (M or F) in the data source,

  • Personalized assembly of a newsletter or promotional offers according to the interests indicated or detected:

    • Interest 1 鈥 > Block 1
    • Interest 2 鈥 > Block 2
    • Interest 3 鈥 > Block 3
    • Interest 4 鈥 > Block 4

To create conditional content according to the value of a field, apply the following steps:

  1. Click the personalization icon and select Conditional content > If.

    The personalization elements are inserted in the message body. You must now configure them.

  2. Next, fill in the parameters of the if expression.

    To do this:

    • Select the first element of the expression, <field>, (by default, this element is highlighted during insertion of the if expression) and click the personalization icon to replace it with the test field.

    • Replace <value> with the value of the field for which the condition will be satisfied. This value must be in quotation marks.

    • Specify the content to be inserted when the condition is satisfied. This could consist of text, an image, a form, a hypertext link, etc.

  3. Click the Preview tab to view the content of the message according to the delivery recipient:

    • Selecting a recipient for which the condition is true:

    • Selecting a recipient for which the condition is not true:

You can add other cases and define different content according to the values of one or more fields. To do this, use Conditional content > Else and Conditional content > Else if. These expressions are configured in the same way as the if expression.