Namespace Usage:
SalesforceInteractions Namespace:
Uses interaction.lineItems of the matching pageType for ReplaceCart interactions.
Evergage Namespace:
Uses the cart object to capture cart information.
Cart Information:
Capturing cart information is essential on shopping cart pages of ecommerce sites.
Key details typically captured include item ID (or SKU), price, and quantity.
Promises for Fields:
In the Evergage namespace, the _id, price, and quantity fields can return a Promise.
Events are sent only if all Promises resolve.
Updating Cart State:
In the Evergage namespace, use the cart.complete object to update the cart state by replacing previous contents.
In the SalesforceInteractions namespace, use the ReplaceCart interaction to update the cart state by replacing previous contents.
Item Identification:
In the Evergage namespace, you must define an _id field for item type, but SKU values can be passed instead of the _id field if properly attributed to a product.