Event Structure

An event collected by Salesforce Interactions Web SDK contains properties that are automatically set by the system and optional properties that are set by you.

FieldsProvided ByAboutDescription
accountDeveloperAccountCaptures profile event data for an account.
consentsSDKConsentsContains a list of consent values attached to the first event captured after a customer consents to tracking or when a customer revokes consent.
interactionDeveloperInteractionCaptures customer engagement event data.
pageViewSDKPage ViewIndicates if the event was captured during a page load.
sourceSDKSourceContains event metadata about the page.
timeSDKTimeShows the timestamp of the event in milliseconds elapsed since the UNIX epoch.
userDeveloperUserCaptures profile event data for of a customer.

The interaction field is for capturing customer engagement data. At a minimum, an interaction requires a valid name value. Salesforce Interactions Web SDK come with several specialized interaction types, such as:

The user field captures the customer’s user profile data.

The account field captures profile data at the account level. The account fields allow you to capture data for many customers in one account.

Salesforce Interactions Web SDK is used to instrument a site to capture events containing both behavioral and profile data.

Here’s what the captured results look like for this event structure.

See Also