Set up a metrics tracking plan for a project. Defines PostHog event funnel, KPI benchmarks, and kill/iterate/scale decision thresholds based on lean startup principles.
kb_search(query) — find PostHog methodology, analytics patternsIf MCP tools are not available, fall back to Grep + Read.
This skill implements metrics tracking based on lean startup principles:
$ARGUMENTS.kb_search("PostHog analytics events funnel identity")Standard funnel stages (adapt per product):
```
Awareness → Acquisition → Activation → Revenue → Retention → Referral
```
Map to concrete events:
| Stage | Event Name | Trigger | Properties |
|-------|-----------|---------|------------|
| Awareness | page_viewed | Landing page visit | source, utm_* |
| Acquisition | app_installed or signed_up | First install/signup | platform, source |
| Activation | core_action_completed | First key action | feature, duration_ms |
| Revenue | purchase_completed | First payment | plan, amount, currency |
| Retention | session_started | Return visit (D1/D7/D30) | session_number, days_since_install |
| Referral | invite_sent | Shared or referred | channel, referral_code |
Before defining KPIs, write out:
| KPI | Target | Kill Threshold | Scale Threshold | Source |
|-----|--------|---------------|-----------------|--------|
| Landing → Signup | 3-5% | < 1% | > 8% | Industry avg |
| Signup → Activation | 20-40% | < 10% | > 50% | Product benchmark |
| D1 Retention | 25-40% | < 15% | > 50% | Mobile avg |
| D7 Retention | 10-20% | < 5% | > 25% | Mobile avg |
| D30 Retention | 5-10% | < 2% | > 15% | Mobile avg |
| Trial → Paid | 2-5% | < 1% | > 8% | SaaS avg |
Adjust based on product type (B2C vs B2B, free vs paid, mobile vs web).
```markdown
## Decision Framework
Review cadence: Weekly (Fridays)
### KILL signals (any 2 = kill)
### ITERATE signals
### SCALE signals (all 3 = scale)
```
### For iOS (Swift):
```swift
// Event tracking examples
PostHogSDK.shared.capture("core_action_completed", properties: [
"feature": "scan_receipt",
"duration_ms": elapsed
])
```
### For Web (TypeScript):
```typescript
// Event tracking examples
posthog.capture('signed_up', {
source: searchParams.get('utm_source') ?? 'direct',
plan: 'free'
})
```
docs/metrics-plan.md:```markdown
# Metrics Plan: {Project Name}
Generated: {YYYY-MM-DD}
Platform: {iOS / Web / Both}
North Star: {north star metric}
## Event Funnel
| Stage | Event | Properties |
|-------|-------|------------|
{event table from step 4}
## KPIs & Thresholds
| KPI | Target | Kill | Scale |
|-----|--------|------|-------|
{benchmark table from step 6}
## Decision Rules
{framework from step 7}
## Implementation
### PostHog Setup
### Code Snippets
{snippets from step 8}
## Dashboard Template
---
Generated by /metrics-track. Implement events, then review weekly.
```
$set for user properties, capture for eventsidentify() on signup with user IDCause: Project has both web and iOS indicators.
Fix: Skill checks package manifests. If both exist, it generates cross-platform identity setup. Verify the detected platform in the output.
Cause: Default thresholds are industry averages.
Fix: Adjust thresholds in docs/metrics-plan.md based on your niche. B2B typically has lower volume but higher conversion.
Cause: Metrics plan generated but SDK not installed.
Fix: This skill generates the PLAN only. Install PostHog SDK separately: pnpm add posthog-js (web) or add posthog-ios via SPM (iOS).
共 1 个版本