Tracking plan

Writes the plan that engineers build from and analysts can trust. It starts from the questions the team needs answered each month, names every event and property so GA4 accepts and reports it, marks only the outcomes the business pays for as key events, says how an anonymous visitor becomes a known user and an account, and gives each event a test that must pass before anyone reports on it. The result is one event dictionary with a question, a trigger, an owner and a status on every row, not a list of everything that could be tracked.

Any agentBy SlateMIT licencev1.0.0

Add it to your agent

npx skills add slatehq-repo/marketing-skills --skill tracking-plan

Works in Claude Code, Cursor, Codex and other agents that read skills. Or copy the skill into your agent's skills folder (for Claude Code, .claude/skills/tracking-plan/).

DownloadView on GitHub

When to use

  • "Write a tracking plan", "what should we track", "set up GA4 properly", "define our key events", "event taxonomy", "our signup numbers don't match", "we're launching a new signup or checkout flow".
  • A new site or product, a redesign, a move to a new tag manager or analytics tool, or a team that has stopped trusting its numbers.
  • Not for UTM naming rules and a link builder: use utm-governance.
  • Not for reading where people drop once tracking works: use funnel-analysis.
  • Not for crediting channels with signups and deals: use attribution-analysis.

What you need

Required:

  • The business model and the conversion that matters: signup, demo request, trial start, purchase, activation. Plus the main product steps after signup.
  • The stack: GA4 property and streams (web, app), tag manager, product analytics if any, the CRM, the consent banner.

Ask for, or assume and state:

  • The questions: 5–10 things the team asks every month. If missing, draft them from the business model ("which channels bring signups that activate?") and confirm.
  • What exists today: a GA4 export of event names with 28-day counts, or the tag manager container. Default: assume a partial setup and audit before adding anything.
  • Domains: are the marketing site and the app on the same domain? This decides how identity and campaign data carry across.
  • Regions: where opt-in consent applies (EU, UK and others).

Data and tools

  • In Slate: Pages and site analytics lists the GA4 key events already synced and counts them by the landing page of each session, so you can see which conversions fire and where before changing anything. Brand Kit gives products and calls to action, which become candidate conversions.
  • With the Slate MCP server: query_pages with view: "list" names the synced key events in its output and gives per-page counts (sort with sort: {field: "key_events.<event_name>", direction: "desc"}). get_brand_context returns products and CTAs. Neither lists every GA4 event or parameter: use a GA4 export for the audit.
  • Without Slate: GA4 Admin (events, key events, custom definitions), DebugView, the Realtime report and the tag manager's preview mode. An exploration with event name and event count for 28 days covers the audit.

