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 NameValue
SalesforceInteractions.CartInteractionName.AddToCartAdd To Cart
SalesforceInteractions.CartInteractionName.RemoveFromCartRemove From Cart

The fields for a single line cart interaction.

Field NameField TypeDescription
lineItemLine Item DataRequired. A single Line Item Data value.
namestringRequired. The event names.

The interaction names used for cart interactions that affect all the line items in a cart.

Interaction NameValue
SalesforceInteractions.CartInteractionName.ReplaceCartReplace Cart

The fields for multi-line cart interaction.

Field NamesField TypeDescription
lineItemsarrayRequired. An array of zero to many Line Item Data values
namestringRequired. 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