Analytics tracking coverage belongs in pull requests, because a working feature can still break the data needed to judge it. A missing event raises no error while deployments carry on. In the pull request, a team can compare the code with a versioned tracking plan and require a fix before any data is lost.
Why analytics regressions surface too late
A growth analyst reaches the retrospective, opens the dashboard, and finds that the data needed to judge the experiment does not exist. The application shipped normally, but somewhere in the changes since launch an event disappeared or picked up a different name. By then the window is closed, and the missing data is gone for good.
Other failures are harder to spot because the dashboard still has numbers. Frontend and backend code can count the same action twice, and retried requests can inflate activity and conversion. Identity split across anonymous sessions and signed-in devices can distort funnels and retention. A populated chart can be a confident drawing of the wrong thing.
Unlike a broken API or a failing test, a missing event produces no failure signal anywhere in the development pipeline. Data that was never collected stays missing after the code is fixed, which is why this needs enforcing before merge as well as maintaining on the dashboard.
How tracking ended up outside the review process
Tracking code often grows outside the process that governs the feature itself, a pattern known as instrumentation drift. Three engineers each add a "signup" event with slightly different names and payloads, and six months later nobody trusts the funnel. Each addition looked reasonable alone. The conflict appears when someone treats them as one account of what users did.
The ambiguity spreads into the code. Data models get tied to UI implementations, so engineers lose confidence about whether an event is safe to rename or reuse. Retrospective time meant for reading results goes on arguing what the events mean. Changes to clients, SDKs and pipelines can shift the answer, including changes from coding agents that add, rename or delete tracking calls.
Installing an analytics library does not fix this. For example, a team can ship with the SDK installed and zero events defined, and still have no idea where users activate or drop off. An experiment that cannot be measured teaches nothing, so the fix has to govern what events mean and when they belong in the product, not just whether a library is present.
Treat the tracking plan as a versioned contract
A tracking plan becomes something you can enforce when the event taxonomy lives in version control and changes to it need review. A wiki page that anyone can edit without review cannot do that. As with a public API, a move from v1 to v2 documents what changed, so engineers know which names they may alter and which changes break something downstream.
The plan itself can be a pull request. For example, a team adds its plan for signup, upload, export and the other funnel steps as a file in the repository, and the definitions are reviewed alongside the code that implements them. Reviewers then share one reference instead of inferring intent from individual tracking calls. A tracking-focused pull request can go further and carry the event contract, the rollout conditions, and the before-and-after definitions of the reports that read the events, so the review covers both what the product emits and how the results will be read.
The contract needs an owner as well as a home. Mature growth teams often give the plan to a senior growth engineer, with a quarterly review and ad hoc pull requests for new events. One owner routes each new event through the contract before another near-duplicate "signup" ships. Drafting can be assisted: Skene drafts the tracking plan a growth experiment needs and lists the events your code does not send yet, and your team reviews the draft before it changes anything.
What a tracking-aware review checks
The reviewer first checks whether changed product behaviour has a matching event. A new user action can work as intended and leave no trace in the experiment's data. Acceptance criteria close the gap, for example "all five funnel events fire from the store actions with a consistent schema". With a requirement like that, "analytics installed" stops standing in for "the funnel is tracked".
A pull request that renames a function, component or store action may also rename or remove the event it sends, leaving the analytics tool waiting for an event that no longer arrives. The code stays consistent with itself while the dashboards go flat. If the agreed event name changes, the contract should show it, instead of a refactor rewriting the event vocabulary by accident.
Frontend and backend code may both count the same outcome, and retries may send it again. Check that idempotency keys stop those duplicates from inflating the metric. Identity needs its own check: anonymous and signed-in sessions must stay linked for funnel and retention analysis.
Payload and firing condition complete the review. Properties such as user_id, timestamp and session_id should follow the agreed schema rather than being patched after release. An event called file_shared should fire only after the application confirms the share succeeded. Counting the click instead answers a different question, and no later correction can separate outcomes the original event never distinguished.
Coding agents make unreviewed tracking changes more likely
Coding agents make this review harder, because their work on a feature can also change tracking. The changed calls are in the diff, but their significance is easy to miss unless someone is looking for them. cubic's State of AI coding 2026 found the median pull request in its dataset grew from 56 to 124 changed lines between June 2025 and May 2026. Reviewers have more code to read and no more information about what it does to tracking.
An agent-written pull request also needs a record of what the agent was allowed to touch and what it actually touched: the tools it had, the actions it took, and what it validated. Those records help a reviewer reconstruct tracking changes. Without them, a plausible-looking patch asks for more trust than the review can justify.
Agents can also supply the missing information. Analytics and experiment tools increasingly expose their data over MCP, so an agent can look up the live event definitions and past experiment results before it opens a pull request, and check its tracking changes against them.
Code coverage is the wrong measure
GitHub's code coverage on pull requests, in public preview since May 2026, shows reviewers one aggregate coverage percentage, uploaded as a Cobertura report from existing CI. Codecov turns coverage reports into pull request comments and annotations, and can block a merge when coverage drops below a threshold.
Both answer whether a line ran during tests. For analytics the question is whether the right event was sent, with the right schema, under the right conditions. A covered line can still send the wrong event. That is the gap an experiment-aware check addresses. With pull-request reviews on, the Skene GitHub App checks each diff for removed or broken tracking and requests changes on the exact lines before merge. It sits in front of your analytics and warehouse tools rather than replacing them.
Make the pull request the enforcement point
A reviewer who remembers to look at analytics helps, but memory is not a merge gate. The pull request needs explicit acceptance criteria, a reviewable tracking diff, and something that can stop the merge when tracking regresses. Acceptance criteria can reach beyond event presence, for example to excluding private data from payloads and unit-testing the shape of what the emitter sends.
The versioned contract makes the decision readable. Instead of only changed code, the reviewer sees an event renamed, a property removed, or a new event with no plan entry. A coverage gate blocks on a percentage. A tracking gate blocks when the plan's requirements are no longer met.
A Microsoft study of code review found that the more files a change touched, the lower the share of review comments its author found useful. Tracking buried in a large pull request gets exactly that loss of attention. The practical setup is a tracking plan in Git, a quarterly review of it, ad hoc pull requests for new events, and a tracking check in the acceptance criteria of every pull request that touches a component which sends events. Fail CI builds on analytics tracking gaps describes how to roll that check out without blocking every pull request on day one.
When Skene finds an event the plan needs but the code does not send, it writes the gap up as a brief for a coding agent, naming where the call goes and which properties it sends, and an engineer reviews the fix before it merges. After launch, Skene compares the result with the target set beforehand, reading received events from PostHog or Mixpanel and rows from Supabase separately from what it found in the code. The analyst still decides what the experiment means, but the data is there to decide with.
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.