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
MAIL
Opt-out from all marketing emails.
DIRECT_MAIL
Opt-out from all direct mail campaigns.
BROWSER_NOTIFICATION
Opt-out from browser notifications.
ONSITE_DISPLAY
Opt-out from all onsite display promotions.
EXIT_INTENT
Opt-out from all exit intent messages.
PUSH_NOTIFICATION
Opt-out from all push notifications across all devices.
SEGMENT_TRANSFER
Opt-out from all segment transfer campaigns, e.g. Facebook Custom Audiences.
SMS
Opt-out from SMS messages.
WEBHOOK
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