Track Cart
To track the contents of an in-app shopping cart, use trackCartContents(). For more information about this method’s general use with Einstein Recommendations, see Salesforce Help: Track Items in Shopping Cart.
Use the analytics manager to track cart contents with items, quantities, and prices.
For SDK version 10, use this example.
For SDK version 8, use this example.
For SDK version 7, use this example.