Suivi des métriques PostHog

VérifiéSûr

Met en place un plan de suivi des métriques avec PostHog, incluant un funnel d'événements, des benchmarks de KPI et des seuils de décision (kill/iterer/scale). Utile pour définir des indicateurs de succès, suivre des KPIs ou décider quand abandonner ou étendre une fonctionnalité.

Spar Skills Guide Bot
Data & IAIntermédiaire
03/03/2026
Claude Code
#analytics#posthog#kpi-tracking#funnel-analysis#product-metrics

Recommandé pour

Synthèse automatique

Établit un plan de suivi analytique PostHog pour un projet : événements du funnel, KPI de référence et seuils de décision kill/iterate/scale issus du lean startup.

Points forts

  • Cartographie un funnel complet (Awareness → Referral) en événements PostHog concrets avec déclencheurs et propriétés
  • Impose un raisonnement explicite sur la métrique North Star, les indicateurs avancés/retardés et les vanity metrics à éviter
  • Fournit des tableaux de seuils chiffrés (kill/scale) par étape, ajustables selon B2C/B2B et mobile/web
  • Détecte la plateforme (iOS, web, ou les deux) et gère l'identité cross-platform

Limites

  • Les benchmarks fournis sont des moyennes génériques (mobile, SaaS) à recalibrer soi-même
  • Ne collecte ni ne valide aucune donnée : le plan reste théorique tant qu'il n'est pas implémenté dans PostHog
  • Fortement dépendant du PRD et du CLAUDE.md du projet ; sans ces fichiers, il faut répondre via AskUserQuestion
  • Ne couvre pas les métriques SEO, explicitement renvoyées vers /seo-audit
Quand l'utiliser

À utiliser au démarrage ou lors d'un pivot produit, quand il faut définir quels événements instrumenter et à quels seuils décider d'arrêter, d'itérer ou de scaler.

Quand l'éviter

À ne pas utiliser pour analyser des performances SEO ou pour explorer des données analytics déjà collectées.

Analyse de sécurité

Sûr
Score qualité84/100

The skill is a pure planning/documentation generator. Its declared tools (Read, Grep, Glob, Write, AskUserQuestion, kb_search) are benign, and the only write target is a predictable docs/metrics-plan.md file. There are no shell invocations, network fetches, credential handling, obfuscated payloads, or attempts to bypass safety controls. The embedded code snippets are inert illustrative PostHog examples, not executed.

Aucun point d'attention détecté

Comment cette analyse est faite

Exemples

New iOS app metrics plan
Set up metrics tracking for my iOS app HabitLoop — read the PRD and CLAUDE.md, then define the PostHog event funnel, KPI targets, and kill/scale thresholds.
PostHog funnel for web SaaS
Track KPIs for our web SaaS: define the PostHog JS events for signup → activation → paid, plus D1/D7/D30 retention benchmarks.
Kill or scale decision rules
Help me decide when to kill or scale my side project — build a weekly metrics review with kill/iterate/scale thresholds based on our activation and retention numbers.

name: solo-metrics-track description: Set up PostHog metrics plan with event funnel, KPI benchmarks, and kill/iterate/scale decision thresholds. Use when user says "set up metrics", "track KPIs", "PostHog events", "funnel analysis", "when to kill or scale", or "success metrics". Do NOT use for SEO metrics (use /seo-audit). license: MIT metadata: author: fortunto2 version: "1.1.1" openclaw: emoji: "📈" allowed-tools: Read, Grep, Glob, Write, AskUserQuestion, mcp__solograph__kb_search argument-hint: "<project-name>"

/metrics-track

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.

MCP Tools (use if available)

  • kb_search(query) — find PostHog methodology, analytics patterns

If MCP tools are not available, fall back to Grep + Read.

Methodology Reference

This skill implements metrics tracking based on lean startup principles:

  • Relative metrics vs niche benchmarks — compare against your own trajectory, not vanity averages
  • Kill/iterate/scale decision rules — data-driven thresholds for product decisions (see step 7 below)

