Product Analytics

by nicepkg

skill

Measure what matters with proper event tracking, funnels, cohorts, and metrics. Use when setting up analytics, tracking features, or understanding behavior.

Skill Details

Repository Files

2 files in this skill directory


name: product-analytics description: Measure what matters with proper event tracking, funnels, cohorts, and metrics. Use when setting up analytics, tracking features, or understanding behavior. license: Complete terms in LICENSE.txt

Product Analytics

Measure what matters and make data-driven decisions.

North Star Metric

The ONE metric that represents customer value

Examples:
  Slack: Weekly Active Users
  Airbnb: Nights Booked
  Spotify: Time Listening
  Shopify: GMV

Your North Star should: ✅ Represent customer value
  ✅ Correlate with revenue
  ✅ Be measurable frequently
  ✅ Rally the team

Key Metrics Hierarchy

North Star Metric
  ├── Input Metrics (drive North Star)
  │   ├── Acquisition
  │   ├── Activation
  │   └── Retention
  └── KPIs (business health)
      ├── Revenue
      ├── Churn
      └── LTV

Event Tracking

// Track user actions
analytics.track('Button Clicked', {
  button_name: 'signup',
  page: 'homepage',
  user_id: '123'
})

// Track page views
analytics.page('Homepage', {
  referrer: document.referrer,
  path: window.location.pathname
})

// Identify users
analytics.identify('user-123', {
  email: 'user@example.com',
  plan: 'pro',
  created_at: '2024-01-15'
})

Funnel Analysis

Sign-up Funnel:
  1. Land on homepage: 10,000 (100%)
  2. Click signup: 2,000 (20%)
  3. Fill form: 1,000 (10%)
  4. Verify email: 800 (8%)
  5. Complete onboarding: 400 (4%)

Insights:
  - Biggest drop: Homepage to signup (80% lost)
  - Fix: Clarify value prop, add social proof

Cohort Analysis

Week 1 Cohort (Jan 1-7):
  - D1: 80% active
  - D7: 40% active
  - D30: 20% active

Week 2 Cohort (Jan 8-14):
  - D1: 85% active (+5%)
  - D7: 50% active (+10%)
  - D30: 30% active (+10%)

Insight: Onboarding changes improved retention!

Retention Curves

Good Retention:
  - D1: 60-80%
  - D7: 40-60%
  - D30: 30-50%
  - Flattening curve (good!)

Bad Retention:
  - D1: 40%
  - D7: 10%
  - D30: 2%
  - Steep drop-off (bad!)

Key Metrics to Track

Acquisition

  • Traffic sources (organic, paid, referral)
  • Cost per click (CPC)
  • Conversion rate (visitor → signup)

Activation

  • Signup → first core action
  • Time to value
  • Onboarding completion rate

Retention

  • DAU / MAU (stickiness)
  • Retention rate D1, D7, D30
  • Churn rate

Revenue

  • MRR / ARR
  • ARPU (Average Revenue Per User)
  • LTV (Lifetime Value)
  • LTV:CAC ratio

Referral

  • Viral coefficient
  • Referral signups
  • NPS (Net Promoter Score)

## Tools

```yaml
Event Tracking:
  - Mixpanel (best for products)
  - Amplitude (good alternative)
  - PostHog (open-source)

Session Recording:
  - FullStory
  - LogRocket
  - Hotjar

A/B Testing:
  - Optimizely
  - VWO
  - Google Optimize (free)

Dashboard Design

Executive Dashboard:
  - North Star Metric (big number)
  - Revenue (MRR/ARR)
  - Key metric trends (graphs)

Product Dashboard:
  - Active users (DAU/WAU/MAU)
  - Feature usage
  - Retention cohorts
  - Funnels

Marketing Dashboard:
  - Traffic sources
  - Conversion rates
  - Cost per acquisition
  - ROI by channel

Summary

Great analytics:

  • ✅ One North Star Metric
  • ✅ Track everything
  • ✅ Regular review (weekly)
  • ✅ Share insights widely
  • ✅ Act on data quickly

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
License:Complete terms in LICENSE.txt
Last Updated:1/18/2026