Skip to main content
Engineering/observability-planExperimentalUpdated

Observability Plan

Plan or audit the product analytics events a site or app emits: names, properties, sinks, consent and the tests that keep them honest. Use when you cannot answer how users move through the product, events are untrusted, or a new app needs its tracking plan.

Use this when you need to decide, or check, which user events a product sends, what each is called, what it carries, where it lands and whether consent and privacy hold. A PM, engineer or founder walks away with an event inventory, a target taxonomy, the custom dimensions to register and a prioritized implementation checklist, each item with the test that proves it. It answers "can we see what users do?", not "is the system healthy?": logs, traces, uptime and SLOs are /instrumentation-plan.

Related skills: Feeds /funnel-analysis, which quantifies the journeys this plan makes computable, and /metrics-dashboard, which decides what to show whom. Takes its North Star event from /north-star-metric. Hands AI-feature telemetry to /llm-observability-plan and security baselines to /telemetry-readiness-audit. Used by /new-app for a new app's GA4 events.

You provide

  • {{product}}: what it does, who uses it and the primary use cases, in a sentence or two.
  • {{codebase}}: a repo path or URL. Reading the tracking code beats any description of it.
  • {{journeys}}: the 3-5 paths that matter most (land, search, book a call; sign up, first value).
  • {{goals}}: what success looks like (activation, retention, bookings), ideally the North Star.
  • {{analytics_stack}}: tools in use (GA4, Vercel Web Analytics, a first-party events table, PostHog, Amplitude).
  • {{known_gaps}} (optional): questions about user behaviour nobody can answer today.
  • {{constraints}} (optional): consent, privacy or regulatory limits, and who the audience is (EEA visitors change the consent defaults).

Process

Step 1: Confirm the inputs and audit what exists

Ask for anything in You provide that is missing; work with what you have and flag gaps as assumptions. Then audit before designing anything. On a live codebase, inspect in this order and skip the rest:

  1. The single send function and event registry. On k8mak.com that is site/lib/analytics.ts: the EVENTS map and trackEvent(), which sends to Vercel Web Analytics (track), GA4 (window.gtag) and the first-party /api/app-events/ sink (Supabase app_events).
  2. The root layout's tag setup (site/app/layout.tsx): measurement id, send_page_view, and the gtag('consent','default',...) call.
  3. Declared funnels and North Star events. On k8mak.com, each app's funnel: and nsmEvent: frontmatter in site/content/apps/*.md.
  4. Call sites: grep -rn "trackEvent(" site/app site/components site/lib, counted per event.
  5. What the provider actually receives. cd site && npm run ga4:dimensions -- --list lists the custom dimensions registered on the GA4 property (it reads GA4_PROPERTY_ID and the service account from .env.local; without --list it creates the missing ones, so ask before running it bare).

Skip vendor dashboards' marketing pages, autocapture noise and anything that is not a named event. Fill section 1 of reference/plan-template.md.

Step 2: Prove the pipe and the firing moment

For each sink, confirm one test event sent from production is visible at the provider within minutes (M4). For each event, read the call site and confirm it fires at the moment its name claims: a completion on completion, a search on commit rather than on every keystroke. Check that preview, localhost and owner traffic are excluded at write time (M5); on k8mak.com, sinkAppEvent() drops dev hosts and tags the owner browser (?me=1) with is_owner. Record every mismatch as a fix in section 2.1.

Step 3: Define the target event taxonomy

Default to snake_case object_action with past tense for completions (M13). Where a GA4 recommended event fits (sign_up, login, generate_lead, share, search, select_content, purchase), use its name and parameters. On a live site keep the existing convention: renaming live events breaks every trend across the rename for no analytical gain. Every event answers who did what, where, when and with what context, and connects to a question someone will ask. Decide the convention before the first event, and version the taxonomy: when an event's firing rule changes, rename it or bump a schema_version with a dated note, so trends do not silently span two definitions (M13). Fill sections 2.2 and 2.3 of the template.

Hold every event to the GA4 collection limits: event and parameter names up to 40 characters, up to 25 parameters per event, parameter values up to 100 characters, user property names up to 24 and values up to 36.

Step 4: Choose properties, cardinality and custom dimensions

Keep properties to enums and small integers. GA4 reports can only break down by parameters registered as custom dimensions, and a standard property allows 50 event-scoped, 25 user-scoped and 10 item-scoped (360: 125, 100 and 25). Rank parameters by how often they are sent and register the low-cardinality ones first; leave ids and free text unregistered. Register early: on k8mak.com, site/scripts/ga4-custom-dimensions.ts records that parameters sent before a dimension existed stay unreportable. Fill section 2.4.

Step 5: Map the journeys to events

For each of {{journeys}}, name the event that marks each step, the success criterion and the branch points where users take another path, and whether those paths are tracked. Users do not follow linear paths; track where they diverge. Do not set expected drop-off rates here: the first reading is the baseline, and quantifying it is /funnel-analysis. On k8mak.com, a journey becomes computable by declaring it in the app's funnel: frontmatter, and lib/__tests__/apps-funnels.test.ts (in npm run test:analytics) fails if a declared step names an event nothing fires. Fill section 3.

