1---2name: product-analytics3description: Design product analytics — event taxonomy, tracking plan, metric definitions, dashboard requirements, and insight workflows. TRIGGER when: user says /product-analytics or asks about product instrumentation and usage tracking.4---5# Product Analytics Design6## Process7### Step 1: Define Analytics Goals8| Question | Analytics Needed |9|----------|-----------------|10| Are users activating? | Activation funnel events |11| Are users engaged? | Session, feature usage events |12| Are users retaining? | Return frequency, churn events |13| Are users expanding? | Upsell, feature adoption events |14| Where do users struggle? | Error, rage-click, drop-off events |15### Step 2: Design Event Taxonomy16| Convention | Format | Example |17|-----------|--------|---------|18| Object_Action | noun_verb (past tense) | `project_created`, `report_exported` |19| Properties | snake_case, consistent types | `plan_type: "pro"`, `item_count: 5` |20| Naming rules | No abbreviations, consistent casing | `subscription_upgraded` not `sub_up` |21### Step 3: Create Tracking Plan22| Event | Trigger | Properties | Priority |23|-------|---------|-----------|----------|24| page_viewed | Page load | page_name, referrer | Must |25| button_clicked | CTA click | button_name, location | Must |26| feature_used | Feature activation | feature_name, duration | Must |27| error_occurred | Error displayed | error_type, error_message | Must |28| search_performed | Search submitted | query, results_count | Should |29### Step 4: Define Metrics30| Metric | Definition | Formula |31|--------|-----------|---------|32| DAU/MAU | Daily/Monthly active users | Unique users with session | 33| Activation rate | Users completing setup | Activated / Signed up |34| Feature adoption | Users using feature X | Feature users / MAU |35| Retention (D7) | Return after 7 days | Active D7 / Cohort size |36### Step 5: Design Dashboards37| Dashboard | Audience | Metrics |38|-----------|----------|---------|39| Executive | Leadership | MAU, retention, revenue |40| Product | PM/Design | Feature adoption, funnels |41| Growth | Marketing | Acquisition, activation |42| Engineering | Dev team | Errors, performance |43### Step 6: Establish Insight Workflow441. Weekly metrics review (automated report)452. Anomaly investigation (dig into unusual changes)463. Hypothesis formation (why did metric change?)474. Experiment design (A/B test to validate)485. Decision and iteration49## Output Format50```markdown51## Analytics Plan: [Product]52### Event Taxonomy: [Naming convention and key events]53### Tracking Plan: [Event table]54### Metrics: [Definitions and targets]55### Dashboards: [Requirements by audience]56```57## Quality Checklist58- [ ] Event naming is consistent and documented59- [ ] All key user actions have tracking events60- [ ] Metrics have clear definitions and formulas61- [ ] Dashboard requirements match stakeholder needs62- [ ] Privacy and consent handled properly63## Edge Cases64- For mobile apps, track offline events with batched upload65- For multi-platform, ensure consistent event names across platforms66- If GDPR applies, implement consent management before tracking