Analytics event review belongs in the merge checklist as a required gate, because a feature can work perfectly while losing the data needed to judge it. Compare the pull request against a written tracking plan before merge, let automated checks do the mechanical part, and have a named reviewer approve the result. After launch, fixing the tracking call cannot recover the events that never fired.
Tracking regressions are a pull request problem
When a pull request merges, its feature code and its tracking code ship together. The usual review covers logic, style and test coverage, and rarely names tracking as a separate check. A reviewer can confirm the feature works without confirming anyone will be able to measure what it does, so broken tracking reaches production in the same release.
Once that release ships, missing or misfiring events leave holes in the record, and renamed events break the queries that expect the old name. A later repair cannot fill a window that was never recorded. At GetJenny and then at LeadDesk, where two of Skene's founders worked before, growth teams often learned whether an experiment had worked only at the quarterly review. Before merge is the one point where the feature diff and the tracking diff can be read together.
Coding agents make the gate more useful
Coding agents raise the volume of changes arriving at that point, and larger pull requests get less careful review. A review routine built for a slower, smaller flow of changes gives tracking no explicit place, and more code passing through raises the value of checking what is attached to it.
Writing tracking code and judging it against an experiment's needs are different jobs. An agent writing a pull request usually cannot see the growth team's tracking plan, which lives outside the codebase. More generated events do not mean more correct events. A check that runs from outside the change closes that gap without treating the agent as the problem.
Product features built on agents add a smaller complication. They can generate activity in the same event stream as human users, so the checklist should say how agent-triggered events are labelled and filtered. Otherwise an active-user count becomes a count of users plus their assistants.
Three failures a pull request can introduce
Duplicate events appear when listeners attach to elements that re-render, or when client and server code both track the same action. They inflate counts and corrupt rate metrics. Missing events happen when validation rejects a malformed payload without an application error, so the feature works and the measurement does not. Schema drift happens when an event is renamed, a required property disappears or a naming convention changes, and existing queries can no longer find the data.
Each needs its own review question. A presence check will not catch duplication, and a correctly spelled name will not rescue a rejected payload. All three can pass without a test failure or a deployment alert, and the pull request is where they are still a readable diff.
Naming is easy to treat as housekeeping. But button_click, ButtonClicked and clicked_button produce three separate events for one action in most analytics tools. The reviewer has to check the event's name, its payload and when it fires.
A tracking plan gives the review something to compare against
Without a written plan, reviewers have to infer the intended measurement from the implementation, which means the code is grading itself. A complete experiment spec names one primary metric, a baseline, an observation period and a data source with a dashboard or query link. It states the smallest lift worth acting on, and it names the new events, such as pricing_variant_b_viewed.
A common way to organise the metrics is four groups: primary, secondary, guardrail and data quality. Primary is the main sign of success and secondary tracks the behaviour that supports it. Guardrails are metrics that must not decline, and data-quality indicators such as sample ratio mismatch test whether the measurement itself is reliable. An activation experiment with D30 retention as a guardrail needs the retention events in place before launch.
The plan can be written by hand or drafted by a tool. Skene drafts it from the experiment you describe, with the audience, target, window and required events, then reads your code and marks the events it does not send yet. Snowplow takes another approach and creates its data structures as part of each event specification. Either way, the reviewer can compare the code with named events, required properties and firing conditions.
Six checks for the merge checklist
The first check is event presence. Every event the plan requires for this change appears in the diff, and a missing required event blocks the merge. Skip it and the experiment launches without the data its primary metric needs.
The second is event naming. The code matches the plan exactly, including case and delimiter convention. Skip it and a renamed event becomes a new event in the analytics tool while queries keep looking for the old one.
The third is required properties. Each event carries the properties the spec requires. Skip it and any query that filters or groups on the missing property returns wrong numbers.
The fourth is the firing condition. The surrounding code fires the event when the spec says, on form submit rather than page load, or on first view rather than every render. Skip it and a correctly named event measures the wrong behaviour.
The fifth is duplication risk. Look for new listeners on elements that re-render, and for server-side tracking without a deduplication key when the action is already tracked client-side. Skip it and one action is counted twice without anything visibly breaking.
The sixth is removed or renamed events. Establish whether an active experiment, dashboard or query depends on the old name. Skip it and a local code change cuts a measurement dependency somewhere else. This is the check a code review integration can run automatically on every pull request, including agent-written ones.
Approval needs a named owner. A growth analyst, analytics engineer or growth engineer should approve the tracking section, rather than the feature author reviewing their own tracking. An asynchronous review by that owner costs less than rerunning an experiment on broken data. Tools can help with the checks, such as PostHog's MCP server, which gives coding agents access to live event definitions from the editor. Someone still has to judge whether the implementation does what the experiment needs.
Keeping the gate fast
A hard gate does mean waiting for a review. That wait does not have to be detective work. Automation can draft the check, a named owner can approve it, and the checklist can live in the pull request template so it runs on every merge.
The mechanical part is listing the events already in the code, comparing the diff with the plan, and posting the gaps as a comment. With pull-request reviews on, the Skene GitHub App flags tracking a diff removes or breaks and requests changes on the exact lines. A one-line fix arrives as a GitHub suggestion. Anything larger comes as a prompt you can paste into a coding agent, naming the file, the line and the event. People keep the judgement: reviewing and approving the fix.
When the tracking plan generates typed functions instead of raw JSON objects, property mismatches fail at compile time, before review. Snowplow's Snowtype works this way. The reviewer then has fewer mechanical errors to find, though a type check still cannot say whether an event fires at the right moment.
A team that must name events before merge cannot leave a spec at "track engagement" and expect engineering to fill in the meaning. Setting that rule early exposes gaps in experiment specs before engineering starts writing code.
Rerunning an experiment after finding broken tracking costs weeks, and decisions made on bad data cost more. A gate cannot promise zero delay. Review latency can be managed with automation and ownership, while an unrecorded window cannot be recovered.
Compare the result with the target the gate protected
The retrospective checks what happened against the original hypothesis and the smallest lift worth acting on, and records whether the result landed above or below it. Keep the hypothesis, metric, observation period, owner and lessons in one record rather than spread across a launch spec and a later thread.
That comparison also separates a disappointing experiment from a broken measurement. A sample ratio mismatch, or a primary metric that moved while its guardrails went unmeasured, points to a tracking problem rather than a product one. A statistically clear result with a business effect too small to matter is a third case, and the retrospective should name it as such.
Skene compares the result with the target set in the plan, using the same plan the tracking review checked against, and shows where each input came from. A result above or below target is evidence for the next decision, not proof that the release caused the change. Analytics tracking coverage in pull requests goes further into treating the tracking plan as a versioned contract.
Continue with Skene
How Skene works
Skene reads the event writes in your code and checks them against your Supabase schema on every PR.
What 14 teams trust in product data
Founders, product leaders and engineers on when they trust a number, when they ask a person, and what a missing event cost them.
Pricing
Skene OSS is free, and your first experiment in Skene Cloud is free. Team is $199 a month and Scale $499; Enterprise is quoted.