Skip to content

Attribution & measurement12 min read

Marketing mix modeling for $1M a month brands.

What a light mix model needs, what the open-source tools from Meta and Google actually do, what the output can and cannot decide, and a rule for when it is worth building.

In this piece9 sections
  1. What a marketing mix model actually estimates
  2. What it needs: history, variation, and controls
  3. Robyn and Meridian, briefly
  4. What a mix model can tell you, and what it cannot
  5. Calibrate it with geo holdouts
  6. Is there enough data? A worked check
  7. When a light mix model is worth it
  8. What the common advice gets wrong
  9. What to do this month

What would your model say if you had never changed your budgets?

It is worth asking before you build one, because the answer is: nothing it did not already assume. A marketing mix model learns how each channel moves sales by watching sales respond when spend moves. Plenty of brands at $1M a month in revenue have two years of weekly data and several channels, and still have almost no usable variation, because budgets were set once a quarter and held flat.

Mix modeling has become far more accessible. Meta publishes Robyn and Google publishes Meridian, both open source and both documented in detail. The software is no longer the constraint. The data is, and specifically the history of your own decisions. This post covers what a light model needs, what the two tools do, what the output can and cannot decide, how to calibrate it with a geo holdout test, and a rule for when it is worth the effort.

What a marketing mix model actually estimates

A marketing mix model is a regression of an outcome, usually weekly revenue or orders, on media spend by channel plus the other things that move sales: seasonality, promotions, price, holidays, and a trend. Two transformations make it more than a plain regression. Carryover, often called adstock, lets this week’s spend affect sales in later weeks. Saturation lets each channel’s effect flatten as spend rises. Google’s research on Bayesian mix models formalized exactly these two shapes and computes both average and marginal return from them.

The output is modeled contribution: an estimate of how much of each week’s sales each channel caused, given the model’s structure and assumptions. It is not platform attribution, which counts conversions a platform can trace to its own ads. It is not experimentally measured incrementality, which comes from a controlled test. It sits between the two, and its value depends on how tightly your data constrains it.

What it needs: history, variation, and controls

History

Robyn’s analyst guide recommends at least two years of weekly data, or four to five years if only monthly data exists. It also suggests roughly seven to ten observations for every variable in the model, and elsewhere one variable for every ten observations. Two years of weekly data is 104 observations, which caps a model at roughly ten to fifteen variables before anything else goes wrong.

Meridian’s documentation frames the same limit as data points per parameter and is candid that the guidance is rough. Its worked example is a national model with 12 channels, 6 controls, and 8 seasonal knots, which has 26 parameters. Two years of weekly data gives about four points per parameter, which it calls too low. Its remedies are the practical ones: combine channels, use fewer knots, add history, or model at the geographic level.

Variation

Variation is the input nobody budgets for. A model can only learn a channel’s response curve from weeks when that channel’s spend was different. Robyn’s guide makes the point with a channel whose spend never changes: the model cannot tell its effect apart from the baseline. Meridian’s documentation notes that insufficient spend variation hurts national models in particular.

At $1M a month this is often the binding constraint. If Meta spend moved between $20,000 and $25,000 a week for two years, the model has seen one small stretch of the curve. It can say little about what happens at $35,000, and whatever it does say about saturation there comes from the assumed shape of the curve, not from your data.

Controls

Controls are the non-media drivers of sales. For a Shopify brand the ones that matter most are promotions and discount depth, price changes, product launches, stockouts, email and SMS sends, major holidays, and a measure of underlying brand demand. Meridian lists search query volume as a control for organic brand interest, which matters because branded search spend tends to rise and fall with demand the ads did not create. Leave these out and the model credits media with their effects.

Robyn and Meridian, briefly

Robyn is an experimental, semi-automated open-source mix modeling package from Meta Marketing Science. It fits ridge regression with carryover and saturation transformations, searches across many candidate models with a multi-objective evolutionary optimizer, and includes a budget allocator. It runs in R, with a Python version in beta. It returns a set of candidate models that trade fit against how plausible the channel split looks, and leaves the analyst to choose between them.

Meridian is Google’s open-source mix modeling framework, written in Python and built on Bayesian causal inference. It encourages geographic-level data, supports reach and frequency inputs, and lets you set priors on each channel’s return, which is how experiment results get in. It reports return on investment with credible intervals, response curves, and budget optimization, and its repository recommends at least one GPU for fitting. Google now also offers Meridian GeoX, described as a way to run geo experiments that calibrate the model.

