Added to Cart Event

To report an event when items are added to the shopping cart.

Function Interface

events.addedToCart(eventParameter:AddedToCartEventParameter)

AddedToCartEventParameter

ParameterTypeRequiredDescription
currencystringThe store currency, following the ISO 4217 standard.
totalAmountstringThe total value of the viewed products.
itemsItem[]The items that are added to the cart. Refer to the Item resource page for details.

Example

preparing...