Capture Web Interactions
Salesforce Interactions SDK is an extensible data capture and collection framework that you can use to track different user interactions on your website and send that information to Salesforce. This information can then be used to build behavior profiles for web visitors, audience segmentation, or Salesforce integrations.
The SDK consists of a base SDK and product-specific modules for Data Cloud and Marketing Cloud Personalization. The SDK uses a unified event data model shared across both modules. This unified data model allows for capturing and integrating key business objects and user and behavioral data through event capture in a consistent format across Data Cloud and Personalization. The unified data model also enables you to use a single SDK to integrate with either Data Cloud, Personalization, or both together.
Salesforce Interactions SDK uses the SalesforceInteractions
namespace, which encapsulates all of the SDK’s components. To learn more about the SDK, see Salesforce Interactions SDK on Salesforce Help. For information about setting up the Salesforce Interactions SDK in Data Cloud, see Set Up the Salesforce Interactions SDK.
Salesforce Interactions SDK provides:
- Tracking of customer interactions
- Identity and cookie management for anonymous and named identity tracking
- Consent management integration hooks
- Configuration-driven instrumentation with sitemaps
- Integration hooks for adding custom functionality
Your website customers need a browser capable of running ES6-compatible code.
The sendEvent API call is how you capture interactions and collect associated data from a website customer. An interaction event has a named identifier, like View Catalog Object, required values, like catalogObject or order, and tracked user-defined values. For example, here’s a View Catalog Object event:
Salesforce Interactions SDK also comes with ready to use event data models to use across Salesforce.
Salesforce Interactions SDK supports anonymous and named identity tracking using first-party cookies or by being passed identity information from the website. Cookies are prefixed with _sfid and end with a string of characters unique to the domain to which the cookie belongs. You can customize cookie and identity behavior either through configuration or through calling the Identity APIs in Salesforce Interactions SDK.
Not all website visitors and customers consent to cookie tracking. To support consent management, Salesforce Interactions SDK is designed to send events only if a customer has consented to tracking. When consent is revoked, the Web SDK captures this preference and then immediately stops emitting events. For example, this method passes consent into Salesforce Interactions SDK.
Capturing customer consent can be handled either through configuration or through calling the Consent API in Salesforce Interactions SDK.
Salesforce Interactions SDK Sitemap is a configuration-driven integration layer that executes within and is deployed with the Web SDK. A Sitemap is developed to integrate with a specific site using the API provided by the Web SDK that maps key business objects to interaction events.
See Also