Events are the immutable history of what happens in your application. An event consists of a name, a timestamp, and a JSON payload.Documentation Index
Fetch the complete documentation index at: https://docs.seerstack.com/llms.txt
Use this file to discover all available pages before exploring further.
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.
Event names starting with
$ are reserved for SeerStack system events like
$pageview, $click, and $rageclick. Avoid using $ prefixes for your own
custom events.Good
project.createduser.signuppayment.failed
Bad
created projectUser Clicked Signup Buttonfail