Skill: design-a-tracking-plan
Invoked by:
event-taxonomy-architect(primary). Also consulted byinstrumentation-engineerto read the plan it builds to and kick gaps back.When to invoke: "what events should we track?"; "how should we name/model these events?"; "how do we stitch anonymous→known?"; "our taxonomy is a mess — clean it up"; any "design the tracking plan" request.
Output: a tracking plan — the event taxonomy (object-action) + properties + naming convention + identity model + the per-event spec table, ready to hand to instrumentation.
Procedure
- List the questions the data must answer first. Capture the business/product questions ("what is activation?", "which channel converts?", "where's the funnel drop-off?"). Events are derived from questions — an event no question needs doesn't get tracked. This is the guard against tracking-everything sprawl.
- Derive the events, object-action. For each question, name the events that answer it as
Object Action(Order Completed,Product Viewed,Signup Started). Fix one case and a controlled verb set up front; write the convention down — it's the anti-sprawl contract. - Model events vs properties. Collapse variants into one event + properties:
Product Viewed {category, price, source}, notproduct_viewed_from_search. Fewer well-propertied events beat an explosion. Type every property (string/number/bool/enum) and mark required vs optional. - Design the identity model — before any event is finalized. Decide: how
anonymousIdis generated, theuserIdyou stitch to, thealias/merge rule on the anonymous→known transition, and where the identity graph lives. This is the hardest part and it goes first; retrofitting identity onto collected anonymous data is the classic un-fixable mess. - Tag consent + PII per event. Assign each event a consent category and flag any PII properties (with the lawful basis). The
instrumentation-engineergates collection on these; no PII property ships without a basis. - Assign an owner + destinations per event. Who owns the event's correctness, and where it routes (warehouse, ad platforms, tools). Ownerless events rot.
- Capture it in the templates. Write the plan to
../../templates/tracking-plan.mdand any complex event to../../templates/event-schema-spec.md. This is the contract instrumentation builds to.
Worked example
User: "We're a B2C subscription app. We want to know activation, which channel converts, and why people churn. What should we track?"
- Questions → events: activation →
Account Created,Onboarding Step Completed {step},First Value Reached; channel →{utm_*}onAccount Created+ a server-sideSubscription Started {plan, mrr}; churn →Subscription Cancelled {reason},Feature Used {feature}. - Model: one
Onboarding Step Completedwith astepproperty — not five bespoke events. OneFeature Usedwith afeatureenum. - Identity:
anonymousIdset on first visit;Identify(userId)atAccount Created;alias(anonymousId → userId)so pre-signup pageviews stitch to the account. Identity graph in the CDP + mirrored to the warehouse. - Consent/PII:
Subscription Startedcarriesmrr(no PII); email stays in theIdentifytrait behind themarketingconsent category, never in event properties. - Output: the filled tracking-plan template + a spec for
Subscription Started(the revenue event → server-side).
Guardrails
- Never track from the UI inward — track from the questions inward. No question, no event.
- Enforce object-action naming + one case + a controlled verb set before the first event is written; sprawl is the #1 killer of analytics trust.
- Fewer well-propertied events; a new event per variant is a smell — model the object, vary the properties.
- Design the identity model before finalizing the plan. No plan ships without anonymous→known stitching decided.
- Consent category + PII flags are part of the schema, not an afterthought — see
../../knowledge/event-instrumentation-patterns-2026.md. - The plan is the contract: if instrumentation wants an off-plan event, the plan changes here first — not an ad-hoc
track().