Both tools are credible. The choice matters less than who will own the model. Robyn suits an analyst comfortable in R who wants many candidate models to choose from. Meridian suits a Python team that wants explicit priors and geographic modeling. Neither runs itself, and Robyn’s own documentation tells users to validate its budget allocator’s outputs rather than accept them as given.

What a mix model can tell you, and what it cannot

A mix model answers channel-level questions over periods of weeks. Used well, it can tell you:

  • How much of your sales each major channel contributed over the modeling period, as a range rather than a point.
  • The response curve for each channel: how sales respond as spend rises, and where saturation starts.
  • Marginal return by channel at current spend, which is the portfolio-level input the marginal ROAS stop rule needs.
  • How long each channel’s effect lasts, which matters for channels such as video that work on a lag.
  • Which reallocations look promising enough to test.

It cannot tell you:

  • Which creative, campaign, ad set, audience, or keyword is working. Weekly channel totals do not contain that information.
  • Anything reliable about a channel whose spend never varied, or one launched a few months ago.
  • What happens far outside the spend range you have run. Extrapolation is the model’s assumptions speaking.
  • Effects shorter than a week, such as how a sale-day budget change performed.
  • Cause, with the confidence of an experiment. Google’s own research on the challenges of mix modeling is a sober read on how hard it is for these models to give consistently valid answers.

The honest summary is that a mix model is a map drawn from your history. It shows the terrain where you have been. It guesses the rest.

Calibrate it with geo holdouts

Calibration is how the map gets anchored to measured ground. Both tools support it. Robyn’s guide strongly recommends calibrating with lift studies such as Conversion Lift or GeoLift, adding the gap between the model and the experiment as a third objective alongside fit and plausibility. Meridian uses experiment results to set the priors on each channel’s return.

The mechanics matter less than the match between experiment and model. Meridian’s documentation lists what to check: how recent the experiment was, how long it ran, its geographic granularity, the population it covered, and above all what it estimated. A mix model’s return compares current spend with zero spend. An experiment that reduced spend rather than removing it measures marginal lift, which is a different quantity. Robyn’s guide makes a related point: an experiment measures the effect over its own window, not the whole modeling period, and low-confidence experiments should not be used at all.

In practice, the calibration loop for a brand at this size looks like this:

  1. Fit the first model uncalibrated and find the channel with the largest spend and the widest interval. That is where a test buys the most information.
  2. Run a geo holdout on that channel, with the outcome and window aligned to the model: the same revenue definition, weekly totals, and a period inside the model’s history.
  3. Feed the result in as a prior or calibration target, refit, and check which other channels’ estimates moved. Large moves elsewhere mean the uncalibrated model was trading credit between channels.
  4. Repeat for the next most uncertain channel, once or twice a year.

This is also the answer to the question the $3M to $5M a month stage eventually forces: which measurement do you trust when they disagree? Experiments decide the channels you have tested. The calibrated model fills in between them. Platform attribution runs day-to-day bidding. Each has a job, and the measurement stack sets out how they fit together.

Is there enough data? A worked check

Here is the arithmetic for three versions of a light model for an illustrative brand at about $1M a month in revenue. It uses the points-per-parameter lens from Meridian’s documentation, counting one parameter per media channel, per control, and per seasonal knot. Real models carry more parameters than this, so treat the ratios as optimistic.

Model designMedia channelsControlsSeasonal knotsParametersWeekly data pointsPoints per parameter
Every campaign type split out, 2 years968231044.5
Consolidated channels, 2 years432910411.6
Consolidated channels, 3 years4331015615.6
Illustrative arithmetic, not a client result. Parameters counted as one per media channel, control, and seasonal knot; real models carry more. Meridian’s worked example calls about four points per parameter too low and about fifteen the point where you might get some directional information.

The fine split, with Meta prospecting separated from retargeting and every Google campaign type on its own line, fails before it starts. The consolidated two-year model is borderline. The three-year version reaches the level where Meridian’s own example says you might get some directional information. Moving to a regional model, using Shopify revenue by shipping region, multiplies the data again, though regional weeks tend to move together and carry less information than truly independent observations.

Be clear about what directional means. It means the model can probably rank channels by marginal return and flag saturation. It does not mean it can give you a return figure precise enough to set a budget to the dollar. Jin and colleagues found that the optimal mix implied by a model carries large variance precisely because the parameter estimates are uncertain.

When a light mix model is worth it

