1. Home
  2. Newsletter blocks
  3. How to use dynamic content in Newsletter Glue?

How to use dynamic content in Newsletter Glue?

Newsletter glue allows to use dynamic content in newsletter. That means you can show different content for different customers based on customers properties like tags, custom fields. Dynamic content feature comes with NG: Show/hide content block. 

Some of the ESP support only tag, some of them only custom fields and some of them support both of them for dynamic conditions with Newsletter Glue.

ESP NameSupport Custom FieldSupport TagManual Condition
ActiveCampaignYesYesNo
AWeberYesYesNo
BrevoYesNoNo
Campaign MonitorYesNoNo
GetResponseYesYesNo
KlaviyoYesNoYes
MailchimpYesNoNo
MoosendYesNoNo
SendGridYesNoNo

N.B. MailerLite, MailJet, Sendy are not available for dynamic content yet.

Dynamic condition settings

There are two buttons available with dynamic condition block.

1. Add new condition: It will add a new condition for the block. Incomplete conditions will be ignored during newsletter sending.

2. Refresh: This button will fetch latest tags, custom fields from ESP. Newsletter Glue will fetch latest data on each 24 hours automatically but if you create, update or delete any tags, custom fields and changes are not appearing in here, you may click the refresh button.

N.B. Refresh works individually for each individual block. So, if you have multiple Show/hide blocks and you click refresh button one of them, it will fetch latest tags, custom fields from API and show only for the clicked block.

Set condition

After clicking add new condition button, an incomplete condition will be added in the list. First you have to select condition key. It could be custom fieldtagmanual. Custom fields are always display in the list as default. If you want to set condition with tag or manual condition, you may select them from the list.

Caption: Tag, manual option for setting up a condition.

If you choose Set manual condition, you will see another input field where you have to put the key name (case-sensitive).

After choosing condition key, a new field will appear for choosing conditional operator associate with the custom fields/tags. After choosing operator, a new field will appear for value.

Caption: Show the block only if either email not equal to [email protected] OR firstname equal to Jhon.
OperatorValue type
is equal tolist, string, number, boolean, date (YYYY-MM-DD)
is not equal tolist, string, number, boolean, date (YYYY-MM-DD)
is less thannumber, date (YYYY-MM-DD)
is less than or equal tonumber, date (YYYY-MM-DD)
is greater thannumber, date (YYYY-MM-DD)
is greater than or equal tonumber, date (YYYY-MM-DD)
containsstring
not containsstring
is existlist, string, number, boolean, date (YYYY-MM-DD)
does not existlist, string, number, boolean, date (YYYY-MM-DD)
andstring
orstring
Caption: Manual Condition set with single and multiple values

Some exceptional situations for setting conditions.

KeyOperatorValue
custom_fieldexistIt will check either value is set or true.
does not existIt will check either value is unset or false.
andAnother custom field. It will check if both custom fields is set or true.
orAnother custom field. It will check if any one of the custom fields is unset or false.
tagequal toLogical AND relationship between selected tags.
not equal to
existLogical OR relationship between selected tags.
does not exist
manualequal toIf multiple values provide in a proper pattern, Logical AND relationship between the values.
not equal to
existIf multiple values provide in a proper pattern, Logical OR relationship between the values. 
If value is empty, it will check either value is set or true for the selected key.
does not existIf multiple values provide in a proper pattern, Logical OR relationship between the values. 
If value is empty, it will check either value is unset or false for the selected key.

Relationship between conditions

Multiple conditions can be added in a block and you can be define logical relationship (ANDOR) between them. The show/hide block will only display to customers if all the conditions are true. Some ESP like Campaign MonitorMailchimpMoosend and SendGrid do not support OR relationship between conditions.

Updated on April 12, 2024

Was this article helpful?

Get more help
Can't find the answer you're looking for? Get in touch.
Contact support