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.
Fields | Provided By | About | Description |
---|---|---|---|
account | Developer | Account | Captures profile event data for an account. |
consents | SDK | Consents | Contains a list of consent values attached to the first event captured after a customer consents to tracking or when a customer revokes consent. |
interaction | Developer | Interaction | Captures customer engagement event data. |
pageView | SDK | Page View | Indicates if the event was captured during a page load. |
source | SDK | Source | Contains event metadata about the page. |
time | SDK | Time | Shows the timestamp of the event in milliseconds elapsed since the UNIX epoch. |
user | Developer | User | Captures 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