launch-analytics
Installation
SKILL.md
launch-analytics
The rule: any project with a domain gets all three before you announce it —
- Google Analytics 4 (traffic / conversions) — this skill
- Microsoft Clarity (session replay + heatmaps, free) — this skill
- Google Search Console (index coverage, queries) — see
launch-seo§6, not duplicated here
Skip for CLI/library-only projects with no hosted site. If it has a domain people load in a browser, it needs all three.
Do NOT hardcode tags into an app shell
The single most common mistake: pasting the GA4 gtag.js / Clarity <script> snippet into index.html of the web app.
- MV3 browser extensions block external
<script>tags via CSP — the tags silently never run. Clarity (external-script-only) cannot run inside an extension context at all; it's web-page-only. - If the app already tracks via a bundled library (posthog-js, a GA wrapper), a second
<script>loader double-fires every pageview and corrupts the numbers.
Instead: inject the snippets server-side into the rendered landing/marketing page, gated on env vars, and let the app bundle handle in-app events. One loader per page, config-driven, never hardcoded.