Consent Data

Consent data is used to either grant or revoke consent in Salesforce Interactions SDK. When a customer chooses to opt in to tracking these consent details are attached to the Event Structure of the first tracked event.

Consent object fields:

Fields Type Description
provider string Required. A named identifier indicating the consent management system providing the consent to the SDK.
purpose string Required. What the customer consented to. For example, Tracking.
status string Required. Values: Opt In or Opt Out
Here’s a basic structure of the consent data attached to an event.

The following consent purpose and status names are provided:

Name Value
SalesforceInteractions.ConsentPurpose.Tracking Tracking
SalesforceInteractions.ConsentStatus.OptIn Opt In
SalesforceInteractions.ConsentStatus.OptOut Opt Out