Parameters
string
required
Event name. Use
snake_case by convention (e.g., project_created, checkout_completed).object
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:
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

