Mock Analytics & Event Telemetry Stream
Test PostHog, Mixpanel, Segment, and custom event tracking beacons, validate frontend telemetry hooks, and write automated Playwright E2E assertions without polluting production dashboards.
Live Analytics & Telemetry Stream
Live IngestionSimulate PostHog, Mixpanel, and Segment event tracking in your isolated session sandbox.
No Telemetry Events Recorded Yet
Click any preset event on the left or send a POST /api/v1/analytics/track request.
Events are stored in your isolated session sandbox (resource = analytics_events) and can be queried or cleared anytime.
Keep your real PostHog, Mixpanel, and Google Analytics clean. Run dev builds, tests, and CI pipelines against an isolated mock telemetry endpoint.
Supports both single /analytics/track calls and bulk /analytics/batch payloads up to 50 events per batch.
Query GET /analytics/events in Playwright or Cypress to assert that specific business events and metadata were dispatched.
Integration Recipes & Usage
1. Ingest Single Event Beacon
Dispatches a single event payload containing event name, user ID, properties, and timestamp.
2. Bulk Batch Ingestion (Segment / Mixpanel Parity)
Send an array of events in a single HTTP request for offline queue flushes and SDK periodic syncs.
3. Official TypeScript SDK
Type-safe analytics methods with automatic session identity routing.
4. React Custom useAnalytics() Hook
Lightweight client-side telemetry hook with offline retry queueing.
5. Playwright E2E Test Assertion
Verify that critical conversion funnels and user actions trigger the expected tracking telemetry.
Analytics API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/analytics/track | Ingest a single event beacon with properties and traits. |
| POST | /api/v1/analytics/batch | Ingest a batch of up to 50 event beacons atomically. |
| GET | /api/v1/analytics/events | List recorded telemetry stream with filtering (?event=..., ?userId=...). |
| GET | /api/v1/analytics/summary | Get aggregated metrics, unique users count, and top events breakdown. |
| DELETE | /api/v1/analytics/events | Clear all recorded analytics events for this session sandbox. |