Metrics track

From fortunto2/solo-factory · View interactive version

Metrics track is an AI agent skill from the GitHub repository fortunto2/solo-factory. Use when "set up metrics", "track KPIs", "analytics events", "what to count", "funnel analysis", "when to kill or scale", "success metrics", or need analytics plan. Do NOT use for SEO metrics (/seo-audit).

How to use this skill

Skill file

/metrics-track

Set up a metrics tracking plan for a project. Defines the event funnel for superduper-analytics (a self-hosted, cookieless event counter on Cloudflare, one schema for web and apps), KPI benchmarks, and kill/iterate/scale decision thresholds based on lean startup principles.

MCP Tools (use if available)

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

Methodology Reference

This skill implements metrics tracking based on lean startup principles:

Steps

  1. Parse project from $ARGUMENTS.
  1. Detect platform:
  1. Check what is already wired:
  1. Define event funnel based on PRD features:

Standard funnel: Awareness → Acquisition → Activation → Revenue → Retention → Referral

See references/kpi-benchmarks.md for the full event table, KPI thresholds, code snippets, and A/B test template. Adapt events to the specific product. Keep it to about ten event names per product: it is a counter, not session replay.

  1. Forced reasoning — metrics selection:

Before defining KPIs, write out:

  1. Set KPI benchmarks per stage:

Use thresholds from references/kpi-benchmarks.md as starting point. Adjust for product type (B2B has lower volume/higher conversion, B2C mobile has higher volume/lower retention).

  1. Define decision rules — use kill/iterate/scale framework from references/kpi-benchmarks.md. Adapt thresholds to project-specific values from step 6.
  1. Generate implementation snippets — use platform-specific examples from references/kpi-benchmarks.md. Adapt event names and properties to the funnel defined in step 4.
  1. A/B Test Analysis Template — copy template from references/kpi-benchmarks.md into the metrics plan. Include decision rules (SHIP / KEEP / EXTEND / INCONCLUSIVE).
  1. Write metrics plan to 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

### superduper-analytics setup

### Code Snippets

{snippets from step 8}

## A/B Test Template

{template from step 9}

## Reading it


Generated by /metrics-track. Implement events, then review weekly.

```

  1. Output summary — North Star metric, key thresholds, first event to implement, A/B template included.

Notes

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.

Counter not in project

Cause: Metrics plan generated but nothing sends events.

Fix: This skill generates the PLAN only. Web: add the sda.js tag (docs/install.md in https://github.com/fortunto2/superduper-analytics). iOS: add the SPM package https://github.com/fortunto2/superduperai-analytics-swift. Then register the source id and check seo products.

Events sent, nothing arrives

Cause: The source id is not in registry/sources.yaml (403), or the request came from an origin the registry does not list (dev server, preview deploy: dropped silently, by design).

Fix: Register the id, deploy, and test from the production host.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.