Measurement
Counterfactual Baseline
A counterfactual baseline is an estimate of what a metric, such as clicks or revenue, would have done over a period if a change had not been made. It cannot be observed, so it is built from the metric’s own history, from comparable pages left unchanged, or from both, and it is stated as a range.
- Industry term
By QueryRev ResearchPublished Updated5 min read
Why it matters.
Every claim that a change worked compares two numbers, and one of them never happened. The counterfactual baseline is that number, made explicit: the CausalImpact package describes its job as predicting how the response metric would have evolved after the intervention if the intervention had never occurred[1].
It turns a result into incremental revenue. Revenue after a change minus the baseline is what the change added; without the baseline, the same revenue says only what search-attributed sales earned, which is a weaker claim.
It also protects the people who did the work. A change that lifted revenue in a falling market looks like a failure against last month and a success against its baseline; a change that rode a seasonal rise looks the other way round.
Analytics uses the same idea. Google Analytics describes its data-driven attribution as a counterfactual approach, comparing the key event probability of users exposed to an ad with that of similar users in a holdback group[2].
A baseline must say what it leaves out. QueryRev’s study computes its shares over the 6,294 sites it could read and reports the 3,679 it could not, 36.9% of the panel, by cause, instead of counting them as sites that block nothing[3]. A baseline built on incomplete data says so in the same way.
How it is measured.
From history: fit the metric over a long pre-period, with its trend and seasons, and project it over the window after the change. The CausalImpact method models local trends, seasonality and the influence of outside series in this way[4].
From controls: choose pages of the same kind that the change did not touch, and use how they move after the change to predict the changed pages. The controls must not be affected by the change themselves[1]. Where no single page is a fair comparison, several series can be combined by regression into one that tracks the changed page before the change, the synthetic control of the CausalImpact paper[4].
Test it before trusting it. A baseline that cannot predict the pre-period well will not predict the after-period either, and the CausalImpact documentation suggests checking how well the outcome can be predicted before the intervention begins[1].
Name its inputs beside it: the period it was fitted on, the comparison pages and the method, so that anyone can rebuild it. Write it as a range: its low and high ends carry the uncertainty into every figure built on it. How a forecast from your own last year serves as a baseline is set out in SEO forecasting: how to forecast traffic and revenue.
Measured by
- Fit on the pre-period
- Comparison pages
- Range of the estimate
A worked example.
Sample data: an invented site, to show the method.
A shop changes a product page after week six. For the four weeks that follow, a baseline is fitted on the page’s own twelve months of weekly revenue and on eight similar pages that were not changed, and fixed before the four weeks begin. It predicts $55,100 to $55,900 for the 28 days. The eight comparison pages share neither the product page’s template nor its internal links.
The page records $62,400 of known revenue. Against the baseline, the change added $6,500 to $7,300, a range as wide as the baseline is uncertain. Because the baseline was fixed first, the result could not shape it.
What to do, step by step.
Choose the method before the change: the metric’s history, unchanged comparison pages, or both.
Fit it on a pre-period long enough to hold the seasons.
Check that it predicts the pre-period well before using it.
Confirm that the comparison pages were not touched by the change, its templates or its internal links.
Note anything that could have reached the comparison pages during the window.
Fix the baseline, as a range, before the after-period starts.
Measure the actual against it, and keep the baseline and its method with the result.
Mistakes to avoid.
Using the period just before as the baseline. Last month is not what this month would have been. Trends and seasons move the metric whether or not anything changed.
Comparison pages the change reached. Pages that share the changed template, or gain links from the changed pages, move with them and shrink the measured effect.
A baseline from another season. Twelve weeks before a change made in November hold no November. Where demand has seasons, fit on at least a full year.
Refitting after the result. A baseline adjusted once the after-period is visible can be made to show almost any effect.
Dropping the range. A baseline is an estimate. Its midpoint alone makes every figure built on it look more certain than it is.
How QueryRev treats it.
Every outcome QueryRev reports is measured against a baseline set before the change, as a range, from the page’s own history and comparable pages. The method is written out on the methodology page, and each baseline is kept with its change in the Change Ledger, so that it can be checked later.
Questions people ask.
What is the difference between a baseline and a counterfactual baseline?
A baseline can be any reference period. A counterfactual baseline is an estimate of what would have happened without the change, over the same period as the result.
Can a forecast be used as a counterfactual baseline?
Yes, if it was made before the change and leaves out the change’s expected effect. A forecast that already counts the work cannot measure it.
Why is a baseline a range and not a number?
Because it is an estimate of something that did not happen. The range carries that uncertainty into the result, so a lift is stated with the precision the evidence supports.
Sources and citation.
Primary sources only: the search engines, the AI vendors, standards bodies and QueryRev’s own research. Each is cited in the text by its number.
CausalImpact: an R package for causal inference using Bayesian structural time-series modelsGoogle ·
Get started with attributionGoogle Analytics Help ·
State of AI crawler access, October 2026QueryRev Research ·
Cite this definition
A suggested citation. Its link goes to the definition, whose anchor does not change.
QueryRev Research. “Counterfactual Baseline.” QueryRev AI glossary, 19 October 2026. https://queryrev.com/glossary/counterfactual-baseline#definition
Related terms