PurchasedEvent

PurchasedEvent

new PurchasedEvent(valueopt, propertiesopt, transactionIdopt)

Creates an instance of PurchasedEvent 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.PurchasedEvent(1.39, {
  category: 'mens shoes',
  brand: 'Special Brand',
  id: '23413'
}).track()

Extends

  • CustomEvent.templates.retail.RetailEvent