Parameters
Event name. Use
snake_case by convention (e.g., project_created, checkout_completed).Optional key-value pairs attached to the event.
Example
Automatic events
The SDK tracks these events automatically — you don’t need to calltrack for them:
| Event | Description |
|---|---|
page_view | Fired on every page navigation (including SPA route changes) |
js_error | Fired on unhandled errors and console.error calls |
replay_triggered | Fired when session replay transitions from buffer to recording |
Delivery
Events are sent usingnavigator.sendBeacon for reliability (works even during page unload). If sendBeacon is unavailable, the SDK falls back to fetch with keepalive: true.
Events are delivered asynchronously and never block the host page. Network failures are silently ignored — tracking must never break your application.
Context
Every event automatically includes:sessionId— current session identifieranonymousId— persistent anonymous identifieruserId— set afteridentify()is calledaccountId— set if the identified user has an accountdevice— browser, OS, screen resolution, language, timezonetimestamp— millisecond Unix timestamp

