Opt Out Helper Functions
To give a customer the option to unsubscribe from receiving marketing messages, you can generate a dynamic link using the opt-out helper function.
The syntax of this helper function is:
Please note the usage of triple braces {{{...}}}
for the opt-out helper syntax. This is done to ensure that no variables required by a link tag is accidentally escaped.
CrossEngage offers 3 types of opt-out:
Opt-out from the current channel a message was dispatched through
Opt-out from a particular channel
Opt-out from all channels
The links generated by the opt-out helper will only unsubscribe users from CrossEngage messages. This will not update the opt-out status of a user in a particular integration.
Opt-out from messages sent from the current channel:
To opt-out a user from the current channel a message was dispatched through, use the following syntax within a message template or mapping field value:
Opt-out from messages sent from a specific channel:
To opt out users from channels other than the one the message is dispatched through, use the following syntax within a message template or mapping field value:
Depending on the channel you would like to produce the link for, you may choose one of the following values:
Value | Description |
| Opt-out from all marketing emails. |
| Opt-out from all direct mail campaigns. |
| Opt-out from browser notifications. |
| Opt-out from all onsite display promotions. |
| Opt-out from all exit intent messages. |
| Opt-out from all push notifications across all devices. |
| Opt-out from all segment transfer campaigns, e.g. Facebook Custom Audiences. |
| Opt-out from SMS messages. |
| Opt-out from all webhook campaigns. |
Opt-out from messages sent from all channels:
To opt-out users from all channels, you simply need to replace the Channel
value with ALL
:
Use cases
Generating an opt-out link for an email message
For this example, we will prepare the opt-out link for an email message that will be dispatched as part of a future campaign. In the footer section of the email, we will include the opt out link through a hyperlink tag <a></a>
:
Once the function is evaluated, it displays a link similar to the following example:
Last updated