Steps

  1. Parse project from $ARGUMENTS.

    • Read PRD for features, ICP, monetization model.
    • Read CLAUDE.md for stack (iOS/Web/both).
    • If empty: ask via AskUserQuestion.
  2. Detect platform:

    • iOS app → PostHog iOS SDK events
    • Web app → PostHog JS SDK events
    • Both → cross-platform identity (shared user ID across platforms)
  3. Load PostHog methodology:

    • If MCP available: kb_search("PostHog analytics events funnel identity")
    • Otherwise: check project docs for existing analytics configuration
    • Extract: event naming conventions, identity resolution, funnel pattern
  4. Define event funnel based on PRD features:

    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 |

  5. Forced reasoning — metrics selection: Before defining KPIs, write out:

    • North Star Metric: The ONE number that matters most (e.g., "weekly active users who completed core action")
    • Leading indicators: What predicts the North Star? (e.g., "activation rate D1")
    • Lagging indicators: What confirms success? (e.g., "MRR", "retention D30")
    • Vanity metrics to AVOID: (e.g., total downloads without activation)
  6. Set KPI benchmarks per stage:

    | 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).

  7. Define decision rules (lean startup kill/iterate/scale):

    ## Decision Framework
    
    **Review cadence:** Weekly (Fridays)
    
    ### KILL signals (any 2 = kill)
    - [ ] Activation rate < {kill_threshold} after 2 weeks
    - [ ] D7 retention < {kill_threshold} after 1 month
    - [ ] Zero organic signups after 2 weeks of distribution
    - [ ] CAC > 3x LTV estimate
    
    ### ITERATE signals
    - [ ] Metrics between kill and scale thresholds
    - [ ] Qualitative feedback suggests product-market fit issues
    - [ ] One stage of funnel is dramatically worse than others
    
    ### SCALE signals (all 3 = scale)
    - [ ] Activation rate > {scale_threshold}
    - [ ] D7 retention > {scale_threshold}
    - [ ] Organic growth > 10% week-over-week
    
  8. Generate PostHog implementation snippets:

    For iOS (Swift):

    // Event tracking examples
    PostHogSDK.shared.capture("core_action_completed", properties: [
        "feature": "scan_receipt",
        "duration_ms": elapsed
    ])
    

    For Web (TypeScript):

    // Event tracking examples
    posthog.capture('signed_up', {
        source: searchParams.get('utm_source') ?? 'direct',
        plan: 'free'
    })
    
  9. Write metrics plan to docs/metrics-plan.md:

    # 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
    - Project: {project name} (EU region)
    - SDK: {posthog-ios / posthog-js}
    - Identity: {anonymous → identified on signup}
    
    ### Code Snippets
    {snippets from step 8}
    
    ## Dashboard Template
    - Funnel: {stage1} → {stage2} → ... → {stageN}
    - Retention: D1 / D7 / D30 cohort chart
    - Revenue: MRR trend + trial conversion
    
    ---
    *Generated by /metrics-track. Implement events, then review weekly.*
    
  10. Output summary — North Star metric, key thresholds, first event to implement.

Notes

  • PostHog EU hosting for privacy compliance
  • Use $set for user properties, capture for events
  • Identity: start anonymous, identify() on signup with user ID
  • Cross-platform: same PostHog project, same user ID → unified journey
  • Review dashboard weekly, make kill/iterate/scale decision monthly

Common Issues

Wrong platform detected

Cause: 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.

KPI thresholds too aggressive

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.

PostHog SDK not in project

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).

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/posthog-metrics-tracking-setup-mma3jrp9/download' --output '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md.part' && mv '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md.part' '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Grep, Glob, Write, AskUserQuestion, mcp__solograph__kb_search

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md' && test -s '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/solo-metrics-track' && cp -R '.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9' '.claude/skills/solo-metrics-track'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/posthog-metrics-tracking-setup-mma3jrp9'

openskills read 'posthog-metrics-tracking-setup-mma3jrp9'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/posthog-metrics-tracking-setup-mma3jrp9/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires