Events
Events are discrete occurrences that happen in your application. Unlike metrics which track values over time, events capture individual moments with rich context.Event Structure
Every event has:| Field | Type | Required | Description |
|---|---|---|---|
name | String | Yes | Event name (e.g., user.signup) |
timestamp | DateTime | No | When it occurred (defaults to now) |
properties | Hash | No | Arbitrary data |
tags | Hash | No | Indexed metadata for filtering |
user_id | String | No | Associated user |
value | Number | No | Numeric value for aggregations |
Tracking Events
Basic Event
Event with Properties
Properties store arbitrary data with the event:Event with Tags
Tags are indexed for fast filtering and grouping:Event with Value
Values enable aggregations (sum, avg, etc.):Full Event
Naming Conventions
Use dot notation for hierarchical event names:Batch Tracking
The SDK automatically batches events for performance. You can also explicitly batch:Querying Events
In the Dashboard
Filter events by:- Time range
- Event name (exact or pattern)
- Tags
- User ID
- Value range
Via API
Via MCP
Event Aggregations
Aggregate events for insights:Count
Stats
Group By
Use Cases
Funnel Analysis
Track conversion funnel steps:Feature Usage
Track feature adoption:Business Events
Track business-critical moments:Best Practices
Use Tags for Filtering
Put filterable dimensions in tags, not properties
Include Value
Add a value for events you’ll aggregate
Consistent Naming
Use dot notation and consistent prefixes
Link Users
Include user_id when available