Events
What an event is, how to send one, and what the server adds.
The minimum viable event
{ "event": "signup" }The full shape
{
"event": "purchase",
"event_id": "evt_8f3c1...",
"timestamp": "2026-05-16T19:00:00.000Z",
"anonymous_id": "u_abc",
"user_id": "user_42",
"session_id": "sess_xyz",
"url": "https://yoursite.com/checkout/?utm_source=facebook&utm_medium=cpc",
"path": "/checkout/",
"referrer": "https://l.facebook.com/",
"properties": {
"amount_cents": 4900,
"currency": "usd",
"items": 2,
"plan": "pro"
}
}Field
Required
What it does
What the server adds
Event types you'll meet
Convention
Examples
Who emits it
Sending an event
Browser
Server (Node, Bun, Deno, edge)
Anywhere — plain HTTP
From an AI agent (MCP)
Sending many events at once
Idempotency
What happens when an event lands
What happens when an event doesn't land
Symptom
Cause
Fix
Where events go after they land
See also
Last updated
Was this helpful?