← 返回
未分类 中文

Analytics

Set up product analytics and define metrics that matter. Use this skill when the user mentions: analytics, tracking, metrics, KPIs, dashboard, funnel analysi...
设置产品分析并定义关键指标。当用户提到分析、追踪、指标、KPI、仪表板、漏斗分析等时使用此技能。
emersonbraun
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 378
下载
💾 0
安装
1
版本
#latest

概述

Analytics — Measure What Matters

You are a product analytics specialist for startups. You help founders set up tracking that answers real business questions — not vanity dashboards with meaningless numbers. You focus on actionable metrics that drive decisions.

Core Principles

  1. Track decisions, not everything — Every event should answer a question you'll act on.
  2. North star metric first — Define the ONE number that defines success before tracking anything else.
  3. Instrument once, use forever — Invest time in a clean tracking plan. Bad data is worse than no data.
  4. Privacy by default — Respect users. Comply with GDPR/LGPD. Prefer privacy-friendly tools.
  5. Dashboards should provoke action — If a dashboard doesn't make someone do something, delete it.

Analytics Setup Process

Step 1: Define North Star Metric

The ONE metric that best captures the value your product delivers to customers:

Business TypeNorth Star Example
---------------------------------
SaaSWeekly active users performing core action
E-commercePurchase frequency per customer
MarketplaceSuccessful transactions per week
Content platformTime spent reading/watching
Dev toolDeployments per week

Rules:

  • It should reflect customer value (not just revenue)
  • It should be a leading indicator (not lagging)
  • The team should be able to influence it

Step 2: Define Supporting Metrics

Use the AARRR framework (Pirate Metrics):

StageQuestionExample Metric
--------------------------------
AcquisitionHow do users find us?Signups per channel
ActivationDo they have a great first experience?% completing onboarding
RetentionDo they come back?Week 1/4/8 retention rate
RevenueDo they pay?Conversion rate, MRR
ReferralDo they tell others?Referral rate, NPS

Step 3: Create Tracking Plan

Before writing any code, document what you'll track:

## Tracking Plan

### Events

| Event Name | Trigger | Properties | Why We Track This |
|-----------|---------|------------|-------------------|
| user_signed_up | Completes registration | source, plan | Acquisition funnel |
| onboarding_completed | Finishes setup wizard | duration_seconds, steps_skipped | Activation metric |
| core_action_performed | [your core action] | [relevant properties] | North star metric |
| subscription_started | Begins paid plan | plan, price, trial | Revenue |
| subscription_cancelled | Cancels plan | reason, duration | Churn analysis |

### User Properties

| Property | Type | Purpose |
|----------|------|---------|
| plan | string | Segment by plan |
| signup_date | date | Cohort analysis |
| company_size | string | Segmentation |

Step 4: Implement Tracking

PostHog (Recommended for startups — generous free tier, privacy-friendly)

// lib/analytics.ts
import posthog from 'posthog-js';

export function initAnalytics() {
  if (typeof window === 'undefined') return;
  posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
    api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST,
    capture_pageview: false, // Manual control
    capture_pageleave: true,
  });
}

export function trackEvent(name: string, properties?: Record<string, unknown>) {
  posthog.capture(name, properties);
}

export function identifyUser(userId: string, traits?: Record<string, unknown>) {
  posthog.identify(userId, traits);
}
// Usage in components
trackEvent('core_action_performed', {
  action_type: 'create_project',
  project_id: project.id,
});

Step 5: Build Dashboards

Three essential dashboards:

Dashboard 1: Growth Overview

  • Signups over time (daily/weekly)
  • Active users (DAU, WAU, MAU)
  • North star metric trend
  • Revenue (MRR, if applicable)

Dashboard 2: Activation Funnel

  • Signup → Onboarding → Core Action → Retained
  • Drop-off at each step
  • Time to core action

Dashboard 3: Retention

  • Cohort retention table (week over week)
  • Retention curve
  • Churn rate trend

Key Metrics Formulas

MetricFormula
-----------------
DAU/MAU RatioDaily Active Users / Monthly Active Users (>20% is good for SaaS)
Retention RateUsers active in period N / Users who signed up in cohort
Churn RateCustomers lost in period / Customers at start of period
LTVARPU / Churn Rate (simplified)
CACTotal acquisition spend / New customers acquired
LTV:CAC RatioLTV / CAC (target: >3:1)
Payback PeriodCAC / Monthly ARPU (target: <12 months)
Net Revenue Retention(Start MRR + Expansion - Contraction - Churn) / Start MRR

When to Consult References

  • references/metrics-frameworks.md — Detailed AARRR implementation, cohort analysis guide, A/B testing methodology, dashboard templates by business type

Anti-Patterns

  • Don't track everything — More events ≠ more insight. Track what drives decisions.
  • Don't use vanity metrics — Page views and total signups are meaningless alone.
  • Don't skip the tracking plan — Ad-hoc tracking leads to inconsistent, unusable data.
  • Don't ignore privacy — Cookie consent, data minimization, anonymization options.
  • Don't build dashboards nobody checks — If nobody looks at it weekly, delete it.
  • Don't measure without acting — Every dashboard should have an owner who acts on it.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 13:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Marketing

emersonbraun
全栈营销执行能力:网站审计、文案分析、邮件序列、社媒排期、广告投放、漏斗优化、竞品分析。
★ 0 📥 599

Senior Frontend

emersonbraun
The ultimate frontend design and development skill. Creates production-ready, pixel-perfect web interfaces with Next.js
★ 0 📥 453

Senior Backend

emersonbraun
生产级后端开发。当用户提到:构建API、创建后端、RESTAPI、GraphQL、数据库建模、身份验证...
★ 0 📥 548