Procedure

  1. Start from questions. Write each question with the decision it drives ("move budget from paid social to search", "fix onboarding step 3"). An event that serves no question is cut. Ten questions usually need 15–30 events, not 100.
  2. Audit what exists. List current events with 28-day counts. Flag duplicates (the same form tracked by Enhanced Measurement and by the tag manager), near-duplicate names (Sign_Up and sign_up are two events), events with zero count, events firing more often than possible (three signups per user means it fires on page load), and personal data in parameters or URLs (emails, names, phone numbers).
  3. Name events. Use a GA4 recommended name when one fits (sign_up, login, generate_lead, begin_checkout, purchase): GA4 fills its own reports from them. Otherwise object then action, lowercase, underscores, one tense: demo_requested, trial_started, invite_sent. Put context in parameters, not names: sign_up with method: google, never sign_up_google. Check every name against the limits in references/ga4-rules-and-starter-events.md (length, characters, reserved names).
  4. Define parameters. For each: name, type, allowed values, example. Register as custom dimensions only the ones someone will filter or break down by; GA4 caps how many you can register and registration only applies from that day forward. Keep IDs, free text and full URLs out of dimensions: too many distinct values and reports fold them into "(other)".
  5. Choose key events. Mark only outcomes worth money: usually 2–5 (signup, demo request, trial start, purchase, perhaps activation). Pricing-page views and scroll depth stay plain events. Set counting: once per session for leads, so a double submit counts once; every event for purchases. GA4 key events and Google Ads conversions are separate settings: import into Ads only what bidding should optimise for.
  6. Fire on confirmed success. Trigger after the server confirms (signup succeeded, payment captured), never on the button click. A thank-you page trigger needs a guard against reloads and direct visits. Send each event from one place: if the backend already sends sign_up, the browser must not also send it.
  7. Plan identity. At signup or login, set a user ID from your own system (never an email). For B2B, send account ID, plan and role as user properties. If the app lives on another domain, set up cross-domain measurement and list login and payment hosts (OAuth, checkout) as unwanted referrals, or they become the "source" of your signups.
  8. Plan campaign capture. On the first visit, store the UTM parameters, ad click IDs (gclid, fbclid, li_fat_id) and the outside referrer twice in first-party storage: the first touch, written once and never replaced, and the latest touch, updated on each new campaign visit. Send both with the signup to the CRM. When the app is on another domain, pass them in the signup link, and refresh the link when it is clicked so a visitor who clicks within seconds of landing still carries them. Store only with analytics or advertising consent and delete on withdrawal; expect some signups with no known first touch and report them as their own group.
  9. Handle consent and noise. Consent mode for opt-in regions, no personal data in any event, an internal-traffic filter (GA4 creates it in testing mode: activate it), and a separate stream or filter for staging and developers.
  10. Write a test for every event. What to do, what must appear (event, parameters, values) in DebugView or the tag preview, and a reconciliation: GA4 signups for 7 days against signups in the database for the same days. GA4 usually counts fewer because of consent and blockers; a gap far larger than the consent decline rate, or GA4 counting more, is a bug. Read reports only after 24–48 hours.
  11. Set the rules for change. One owner for the dictionary. New events go into the dictionary before code. Never rename a live event (history splits); add the new one, run both for a period, then mark the old one deprecated.

Output

One document plus the dictionary as a sheet.

## Tracking plan: <site / product>, <date>, owner <name>

### Questions this plan answers
| # | Question | Decision it drives | Events used |

### Event dictionary
| Event | Question # | Trigger (exact) | Parameters | Key event (counting) | Sent from | Owner | Status | Tested on |

### Parameters
| Parameter | Type | Allowed values / example | Scope (event / user) | Custom dimension? |

### Identity and campaign capture
User ID source, user properties, cross-domain setup, unwanted referrals, first and latest touch storage, what reaches the CRM.

### Consent and filters
### Audit findings (current setup)
| Issue | Event / tag | Impact | Fix |

### Test checklist
| Event | Steps | Expected in DebugView | Reconciles with | Result |

Status values: live, planned, deprecated.

Quality checks

  • Every event answers a listed question; nothing is tracked "just in case".
  • Every name passes the GA4 limits and the naming rule; no two names differ only by case.
  • Key events are outcomes, 2–5 of them, each with a counting rule.
  • Every conversion fires on confirmed success and has exactly one sender.
  • No personal data in any event name, parameter, URL or user ID.
  • First touch is written once and never overwritten; latest touch is stored separately; both reach the CRM.
  • Every event has a test and a reconciliation against a backend count.

Common mistakes

  • Tracking everything. Hundreds of events nobody reads hide the six that matter. Start from questions.
  • Firing on click. Button clicks count failed submissions and double clicks. Fire on success.
  • Two senders. Browser and server both sending purchase doubles revenue. Pick one.
  • Context in names. signup_google, signup_email, signup_sso make three events to add up. Use one event and a parameter.
  • Renaming live events. History breaks at the rename. Deprecate and replace.
  • Losing the first touch. Overwriting the stored source on every visit, or not passing it to a different app domain, leaves every signup looking like "direct".
  • Trusting it on day one. Untested tags produce confident wrong numbers. Test, reconcile, then report.

Reference files

The skill loads these when it needs them. They install with it.

Run these skills on live data in Slate

Slate brings keyword data, Search Console, GA4 and how ChatGPT, Perplexity and Google AI answer about your brand into one workspace, so every skill runs on real numbers.