analytics-setup
Skill2 starsChanged 5 months agoMITView on GitHub
Set up minimum viable analytics for a vibe-coded app — the right tool stack, the 5 events that matter before 100 users, and copy-paste implementation code. Use when the user wants to add analytics, set up tracking, asks "what should I measure," "I don't have any analytics," "how do I track signups, conversions, or revenue," or has analytics installed but nothing useful being tracked.
- Reads credentials
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- Retired-Projects/ai-marketing-kit-publictheir own version, first seen Jul 30, 2026
- crealwork/ai-marketing-kittheir own version, first seen Jul 17, 2026
- rshankras/claude-code-apple-skillstheir own version, first seen Jul 16, 2026
- ominou5/funnel-architect-plugintheir own version, first seen Feb 26, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- rshankras/claude-code-apple-skills★ 777same name
- ominou5/funnel-architect-plugin★ 86same name
- crealwork/ai-marketing-kit★ 18same name
- Retired-Projects/ai-marketing-kit-public★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- changelogSkill
- churn-basicsSkill
- community-launchSkill
- directory-submissionsSkill
- domain-nameSkill
- first-100-usersSkill
- founder-outreachSkill
- landing-pageSkill
- launch-videoSkill
- onboarding-activationSkill
- pre-launch-checklistSkill
- pricing-first-timeSkill
- product-contextSkill
- product-hunt-launchSkill
- referralsSkill
- seo-quickstartSkill
- waitlistSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read product-context.md if present.
- Distinctive: line 35
Start with Vercel Analytics (one-line install) + PostHog (for product events).
- Distinctive: line 38
Use PostHog for solo founders.
- Distinctive: line 42
Don't track everything. Track these 5, measure them weekly.
- Distinctive: line 130
Don't build dashboards. Ask three questions every Monday:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Analytics Setup
Most vibe-coded apps launch with zero analytics or with analytics installed but nothing useful being tracked. This skill gives you the minimum setup — the 5 events that matter before you have 100 users, the right tool stack, and the implementation plan.
Context
Read product-context.md if present. Also ask for:
- Tech stack (Next.js / Webflow / Framer / other)
- Current analytics tools installed (none / Vercel Analytics / GA4 / PostHog / Plausible / other)
- What they most want to know right now: "are people signing up?" / "where are they dropping off?" / "is anyone paying?"
Process
1. Tool stack recommendation
Minimum viable stack (pick one from each row):
| Layer | Recommendation | Free tier | Best for |
| Page views + traffic | Vercel Analytics or Plausible | Yes | Anonymous traffic, privacy-friendly |
| Product events | PostHog | Yes (generous) | Session replay + funnels + custom events |
| Revenue | Stripe Dashboard | Built-in | MRR, churn, ARPU |
| Errors | Sentry | Yes | Catching crashes before users report them |
For Next.js apps on Vercel: Start with Vercel Analytics (one-line install) + PostHog (for product events). Add Sentry when you're getting real traffic. Don't add more tools until you're actually using what you have.
PostHog vs. Mixpanel vs. Amplitude: Use PostHog for solo founders. It's free up to 1M events/month, open-source, includes session replay, and is the easiest to self-host later. Mixpanel and Amplitude are for teams with dedicated analysts.
2. The 5 events that matter before you have 100 users
Don't track everything. Track these 5, measure them weekly. Deliver the final event list as a filled copy of assets/tracking-plan-template.md saved into the product repo — it's the single source of truth for event names.
| Event | What it means | How to trigger it |
user_signed_up | Someone made an account | After successful auth |
[core_action]_completed | User did the thing that activates them | After the activation event (see /onboarding-activation) |
subscription_started | First payment received | After Stripe webhook checkout.session.completed |
[core_action]_repeated | User came back and did it again | Same event, second occurrence |
subscription_cancelled | User churned | After Stripe webhook customer.subscription.deleted |
Replace [core_action] with your specific activation event (e.g., video_generated, invoice_sent, report_created).
These 5 events let you compute:
- Activation rate =
[core_action]_completed/user_signed_up - Conversion rate =
subscription_started/user_signed_up - Retention proxy =
[core_action]_repeated/[core_action]_completed - Churn rate =
subscription_cancelledin period / active subscribers
3. Implementation (Next.js + PostHog)
Install PostHog:
pnpm add posthog-jsInitialize (app/providers.tsx or layout.tsx):
'use client'
import posthog from 'posthog-js'
import { PostHogProvider } from 'posthog-js/react'
import { useEffect } from 'react'
export function Analytics({ children }: { children: React.ReactNode }) {
useEffect(() => {
posthog.init(process.env.NEXT_PUBLIC_POSTHOG_KEY!, {
api_host: process.env.NEXT_PUBLIC_POSTHOG_HOST ?? 'https://app.posthog.com',
capture_pageview: false, // use the router hook instead
})
}, [])
return <PostHogProvider client={posthog}>{children}</PostHogProvider>
}Track events:
import { usePostHog } from 'posthog-js/react'
// In your component:
const posthog = usePostHog()
// After activation:
posthog.capture('video_generated', {
channel: 'tiktok',
credits_used: 10,
user_id: userId,
})Identify users (after sign-in):
// After Clerk sign-in or in your auth callback:
posthog.identify(userId, {
email: userEmail,
plan: 'free', // or 'pro'
created_at: new Date().toISOString(),
})For server-side events (Stripe webhooks, API routes):
import { PostHog } from 'posthog-node'
const posthogClient = new PostHog(process.env.POSTHOG_KEY!, {
host: 'https://app.posthog.com',
})
// In your Stripe webhook handler:
posthogClient.capture({
distinctId: userId,
event: 'subscription_started',
properties: { plan: 'pro', amount: 4900 },
})
await posthogClient.shutdown()4. The weekly analytics habit (15 minutes, every Monday)
Don't build dashboards. Ask three questions every Monday:
- "Did activation rate go up or down vs. last week?" → If down: look at session replays of users who signed up but didn't activate. What did they do?
- "What did the users who activated do differently from those who didn't?" → PostHog funnel report: sign-up → [core action]. What's the drop-off step?
- "Did anyone pay who I didn't expect?" → Check Stripe. Reply to every new subscriber within 24 hours and ask what triggered them to pay.
5. Revenue metrics (Stripe)
Stripe Dashboard gives you this for free — you don't need custom analytics for revenue until you're past $10k MRR:
- MRR — monthly recurring revenue (Stripe home dashboard)
- Churn rate — % of subscribers who cancel per month (Stripe Revenue metrics)
- ARPU — average revenue per user (MRR / subscriber count)
- LTV estimate — ARPU / churn rate (a $49/mo product at 5% monthly churn → LTV ≈ $980)
6. Error tracking (Sentry — add when you have real users)
pnpm add @sentry/nextjs
npx @sentry/wizard@latest -i nextjsSet up alerts for any new error type hitting more than 5 users — these are the bugs that are silently killing retention.
Output
- Tool recommendation — specific tools for this stack with rationale
- 5 events to track — named after this product's activation event
- Implementation code — copy-paste setup for their stack (PostHog init, event calls, server-side)
- Environment variables needed — list of keys to add to
.env.local - Weekly review template — 3-question Monday checklist with where to find each answer
- Current state audit — if a URL was provided, check for any analytics already present and note gaps
Analytics wired? Time to launch. SoloMax turns your product URL into a launch video, hooks, and captions in minutes — so your new events have traffic to measure.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

