trackSale() when a completed purchase is tracked. The SDK emits the browser event cevoid:sale.complete and sends the internal event sale.complete.
The browser event is emitted as cevoid:sale.complete. The forwarded payload is available on event.detail.
Payload fields
string
required
Order identifier.
string
Market identifier used for SKU resolution in telemetry.
string
Customer identifier.
string
required
ISO currency code.
number
required
Decimal major-unit amount in
currency.Example: 129.99string[]
Purchased SKUs used for telemetry-side product resolution.
Notes
- Provide
revenuein the same currency ascurrency, for example129.99withUSD. - Use
trackSale(data)for conversions rather thantrackEvent('sale.complete', ...).