Home / Market / product analytics

product analytics

Use when defining product KPIs, building metric dashboards, running cohort or retention analysis, or interpreting feature adoption trends across product stages.

skill★ 30879727 dlskills.shMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: product-analytics description: Use when defining product KPIs, building metric dashboards, running cohort or retention analysis, or interpreting feature adoption trends across product stages.

---

Product Analytics

Define, track, and interpret product metrics across discovery, growth, and mature product stages.

When To Use

Use this skill for:

Workflow

  1. Select metric framework
  1. Define stage-appropriate KPIs
  1. Design dashboard layers
  1. Run cohort + retention analysis
  1. Interpret and act

KPI Guidance By Stage

Pre-PMF

Growth

Mature

Dashboard Design Principles

See:

Cohort Analysis Method

  1. Define cohort anchor event (signup, activation, first purchase).
  2. Define retained behavior (active day, key action, repeat session).
  3. Build retention matrix by cohort week/month and age period.
  4. Compare curve shape across cohorts.
  5. Flag early drop points and investigate journey friction.

Retention Curve Interpretation

Anti-Patterns

| Anti-pattern | Fix | |---|---| | Vanity metrics — tracking pageviews or total signups without activation context | Always pair acquisition metrics with activation rate and retention | | Single-point retention — reporting "30-day retention is 20%" | Compare retention curves across cohorts, not isolated snapshots | | Dashboard overload — 30+ metrics on one screen | Executive layer: 5-7 metrics. Feature layer: per-feature only | | No decision rule — tracking a KPI with no threshold or action plan | Every KPI needs: target, threshold, owner, and "if below X, then Y" | | Averaging across segments — reporting blended metrics that hide segment differences | Always segment by cohort, plan tier, channel, or geography | | Ignoring seasonality — comparing this week to last week without adjusting | Use period-over-period with same-period-last-year context |

Tooling

scripts/metrics_calculator.py

CLI utility for retention, cohort, and funnel analysis from CSV data. Supports text and JSON output.

# Retention analysis
python3 scripts/metrics_calculator.py retention events.csv
python3 scripts/metrics_calculator.py retention events.csv --format json

# Cohort matrix
python3 scripts/metrics_calculator.py cohort events.csv --cohort-grain month
python3 scripts/metrics_calculator.py cohort events.csv --cohort-grain week --format json

# Funnel conversion
python3 scripts/metrics_calculator.py funnel funnel.csv --stages visit,signup,activate,pay
python3 scripts/metrics_calculator.py funnel funnel.csv --stages visit,signup,activate,pay --format json

CSV format for retention/cohort:

user_id,cohort_date,activity_date
u001,2026-01-01,2026-01-01
u001,2026-01-01,2026-01-03
u002,2026-01-02,2026-01-02

CSV format for funnel:

user_id,stage
u001,visit
u001,signup
u001,activate
u002,visit
u002,signup

Cross-References