You never write tracking code.
One snippet autocaptures everything that happens. Then your coding agent reads your app and writes the track() calls that matter, right into your codebase, guided by us and proven correct. The instrumentation gets written for you, and a CI gate keeps it from silently breaking.
One snippet and you are already capturing pageviews, every click with its element chain, honest engagement time (focused and visible seconds, not a backgrounded tab), scroll depth, rage clicks, dead clicks, and JS exceptions. No track() calls needed for any of it.
Connect your editor with smolanalytics connect, then type /instrument-my-app. Your agent calls propose_instrumentation, which reads the repo and hands back the exact track() calls for signup, activate, and checkout with file, line, and properties. The agent applies them, guided by us. We never touch your code, your agent does.
verify_instrumentation cross-references the code and live traffic and returns FIRING, WIRED (in the code, just run the flow), or MISSING per event. No guessing, no waiting a day. PostHog's wizard sets you up once; this proves it worked in seconds.
The tracking plan is committed to your repo and checked in CI, so the build fails the day a tracked event stops firing. And the CI agreement test proves the AI's numbers always equal the dashboard. Your instrumentation gets written for you, and then it stays correct.
The two-command setup
With a coding agent, it is two commands and then it does the work:
# 1. wire your editor to this project's MCP server smolanalytics connect claude-code # 2. let it instrument the app /instrument-my-app # → reads your repo, writes the track() calls, declares the plan, # and proves each event fires before it's done
No coding agent? Run smolanalytics instrument for a one-command setup that installs autocapture and shows you the exact track() calls to add. Or skip code entirely and define events from clicks you already captured, right in the dashboard.
Why this beats the rest
Everyone else makes you instrument by hand, or can't keep it correct:
smolanalytics is the only one where the AI writes the instrumentation for you and a CI gate proves it stays correct and autocapture fills in everything else.