SDKs
Track events
Receipts, durable writes, and exposures.
Last updated on
const receipt = client.track("checkout_started", { productId: "p1" });
await receipt.persisted;
client.trackExposure("new_checkout");persisted resolves when local storage accepts the event, not when the server returns 202. flush() performs the HTTP post. Properties must be a JSON object. A non-object is rejected with INVALID_PROPERTIES and must not be retried.
Was this page useful?