A marketing measurement stack is the data, tools and routines you use to decide where your ad budget goes. It has four layers: data you own, attribution for day-to-day optimization, incrementality tests that check the attribution, and a marketing mix model (MMM) for the split between channels. Most companies need the first two, should add tests once they spend serious money on more than one channel, and only need MMM later.
Most stacks are put together by accident: an analytics tool that came with the website, the dashboards that came with each ad account, and a spreadsheet someone built years ago that nobody fully trusts. Building one on purpose doesn't have to cost more. Mostly it means knowing which question each layer answers and in what order to add them.
A modern measurement stack layers causal methods on top of tracking and analytics foundations
Layer 1: data you own
Everything else depends on this layer. No attribution tool, test or model fixes bad input.
Orders, revenue and customers in a place you control. Shopify, Stripe, your CRM or a data warehouse, queryable by date, region and customer cohort. A geo test needs revenue by region, and an MMM needs revenue by week, so platform dashboards alone won't do.
Server-side events next to the browser pixel. Browsers and ad blockers stop part of the pixel tracking. Meta's Conversions API sends events from your server, website platform or CRM, including offline events (Meta for Developers). On Google, enhanced conversions add hashed first-party data such as an email address, so more conversions can be matched to ad clicks (Google Ads Help). If you run pixel and server events side by side, check that they are deduplicated, or every sale counts twice.
Consent. For traffic from the European Economic Area, Google requires advertisers to follow its EU user consent policy for measurement and personalization, and consent mode passes visitors' choices on through the ad_user_data and ad_personalization parameters (Google Ads Help). Get this wrong and your conversion data for European visitors has gaps you can't repair later.
Your own copy of spend and results. Platforms don't keep everything forever. Since Meta's January 2026 update, its reporting API returns unique-count and hourly breakdowns for 13 months, frequency breakdowns for 6 months and totals for 37 months (Meta for Developers). An MMM needs two to three years of weekly spend per channel. Export it every week, starting now, even if a model is years away. The MMM data template has the layout.
The most common mistake is to skip this layer and buy an attribution tool first. A paid tool reads the same incomplete event data, so it can't fill those gaps for you.
Layer 2: attribution, kept clean
Attribution is for decisions within a channel: which creative, which audience, which campaign. Inside one platform the same biases apply to every campaign, so relative comparisons hold up reasonably well even when the totals are inflated. Across platforms they don't. Each platform counts with its own windows and claims sales that other platforms claim too, which is why ad results don't add up. Don't move budget from Meta to Google on platform numbers alone.
Attribution hygiene is mostly boring work, and it matters more than which tool you buy:
- One definition per conversion. A purchase is a purchase in every tool, and nothing else gets the same value. In one account I audited this year, the tracking gave a product view the same value as a purchase, so the bidding optimized toward people who looked instead of people who bought.
- The business goal as the primary conversion. Bidding should optimize toward what the business earns from: a sale, or for lead generation a qualified lead from your CRM. Micro conversions can be secondary, for reporting.
- Consistent UTMs. One naming convention on every paid, email and social link, so GA4 and your CRM group traffic the same way.
- Know which window and model each number uses. Since November 2023, GA4 has offered only three attribution models: data-driven, paid and organic last click, and Google paid channels last click (Google Analytics Help). Google Ads click-through windows run from 1 to 90 days, with 30 as the default (Google Ads Help). Meta stopped returning its 7-day and 28-day view windows in January 2026 (Meta for Developers). Only compare numbers that use the same window.
- Never add platform numbers together. Platforms claim the same sales, so the sum is usually higher than what you sold.
- Check every month that platform totals and backend revenue move in the same direction. A gap that suddenly grows usually means something broke in the tracking.
On tools: GA4 is the free baseline and the place to start. Ecommerce brands with several channels can add a dedicated attribution tool such as Triple Whale or Northbeam, which puts all channels in one first-party view. It gives you a cleaner picture, but it doesn't solve the structural limits of attribution. In B2B the CRM does this job; see B2B marketing attribution. For what the tools cost and how they compare, read marketing attribution software.
Layer 3: incrementality tests
This is the layer that checks the others. A test answers the question attribution can't: would these sales have happened without the ads? Run one on a channel, compare the iROAS with the ROAS the platform reports, and you know how far to trust that platform's numbers. What is incrementality explains the idea, and the incrementality testing guide covers the methods.
The main tools:
- Meta GeoLift, an open-source R package for geo experiments based on synthetic control methods, under the MIT licence (GitHub).
- Google Meridian GeoX, Google's open-source library for designing and analyzing geo experiments. It is not a Google Ads feature: you run it yourself, on its own or to turn test results into priors for Meridian (Google for Developers).
- Google Ads Conversion Lift, built into Google Ads, with test groups based on users or on geography. It isn't available for every account (Google Ads Help).
- Meta Conversion Lift, Meta's randomized holdout test. Meta's developer documentation says access through its API is limited and goes through a Meta representative (Meta for Developers).
- Your own holdouts, for email, retargeting audiences or any channel without a built-in tool. See how to design a holdout test.
As a rough rule of thumb, a minimum program is two to four tests a year, rotating through your biggest channels. Start with the largest budget, or with the channel you trust least. Retargeting and branded search are the usual suspects, because they reach people who were already likely to buy (are you wasting money on retargeting?).
Before a geo test, check with the geo test sample size calculator whether you have enough volume, plan it with the incrementality testing template, and read the result with the iROAS calculator. Write each result down next to what the platform reported for the same period. After a year or two you know the gap for most of your budget.
Layer 4: marketing mix modeling
MMM is the strategic layer: a model of how spend per channel relates to total sales over time, without any user-level tracking. It covers what attribution can't see, such as TV, podcasts and out-of-home, and it shows where extra spend in a channel stops paying off.
It makes sense when you have:
- spend spread over several channels, often including offline or brand campaigns
- two to three years of clean weekly data
- enough budget that moving 10% of it is a real decision (as a rough rule of thumb, from about $1 million a year in media)
- a team that will change the budget when the model says so
The options at the end of 2026:
- Google Meridian is Google's open-source Bayesian MMM in Python. The current version is 2.2.1, released on 18 November 2026. Version 2.0, from September 2026, made JAX the default backend and added calibration with incrementality experiments such as GeoX (Meridian changelog). It is the most actively developed of the free options. More in the Google Meridian guide.
- Meta Robyn is Meta's open-source MMM in R, using ridge regression. Its last GitHub release is 3.12.0 from December 2024, and the last commit on the main branch is from June 2025 (GitHub). The last CRAN version, 3.12.1, is from July 2025 (CRAN). If you already run it and it works, keep it. I wouldn't start a new project on it. See Google Meridian vs Meta Robyn.
- PyMC-Marketing is an open-source Bayesian marketing toolbox in Python from PyMC Labs, with MMM as one of its models (GitHub).
- Managed platforms build and refresh the model for you. Prices differ a lot and many are quote-only, so I keep them in one place: marketing mix modeling software.
The open-source options are free, but they need someone who can prepare the data, set priors and read the diagnostics, plus time for every refresh.
What to build at each budget level
These tiers are rough rules of thumb for total paid media. The number of channels and how many conversions you get per week matter as much as the budget.
Up to roughly $20,000 a month, one or two channels. Layer 1 and clean attribution. GA4, the platform dashboards and your backend data, checked against each other every month. A paid attribution tool rarely earns its cost at this level. If one channel takes most of the budget and has enough volume, run one test a year on it. No MMM yet.
Roughly $20,000 to $100,000 a month, three or more channels. Attribution hygiene still comes first. Ecommerce brands can add a dedicated attribution tool once the platforms clearly claim the same sales; B2B companies should get CRM stages back into the ad platforms. Run two to four tests a year. Start storing weekly spend and revenue per channel, and at the top of this range, with several channels and enough history, a first MMM can make sense.
Above roughly $100,000 a month. All four layers. An MMM refreshed at least twice a year and calibrated with your test results, a test every quarter or more often, a first-party data pipeline, and one person who owns measurement. At this level the cost of measuring is small next to the cost of a budget split that is off.
Who owns it
Measurement goes wrong when it is a side job. A badly designed test gives a confident wrong answer, a model nobody challenges gives false comfort, and attribution nobody audits drifts away from reality without anyone noticing.
At a smaller company one analyst can own the whole stack, as long as they get the time and the mandate. At a larger company measurement needs a dedicated owner whose job is to question the numbers as well as report them. That person is also the one who brings the layers together: when attribution, a test and the model point the same way, you can move budget with confidence. That is what marketing triangulation means in practice.