Nested & Complex JSONadvanced

Analytics Event Payload JSON Example

A nested event payload with actor, context, and event-specific properties.

Real-world use case: Use this for event tracking, ingestion pipelines, and product analytics docs.
1{
2 "event": "checkout_started",
3 "occurredAt": "2026-03-12T12:02:00Z",
4 "actor": {
5 "userId": "usr_8f41",
6 "anonymousId": "anon_a91"
7 },
8 "context": {
9 "page": {
10 "path": "/checkout",
11 "locale": "en-US"
12 },
13 "device": {

Where this shape shows up in production

Event ingestion
Analytics docs
Warehouse modeling

Related examples