Here is the decision rule we use. It is a rule of thumb built on the published data guidance above, not a published threshold in its own right.

  • Build it if you have at least two years of weekly history, three or more paid channels each carrying a meaningful share of spend, and several periods where each channel’s spend moved materially up or down.
  • Build it if the reallocation decision is large. As illustrative arithmetic: at $200,000 a month of media, shifting 10% of annual spend, $240,000, from a channel with a marginal return of 1.2 to one with 2.0 adds at most about $192,000 of revenue, or $96,000 of contribution at a 50% margin, and less as the receiving channel saturates. That is worth an analyst’s time. At a fifth of that spend, it may not be.
  • Build it if someone will own it. A mix model is a quarterly habit, refit as data accumulates and recalibrated as tests land, not a one-off project.
  • Skip it if one channel carries most of your spend. There is little to allocate between, and a geo holdout on that channel answers the real question faster.
  • Skip it if spend has been flat. Create variation first, with deliberate budget changes by channel over the next two quarters, then build.
  • Skip it if the questions you need answered are about creative, campaigns, or audiences. A mix model cannot see them.

What the common advice gets wrong

The common advice now runs like this: the tools are free, so every brand should have a mix model. The tools are free. The inputs are not, and the most important input is one you cannot buy after the fact.

Fit a model to two years of flat budgets and it will still produce response curves, contribution splits, and a budget recommendation, in charts that look exactly like those from a well-identified model. Google’s Bayesian research notes that with small samples the priors have a big impact on the estimates. Put simply, when the data cannot speak, the model reports its own assumptions back to you in your brand’s colors. The danger is not a bad model. It is a confident-looking one.

The second error is asking the model the wrong questions. Mix models get used to judge a creative refresh or a new campaign structure, and weekly channel totals cannot see either. Those questions belong to platform tests and to marginal return analysis inside each channel.

What to do this month

Late November is not the time to build a model, but it is a good time to make next year’s model possible.

  1. Start a weekly data table if you do not have one: revenue and orders from Shopify, spend by channel, discount depth, email and SMS sends, stockouts, and a flag for every promotion. Back-fill as far as your records allow.
  2. Log this peak season in detail. Black Friday week will be the most unusual week in the data, and the model needs to know exactly what happened in it so it does not credit the ads with the calendar.
  3. Plan variation into the first half of next year. Pick one or two channels and schedule deliberate budget changes, up and down, each held for several weeks. It is the single most valuable input you can create.
  4. Put one geo holdout in the plan for early next year on the channel with the most spend, so the first model has something to calibrate against.
  5. Check the economics each channel has to clear with the breakeven ROAS calculator, so the model’s marginal returns land against a threshold that means something.

Common questions

What is a marketing mix model?
A marketing mix model is a regression of weekly sales on media spend by channel and on non-media drivers such as promotions, price, and seasonality. It includes carryover, so spend affects later weeks, and saturation, so each channel’s effect flattens as spend rises. The output is modeled contribution by channel, not measured incrementality.
How much data do I need for a marketing mix model?
Robyn’s guide recommends at least two years of weekly data and roughly one model variable per ten observations. Meridian’s documentation frames it as data points per parameter and calls about four per parameter too few. Spend variation matters just as much: each channel needs periods where its spend moved materially.
Should I use Robyn or Meridian?
Both are credible open-source tools. Robyn, from Meta, runs in R with a Python beta and searches many candidate models for the analyst to choose from. Meridian, from Google, runs in Python, uses Bayesian priors, and supports geographic-level models. Choose the one your analyst can own and maintain.
Can a mix model tell me which campaigns or ads to cut?
No. A mix model works on weekly channel totals, so it cannot see campaigns, ad sets, creatives, audiences, or keywords. Use it for channel-level allocation and saturation, and use platform tests and marginal return analysis within each channel for the finer decisions.
How does calibration with a geo holdout work?
You run a controlled geo test on one channel and feed its result into the model, as a prior in Meridian or as a calibration objective in Robyn. The experiment should match the model on outcome, time period, and what it measures. A full shutoff and a mix model both compare current spend against zero, which makes them a natural pair.
Is a mix model worth it at $1M a month?
Sometimes. It is worth it with two or more years of weekly data, three or more channels carrying real spend, meaningful spend variation, and someone to maintain it. If one channel dominates or budgets have been flat, a geo holdout on your largest channel will answer the important question sooner.

A mix model is not a verdict on your marketing. It is a disciplined way to read your own history, and it is only as good as the decisions that history contains. If you want an independent read of your current spend before you invest in modeling it, start with the free audit.

What we learn

Got value from this one?

The next one lands in your inbox. Account-level analysis written the way we brief our own operators.

More to read

Continue with these.

Sam NouriFrom SamGrowth check

What’s actually holding your growth back?

About 4 minutes, no account access. For ecommerce stores, SaaS, digital products and lead generation. A score across five areas and the one constraint to fix first.