AddedToCartEvent

AddedToCartEvent

new AddedToCartEvent(valueopt, propertiesopt, transactionIdopt)

Creates an instance of AddedToCartEvent with a predefined name and known properties.

See:
  • CustomEvent.templates.retail.RetailEvent for available properties.
Parameters:
Name Type Attributes Default Description
value Number <optional>
properties Object <optional>
{}
transactionId String <optional>
Example
new sdk.CustomEvent.templates.retail.AddedToCartEvent(1.39, {
  category: 'mens shoes',
  brand: 'Special Brand',
  id: '23413'
}).track()

Extends

  • CustomEvent.templates.retail.RetailEvent