Skip to content

Counterfactual Analysis for Ad Spend: What Would Have Happened Without That Campaign

Discover how counterfactual analysis in marketing reveals the true impact of your ad spend. Stop guessing and start measuring real incrementality.

Three platforms, three answers, one budget to defend. Your GA4 export already holds the answer, and the first finding is free and never leaves your browser. Get your first finding free

By , Founder & CEOUpdated 8 min read

Run the numbers for your store: the free holdout test planner.

The core problem is this: your analytics can’t distinguish between sales that would have happened anyway and sales that were directly caused by your ads. This is where counterfactual analysis, a core discipline of causal inference, moves you from correlation to causation.

The Illusion of Attribution: Why Your Metrics Are Broken

Marketing attribution is the process of assigning credit to the various marketing channels that a customer interacts with on their path to purchase. Unlike causal analysis, which identifies true cause and effect, attribution relies on correlation.

For years, marketers have been obsessed with marketing attribution. Yet, they all share a fundamental flaw: they only show correlation, not causation. A customer clicking an ad and then making a purchase does not mean the ad caused the purchase.

A rooster crows at sunrise, but it does not cause the sun to rise. For a Dutch beauty brand, a customer might see a TikTok ad, then a Google search ad, and finally purchase through a direct link. Which channel gets the credit? Traditional attribution models will split the credit, but none of them can tell you the real story. They can't tell you what would have happened if that customer had never seen the TikTok ad. This is the central failure of all attribution models.

This isn't just a theoretical problem. It has real financial consequences. The reason is simple: marketers are refining for the wrong metrics. They are pouring money into channels that are good at claiming credit for sales, not channels that are good at creating them.

What is Counterfactual Analysis? Thinking Like a Scientist

Counterfactual analysis is the method of comparing actual outcomes with hypothetical outcomes that would have occurred under different conditions. Unlike traditional analytics that track what happened, counterfactuals reveal what would have happened anyway. This distinction is important for measuring the true, causal impact of marketing spend, not just correlation.

Counterfactual analysis refers to the practice of comparing what actually happened (the factual) with what would have happened under different circumstances (the counterfactual). Answering this moves you from flawed correlation-based attribution to precise, causation-based measurement.

The difference between these two outcomes is the true, incremental impact of your marketing.

Incremental Sales = (Sales with Ad) - (Sales without Ad)

The “Sales without Ad” portion is the counterfactual. It’s a hypothetical that we can’t observe directly, but we can estimate it with a high degree of accuracy using causal inference methods. This is the only way to measure the true return on your ad spend and escape the trap of misleading metrics.

This concept is rooted in the Rubin Causal Model, a foundational framework in statistics developed by Donald Rubin [2]. The model defines the causal effect of a treatment (like an ad) as the difference between the potential outcome if the unit (the customer) receives the treatment and the potential outcome if they do not.

From Guesswork to Certainty: How Counterfactuals Reveal True ROI

True ROI is the measure of incremental sales directly caused by a marketing activity, calculated by subtracting the sales that would have happened anyway (the counterfactual) from the total sales. Unlike platform-reported ROAS, which is based on flawed attribution, true ROI provides a causal understanding of profitability and marketing effectiveness.

This approach moves you beyond vanity metrics like ROAS and allows you to measure true incremental lift.

On the surface, Campaign A looks like the clear winner. But counterfactual analysis tells a different story. It reveals that most of the customers from Campaign A were existing customers who would have purchased anyway. Despite its lower ROAS, Campaign B was the far better investment. This is the type of unpredictable, counterintuitive insight that gives you a real competitive edge.

Let's take another example. A Dutch fashion brand is running a retargeting campaign on Facebook, showing ads to users who have visited their website in the past 30 days. The marketing team is thrilled. The retargeting campaign simply reminded them to do what they were already going to do. The true incremental lift of the campaign was minimal. The brand was essentially paying Facebook to take credit for sales that were already happening.

Methods for Estimating the Counterfactual