Step 6: Task completion, timing, adoption and retention signals

Pair start and end events for each core task, with a success criterion and a time target (time to first value, time on task, time between sessions). Then define adoption and retention signals: adoption rate, activation rate, breadth and depth of use, retention and stickiness, segmented by acquisition cohort. For a seasonal or weekly-episode product, count retention in episodes and seasons, not days (M15). Fill sections 4 and 5. Page speed as users feel it (Core Web Vitals) belongs in /instrumentation-plan.

If the product feeds security or anomaly detection, add the optional behavioural baseline events (access frequency, session duration, export volume, geographic consistency, feature access) and hand them to /telemetry-readiness-audit.

Step 7: Experiment instrumentation (only if tests are planned)

Log assignment and exposure as events with experiment name and variant, and name primary, secondary and guardrail metrics before launch. Run the sample-size math before proposing any test (M6); at low traffic the answer is usually a before/after read, and the test design itself is /ab-test-planner. Fill section 6.

Step 8: Consent and privacy

List every tracker, the id it sets and the exemption it relies on (M12). Record the Consent Mode v2 default for each of ad_storage, analytics_storage, ad_user_data and ad_personalization; Google sets none by default. State basic or advanced mode: in basic mode tags are blocked until consent; in advanced mode they load and send cookieless pings while consent is denied. Grep payloads for email, names and free text, and require an allow-list sanitizer with a test. On k8mak.com, apps-funnels.test.ts already bans raw income, freeform text and email from four apps' events. Not legal advice. Fill section 8.

Step 9: Compile, prioritize and review

Compile reference/plan-template.md with the short version first. Order the checklist P0 to P2, each item naming the file it touches and the test that proves it. The done line is the first dated North Star reading, written into the strategy index within two weeks of launch (M8). Then ask the user:

  • Does the taxonomy answer the questions you need about user behaviour?
  • Are the journeys measured at the right steps, too coarse or too fine?
  • Are the task-completion targets realistic?
  • Is the checklist in the right order for your priorities?
  • Do privacy or compliance constraints change what can be tracked?
  • Do you need experiment instrumentation now, or later?

Adjust, then present the plan as formatted text in the conversation.

Output contract

  • The audit names every sink and says whether it is verified at the provider, with evidence (file:line, query or screen).
  • Every event in the target taxonomy has a trigger moment, properties, sink and priority, and meets the GA4 name, parameter and value limits.
  • No event carries an email, name, free text or other personal data; the sanitizer or test that enforces it is named.
  • The custom dimensions to register fit the property's scope limits, with the count shown (n of 50 event-scoped, n of 25 user-scoped).
  • Every journey step maps to a named event, and every step a funnel or North Star relies on is fired by real code.
  • Self, preview and dev traffic exclusion is stated, with how it is enforced.
  • Each consent type's default and the consent mode (basic or advanced) are stated.
  • Every checklist item has a priority, the file it touches and the test that proves it; the done line is a dated North Star reading.
  • Assumptions and unknowns are flagged with .
  • Prose follows knowledge/voice-tone-guide.md, with no em-dashes.

Ruled out

  • Never track an event nobody will look at. Every event connects to a question the team needs answered.
  • Never name events for machines (ob_s3_done), and never rename live events just to match a style.
  • Never put personal data in an event payload, and never treat cookieless as consent-free.
  • Never trust an event until one test event has been seen at the provider.
  • Never count people from client events when a product table can count them.
  • Never add privacy as a retrofit: consent and anonymization are designed with the first event.
  • Never present an estimate as measured; name the assumption.

Not covered

  • Logs, traces, uptime, SLOs, Core Web Vitals and alerting on system health: use /instrumentation-plan.
  • Quantifying drop-off between steps and diagnosing it: use /funnel-analysis.
  • What to show whom, on what cadence, and alert rules on product metrics: use /metrics-dashboard.
  • Choosing the North Star itself: use /north-star-metric.
  • Prompt quality, token cost and model drift for AI features: use /llm-observability-plan.
  • Designing and sizing an A/B test: use /ab-test-planner.
  • Organization-wide data ownership and retention policy: use /data-governance-playbook.

Example Output

  • assets/lost-explorer/experience-sweep-2026-10/04-observability-plan.md (2026-10-28): an audit-first run of this skill on guyswherearewe.com. It found Vercel Web Analytics mounted but disabled at the project, GA4 loaded but unverified, and no custom dimensions registered, then kept the live snake_case names rather than renaming 37 events.
  • examples.md is an illustration generated for the site, not a past run; use it for shape only.

Run this now

0/4000

Part of these Playbook topics

One tool, one hard lesson. Only when there is something worth sending.

Occasional emails. Unsubscribe any time.