# Metrics and event spec - [feature] ## Metrics | Metric | Definition (numerator / denominator) | Window | Segment cuts | Owner | |---|---|---|---|---| | | | | | | Primary metric: Guardrails: ## Events | Event name | When it fires | Properties | Platform | Notes | |---|---|---|---|---| | feature_viewed | Screen is shown | source, user_type | app, web | | | feature_cta_clicked | User taps the main button | cta_name | app, web | | | feature_completed | Success confirmed by the server | duration_ms | app, web | Fire from the server, not the client | | feature_failed | Error shown | error_code | app, web | | ## Naming rules object_action in snake_case, past tense, one event per user intent, no personal data in properties. ## Validation checklist - Fired once per action (no duplicates) - Properties are present and correctly typed - Works for new and returning users - Dashboard built and checked against a manual count - Data retention and consent rules reviewed
Metrics and Event Tracking Spec Template: Define Every Metric Once
Define every metric and event once so dashboards agree. Use it when: Before a launch, so analytics are built with the feature and not after it.
Tips for using it well
- Define each metric once, with numerator, denominator and window.
- Fire success events from the server, not the client, when money or state changes.
- Validate against a manual count before trusting a dashboard.
Square brackets are placeholders. Delete sections you do not need; a template is a starting point, not a form to fill for its own sake.
Frequently asked questions
Why write a metrics spec before building?
So analytics ships with the feature and everyone computes the metric the same way, instead of arguing about numbers afterwards.
How should events be named?
Use object_action in snake_case, past tense, one event per user intent, and no personal data in properties.
More free tools

Experiment Plan Template: A/B Test Hypothesis, Metrics, Decision Rules
Hypothesis, metrics, sample size and decision rules agreed before you start.
Open the template →Event Tracking Plan Template (Excel): Events, Properties, Funnels
A tracking plan for events, event properties, user properties and funnels, pre-filled with a consumer-app onboarding example.
Open the template →
PRD Template: Product Requirements Document
The full document engineering, design, data and risk read before building.
Open the template →Want a second pair of eyes on your PRD or career?
I offer mock interviews, resume reviews and product guidance for product managers.
Book a session