Cart Interaction
A cart interaction is where a customer modifies the contents of their online shopping cart.
Cart interactions come in two forms:
- Single Line Item: For modifying individual line items in the customer’s cart.
- Multiple Line Items: For bulk operations against the customer’s cart.
The interaction names are used for cart interactions that affect individual line items.
| Interaction Name | Value |
|---|---|
| SalesforceInteractions.CartInteractionName.AddToCart | Add To Cart |
| SalesforceInteractions.CartInteractionName.RemoveFromCart | Remove From Cart |
The fields for a single line cart interaction.
| Field Name | Field Type | Description |
|---|---|---|
| lineItem | Line Item Data | Required. A single Line Item Data value. |
| name | string | Required. The event names. |
The interaction names used for cart interactions that affect all the line items in a cart.
| Interaction Name | Value |
|---|---|
| SalesforceInteractions.CartInteractionName.ReplaceCart | Replace Cart |
The fields for multi-line cart interaction.
| Field Names | Field Type | Description |
|---|---|---|
| lineItems | array | Required. An array of zero to many Line Item Data values |
| name | string | Required. The event names. |
Here’s an example of capturing a cart interaction using the Web SDK.
Here’s an example of capturing a cart interaction using the Sitemap.
See Also