Most teams that p-hack are not cheating. They are answering a question nobody asked out loud before the release shipped. When the success criteria were never written down, every metric that moved looks like the one you meant to watch.
P-hacking is the name for picking the analysis after you have seen the data: checking results daily and stopping when they look good, slicing the audience until a segment wins, or swapping the primary metric for one that moved. Each choice can feel reasonable in the moment. Together they turn noise into a win that goes into the growth review.
Key takeaways
- P-hacking lives in the gap between a release plan and its evidence. If the plan was never written, the story gets chosen after the data arrives.
- The fix is a process, not a statistics lecture. Write down the primary metric, the audience and the target before the code ships.
- Missing or broken tracking forces the same failure. A team that cannot measure the metric it planned measures one it can find.
- A plan written before launch has to name the events that must fire, so the evidence can be checked before anyone reads a result.
The story gets picked after the data arrives
Say a team ships a new onboarding step. The goal in the kickoff was "better activation". Two weeks later, activation is flat. Time on the settings page is up, though, and teams on paid plans invited more teammates. The release review writes it up as a win for engaged accounts.
Nobody lied. The goal was vague enough that several results could fit it, and the one that fit best was chosen once the numbers were in. That is post-hoc metric selection, and peeking is its cousin: the decision of when to stop looking was also left open, so it was made by whoever saw a good day first.
The weak point is the system, not the person reading the dashboard. If the release plan never said which metric decides the question, for which audience, over which measurement window, the team has no record to hold the result against. The pressure of a disappointing launch fills that space.
Write the measurement plan before the code ships
You do not need a course in hypothesis testing to stop most of this. You need a short document, written before the pull request merges, that states four things:
- The primary metric. One number that decides whether the release did what it was for, with the formula that computes it.
- The audience. Who the change is for, so the result is read on that group and not on whichever segment looks best later.
- The target and the window. For example, 40% of invited teammates active within 14 days. The window says when to read the result, which takes the daily peek off the table.
- The events that must fire. The tracking the formula depends on, named before launch, so engineering knows what has to ship with the feature.
Secondary metrics are fine. They belong in the plan too, labelled as secondary, so a good number there cannot be promoted to the headline after the fact.
Broken tracking forces the same mistake
There is a second route to the same outcome, and it has nothing to do with intent. A team plans to measure activation through an invite_accepted event. A refactor renames it, or a coding agent removes the call while rewriting the invite flow. The feature still works and every test passes. Two weeks later the event the plan depended on has no data.
Now the team has a choice. Admit the release cannot be measured, or measure something that did get recorded. Most pick the second, because a launch with no result feels like a launch that failed. The substitute metric was chosen after seeing what data exists, which is structurally the same as p-hacking, even though nobody went looking for a better number.
This is why the events belong in the plan. A renamed event or a removed event caught in review is a fix to the pull request. Found after launch, it is missing history, and analytics is not retroactive.
A written plan holds up under a disappointing result
The value of the plan shows up on the bad day. When the primary metric is flat, the plan is the record that says flat is the answer to the question you asked. Teams can still learn from secondary signals, but they read them as leads for the next release, not as the verdict on this one.
Keep two distinctions in view while you read the result. Tracking found in code is not the same as events received. And a measured change against the target is evidence, not proof that the release caused it. The plan does not make the decision for you. It makes sure the decision is made against the question you set before launch.
How Skene Releases closes the gap
Skene sits between the intent of a release and the code and analytics evidence that should confirm or deny it. Releases is built around the order this post argues for.
Before launch, you describe the change and its goal. Skene drafts the measurement plan with the audience, target, reporting window and the events the goal needs, and your team reviews it. Skene compares the plan with your code and marks the events it does not send yet, so the missing tracking becomes a change engineering can review in the same pull request as the feature. With pull-request reviews on, the Skene GitHub App checks each diff for removed or broken tracking before it merges.
After the window closes, Skene checks the result against the target and formula in the plan, not against whatever moved. If the result points somewhere else, the next version of the plan starts from there, and the previous hypothesis and its results stay on record.
See how it works, or read Analytics is not retroactive for more on catching tracking changes before merge.
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.