Estimating the counterfactual involves using statistical methods to predict what would have happened without a specific marketing intervention. Unlike simple before-and-after comparisons, these methods isolate the true causal impact of your ads. Key techniques include holdout tests (A/B testing), geo-lift testing, and advanced causal inference models, which are essential for accurate ROI measurement.

  • Holdout Tests (A/B Testing): This is the gold standard. You create a control group of users who are not shown your ads and compare their purchasing behavior to the test group that does see the ads. The difference in conversion rates reveals the true incremental lift. Setting up a proper holdout test requires careful planning. You need to ensure that your control group is truly isolated from the campaign and that the two groups are statistically similar. For a deeper dive, see our guide on incrementality testing.

  • Geo-Lift Testing: When a clean holdout test isn't possible, geo-lift tests are a useful alternative. You can compare sales in similar geographic regions, for example, running a campaign in Rotterdam but not in The Hague, and measure the difference in sales. The key to a successful geo-lift test is selecting markets that are as similar as possible in terms of demographics, purchasing power, and market trends. Learn more in our practical guide to geo-lift testing for ecommerce.

Common Pitfalls to Avoid

Common pitfalls in counterfactual analysis are errors that lead to incorrect conclusions about marketing impact. These include ignoring external factors like seasonality, allowing contamination between test and control groups, and misinterpreting statistical results. Avoiding these mistakes is critical for achieving an accurate measurement of incremental lift and making sound investment decisions.

While counterfactual analysis is incredibly useful, it's not a magic bullet. There are several common pitfalls to avoid:

  • Ignoring Seasonality and Trends: Your sales are likely influenced by seasonal factors and market trends. A simple before-and-after comparison is not a valid counterfactual analysis. You need to account for these external factors to isolate the true impact of your marketing. A study from Google Research highlights the importance of this in their Causal Impact model [3]. * Contamination: In a holdout test, it's important to prevent the control group from being exposed to the ad. This can be challenging in the real world, where users can be exposed to your brand through multiple channels. Meta for Business provides guidance on how to minimize this in their lift testing documentation [4]. * Misinterpreting Results: A/B testing and other methods provide statistical estimates, not absolute certainties. It's important to understand the confidence intervals and statistical significance of your results.

Stop guessing. Stop relying on the fantasy numbers in your ad dashboards. It's time to embrace causal inference and start making decisions based on what truly works.

Find your real ROI.

causalityengine.ai/start

Frequently Asked Questions (FAQ)

What is counterfactual analysis in marketing?

Counterfactual analysis in marketing is a method used to determine the true impact of a marketing campaign by estimating what would have happened if the campaign had never run. It compares the actual results (factual) with this estimated baseline (counterfactual) to measure the campaign's incremental lift, moving beyond simple correlation.

How is counterfactual analysis different from A/B testing?

A/B testing is one method of performing counterfactual analysis. It is considered the gold standard because it directly creates a real-world counterfactual scenario by withholding an ad from a control group.

Why is ROAS a misleading metric?

Return on Ad Spend (ROAS) is misleading because it is based on attribution, which only measures correlation, not causation. A high ROAS often includes revenue from customers who would have purchased anyway, inflating the perceived effectiveness of a campaign. Counterfactual analysis isolates the incremental revenue directly caused by the campaign, providing a much more accurate measure of profitability.

What are the main benefits of using counterfactual analysis?

The main benefits are accurate measurement of marketing ROI, better budget allocation decisions, and the ability to identify and eliminate spend on non-performing or cannibalistic channels.

Can I use counterfactual analysis for other marketing activities besides ad spend?

Yes. Counterfactual analysis can be applied to any marketing activity where you want to measure the causal impact. This includes email marketing, content marketing, influencer marketing, and even offline activities like events and sponsorships. The principles of measuring incremental lift remain the same across all channels and tactics.

References

[1] Forrester, "The State Of Digital Advertising, 2022."

[2] Rubin, D. B. (1974). Estimating causal effects of treatments in randomized and nonrandomized studies. Journal of Educational Psychology, 66(5), 688 - 701.

[3] Google Research, "Causal Impact."

[4] Meta for Business, "About Lift Testing."

[5] Pearl, J. (2009). Causality: Models, Reasoning, and Inference. Cambridge University Press.

Go deeper: Causal attribution, explained.

Sixty-second versions of these ideas: Causality Engine on YouTube Shorts.

Have an audience of ecommerce operators? Earn 20% recurring commission by recommending the €99 read.

Keep reading

Terms in this article

Browse the full glossary

Your platforms guess.
We run the math.

Upload a GA4 export and see what each channel caused, next to last-click, in 1–2 minutes. The read is yours to keep.

The free finding runs in your browser. Your file never leaves it. The full read is €99, refundable within 30 days, no questions asked. Prices exclude VAT.