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:

FieldsTypeDescription
providerstringRequired. A named identifier indicating the consent management system providing the consent to the SDK.
purposestringRequired. What the customer consented to. For example, Tracking.
statusstringRequired. 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:

NameValue
SalesforceInteractions.ConsentPurpose.TrackingTracking
SalesforceInteractions.ConsentStatus.OptInOpt In
SalesforceInteractions.ConsentStatus.OptOutOpt Out

See Also