In the table below, please find the event callbacks that Sourcepoint supports for web implementations:
The availability of an event callback is dependent on the type of implementation being performed.
|Event fires when a message is about to display. Will fire for privacy managers since they can also be used as first-layer messages
|Event fires when a call-to-action button in a message has been clicked. The callback receives two integers. The first is the
choice_id and it represents the id value of the choice selected. The second is the
choice_type_id which is the ID of the type of choice clicked. Click here for a list of choice type IDs.
|Event fires when a button in a privacy manager has been clicked. The possible values for the string returned to the function are SAVE_AND_EXIT or CANCEL.
|Event fires when there is an error in the message delivery process. A brief description of the error is returned.
|Event fires when consentUUID or eu-consent value is ready.
|Event fires when a user clicks the dismiss button of the privacy manager.
|Event fires when a message is displayed to the user and sends data about the message and campaign to the callback.
Choice type ID descriptions
In the table below, please find descriptions for
choice_type_id for the
|Choice type ID
|The user has chosen to view instructions on how to whitelist a site.
|The user has chosen to opt into ad recovery (no longer used).
|The user has chosen to view custom content in an iframe.
|The user has chosen a option to redirect to another page.
The user has chosen a micropayment option (requires a separate agreement).
|The user has chosen to view a video provided by Welect (requires a separate agreement).
|The user has chosen the Accept All option in a consent message.
|The user has chosen to view a privacy manager (consent preferences).
|The user has chosen the Reject All option from a consent message.
|Samba Video (requires separate agreement with Samba and Sourcepoint).