Consent

The Salesforce Interactions SDK has been designed to respect user privacy and doesn’t store or transmit data collected until it has been granted consent. If your site has existing consent management features, those features must integrate with the SDK to signal when the user has given consent to track.

Providing the user’s consent to the Salesforce Interactions SDK can happen either:

  • During Initialization
  • Calling updateConsents = (consents: Consent | Consent[]): void

The recommended approach is to provide a Promise for the consent during Initialization that resolves with an array of Consent Data values as shown in the example:

Consent Methods

Returns Consent Data with last updated and sent times.

To update consent after Initialization. For example, to call directly from your OneTrust code: