Skip to main content
trackSale({
  orderId: 'order_123',
  marketId: 'market_123',
  customerId: 'cust_456',
  currency: 'USD',
  revenue: 129.99,
  skus: ['SKU-1', 'SKU-2']
})
{
  "orderId": "order_123",
  "marketId": "market_123",
  "customerId": "cust_456",
  "currency": "USD",
  "revenue": 129.99,
  "skus": ["SKU-1", "SKU-2"]
}

Documentation Index

Fetch the complete documentation index at: https://docs.cevoid.com/llms.txt

Use this file to discover all available pages before exploring further.

Sent by 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

orderId
string
required
Order identifier.
marketId
string
Market identifier used for SKU resolution in telemetry.
customerId
string
Customer identifier.
currency
string
required
ISO currency code.
revenue
number
required
Decimal major-unit amount in currency.Example: 129.99
skus
string[]
Purchased SKUs used for telemetry-side product resolution.

Notes

  • Provide revenue in the same currency as currency, for example 129.99 with USD.
  • Use trackSale(data) for conversions rather than trackEvent('sale.complete', ...).