A product metric is a rule over observations, not a label on a dashboard. The prompt should specify the business question, analysis unit, inclusion and exclusion rules, event names, trigger points, identity key, completion window, and denominator. Ask the model to return unresolved definitions before analysis. Instrumentation can fire on page render, button press, or a confirmed server action; those are not interchangeable. Keep the contract version with the output so a later event rename or trigger change does not silently rewrite the historical series.
Analytics prompts: define the metric and event contract
Operational case
Meridian asks whether signup is easier on mobile. 'Signup start' originally fires on page load, including refreshes, while 'signup complete' fires after server confirmation. The analyst changes the question to eligible unique users who start and then complete within the chosen window. The event contract identifies the start trigger, completion trigger, platform at start, and stable user identity. The model can expose this mismatch before anyone plots a rate.
Unit: eligible unique user
Start: confirmed entry to signup flow
Complete: server-confirmed account creation
Window: 24 hours after each start
Platform: value at first eligible startPerformance and review cost
Validating E event definitions is O(E) contract review, while a full record scan is O(N) for N events. The extra definition work prevents a fast but meaningless chart. A model may propose a contract, yet engineering must verify that actual emitters follow it on every client and that server-confirmed outcomes are recorded exactly as intended.
Common Mistakes
- Do not divide a server completion count by page-render events without an identity rule.
- Do not leave the completion window implicit.
- Do not rename an event without recording a version break.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Dataset intake prompts: define a column before analyzing it
- Aggregation prompts: pin the denominator and recompute the rate
- Analytics prompts: reconcile identities, duplicates, and late arrivals
- Analytics prompts: enforce funnel eligibility and event order
- Analytics prompts: pin cohort windows and time zones
- Analytics prompts: review read-only queries and totals
- Analytics prompts: explain segment gaps without inventing causes
- Analytics prompts: turn a metric packet into a bounded decision
- Project: reconcile Meridian's signup funnel
- Product analytics prompt decisions
Continue with: Experiment prompts: investigate assignment and exposure imbalance.
