Set up Event tracking plan template and check the results
Use the prompt to add events, then check the stored fields and query results. Review the event definitions before relying on the numbers.
- 1
Choose when to log
Instrument the point where tracking_plan_reviewed becomes final.
- 2
Create the contract
Start with tracking_plan_reviewed, event_contract_changed, instrumentation_verified and keep every field typed, bounded, and privacy-reviewed.
- 3
Run a fixture
Exercise known success, failure, retry, and empty-result cases before relying on aggregate results.
- 4
Answer the question
What does one row represent, and which decision does it support?
Template
Paste this into your coding agent
Replace YOUR_API_KEY, run the flow locally, then verify the generated events and dashboards.
Event tracking plan template
Create an event tracking plan for this codebase before adding Telemetry.
Use /skill.md and inspect the production workflow, existing analytics calls, tests, deployment configuration, privacy controls, and downstream reports.
For each proposed event, document:
event_name, event grain, business or operational decision, owner, exact trigger, required fields, optional fields, types and units, controlled values, prohibited content, privacy classification, retention expectation, schema_version, downstream SQL or dashboards, and synthetic validation cases.
Identify ambiguous retries, duplicate deliveries, raw URLs, unbounded strings, personal data, secrets, and fields whose source of truth is unclear. Do not add instrumentation until those boundaries are resolved.
Then implement the smallest approved event set, add contract and failure-path tests, verify ingestion in a non-production environment, and create SQL that keeps counts beside rates.
Return the tracking plan as a committed Markdown document and summarize any review decisions still required. Do not invent consent, retention, security, or compliance policy.Events to capture
Verification checklist
Check the events, queries, and dashboard
Events
Synthetic events reach the intended table with stable names and field types.
Queries
The first SQL queries return plausible rows with an explicit time window.
Views
A dashboard uses the real fields and includes enough context to explain a change.
Safety
You checked that events exclude prompts, bodies, credentials, signatures, and private content.
Example event schemas
Event schemas for this workflow
Check what each event records, when to send it, and which field types it needs. Review the example payload and privacy checklist before using it in production.
Use these queries in Telemetry
Learn about Structured events
Send events with consistent names and field types. Choose which context to include before sending it.
Related SQL recipes
More SQL recipes
Run the query using this workflow's event fields and check the example result. Save the result to a dashboard or set up an alert.
Catch event-field renames that hide rows from averages
Did a field rename make the duration average ignore completed jobs?
Open recipeTrack event schema-version adoption
Which producers still emit old versions of a critical event?
Open recipeMeasure required-field null rate
Which event names have an unacceptable missing account identifier rate?
Open recipeFind duplicate event ids
Which event IDs were received more than once?
Open recipeMeasure event ingestion freshness
Which production event sources are stale or delayed right now?
Open recipeMeasure late-arriving events
Which event producers deliver data late enough to distort analysis?
Open recipeMeasure Telemetry volume by event name
Which event contracts create the most ingestion volume?
Open recipeMore templates