Event Structure
A valid event object contains the following fields:| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The name of the event (e.g., signup.completed). |
user_id | string | No | The ID of the user who performed the action. |
data | object | No | Arbitrary JSON object with event properties. |
timestamp | string | No | ISO 8601 timestamp. Defaults to now. |
Sending Events
Use theevents.capture method to record an event.
- TypeScript
- Ruby
- cURL
Naming Conventions
We recommend using anoun.verb syntax for your event names. This keeps your data organized and easy to search.
Good
project.createduser.signuppayment.failed
Bad
created projectUser Clicked Signup Buttonfail