Initialization

The recommended initialization flow for the Salesforce Interactions SDK follows a general pattern.

This method initializes the Web SDK with Consent, Identity, and Sitemap features enabled.

Arguments:

Field NameField TypeDescription
consentsConsent[] Promise<Consent[]>Required. A list of consent data values or a promise that resolves a list of consent data values.
cookieDomainstringThe domain to use for the first-party cookies that stores identity data. Defaults to the domain of the current site.
  • sdkConfig — An object with consent and cookieDomain fields.

Reinitializes the Web SDK and reevaluates which rules to apply from the configured sitemap.