Marketing mix modeling vs attribution for small budgets
By Devendra Variya, co-founder of Virling. Published 2026-11-26.
Marketing mix modeling fits a statistical model to weekly sales and spend over a long period, then estimates what each channel added. Attribution credits each payment to a visit before it. Modeling can count channels that leave no click, but it needs years of weekly data and spend that moved. Attribution works from the first payment, but it cannot say who would have bought anyway. For a small SaaS or store with a few months of history, attribution is usually the method you can run today, a holdout test is how you check one channel, and modeling comes later, if at all.
What each method needs
| Needs | Marketing mix modeling | Per-payment attribution |
|---|---|---|
| History | Robyn’s guide asks for a minimum of two years of weekly data | None. It starts with the first tracked visit and payment |
| Spend | Spend per channel per week, and spend that changed over time | Not needed to credit payments. Add spend yourself to work out cost per customer |
| Outside factors | Season, holidays, price changes, launches and anything else that moved sales | Not modeled. You note them and read around them |
| Tracking | None on the site. It works from totals | A script on the site and the visitor ID passed into checkout |
| Skills | Statistics, and time to check that the model makes sense | Tagged links and a connected payment provider |
| Answers | What each channel added in total, including ads seen but not clicked | Which channel, campaign and page each paying customer came through |
The two years come from the Robyn analyst guide, which also recommends about 10 observations for each variable in the model. Each channel, season or price change you add is a variable, so more channels need more weeks.
Three open-source projects are often used to build these models. Each describes itself differently:
- Robyn is an R package from Meta’s marketing science team. It fits ridge regression and searches automatically for settings such as how long an ad’s effect carries over and how quickly extra spend brings less.
- Meridian is a Python framework from Google for Bayesian marketing mix modeling, and can model data by region as well as nationally.
- PyMC-Marketing is a Python toolbox of Bayesian marketing models from PyMC Labs. It covers mix models, customer lifetime value and other marketing models.
All three are free to use, and none removes the need for long, varied spend history.
When each one helps a small team
Per-payment attribution
It helps from the first week. You see which channels, campaigns, posts and pages your paying customers came through, and the amount each one brought, not only clicks. That is enough to spot a channel that sends visitors but no buyers, or a single post that sells. What is revenue attribution covers how the credit works.
Its limit is that it only sees what happened. A buyer who would have paid anyway still credits the ad they last clicked. Splitting the credit across visits, as multi-touch attribution does, divides the same sales in another way and does not fix this.
A holdout test
It helps when one channel costs enough that you need to know whether it adds sales. You switch it off for some weeks or one region and count all new customers. Incrementality testing on a small budget walks through three versions.
Its limit is sales volume. That post shows that for two equal periods, a gap is outside chance at 95% only when it is larger than 1.96 times the square root of all sales in both. With few sales, only a large drop shows. The incrementality calculator works out the cost per extra customer once you have the counts.
Marketing mix modeling
It starts to make sense when you meet the project’s own data requirements: years of weekly sales, spend per channel that went up and down, and a record of outside factors. It also helps most when part of the spend leaves no click to attribute, such as podcasts, video or offline ads. If spend was flat, the model has little to learn from, whatever the length of history.
We do not know of a published sales or budget level at which modeling starts to pay for itself, so we will not give one. Use the data requirements above as the floor.
A made-up example: one month of payments
These numbers are invented to show the reasoning. They are not from a real business. A small SaaS charges $40 a month. In November its new customers, credited by channel, were:
| Channel | New customers | First payments | What a holdout could add |
|---|---|---|---|
| Organic search | 34 | $1,360 | Little. You cannot switch it off cleanly |
| Paid search | 22 | $880 | Whether these buyers would have found you anyway, for example by searching your name |
| Direct | 18 | $720 | Nothing to switch off |
| Sponsorships | 9 | $360 | Too few sales to show alone |
| Paid social | 7 | $280 | Too few sales to show alone |
| Unattributed | 6 | $240 | Nothing |
| Total | 96 | $3,840 |
Attribution already says something useful: paid search brought 22 buyers who clicked its ads, and paid social brought 7. If paid social cost far more than $280 in the month, that is worth knowing now.
Now suppose the team pauses paid search for a month and compares it with a month of ads. With about 96 new customers a month, two months must differ by about 27 to be outside chance (1.96 × √192). Only 22 buyers were credited to paid search, so even if every one of them would have been lost, a one-month test could not show it. With two months on and two off, about 192 customers per block, the limit is about 38 against 44 credited. The test shows an effect only if nearly all paid search buyers depend on the ads.
A mix model has even less to work with: one month is four or five weekly data points, against the two years Robyn’s guide asks for.
What neither method can tell this team:
- Why buyers chose them. A friend’s recommendation arrives as Direct or as a search for the name.
- Spend they never tried. Neither can say what doubling paid search would bring, because it never happened.
- Effects slower than the test. A sponsorship that buyers remember months later falls outside both.
For this team, the honest plan is to read attribution every month, run a holdout once a channel brings enough sales to clear the limit, and keep a weekly log of spend and outside events in case modeling becomes possible later.
What Virling does and does not do
Virling does per-payment attribution. It records visits and payments, credits each payment to a visit before it, and shows new customers and revenue by channel, campaign, country and date. Use Compare to other dates to read the periods of a holdout side by side, and log switch dates in Launches so they show on the chart.
It does not fit mix models, read ad spend or run holdout tests. You make the change in your ad platform and read the result in Virling.
Frequently asked questions
What is the difference between marketing mix modeling and attribution?
Attribution credits each payment to a visit that came before it, so it works from the first day and needs no spend history. Marketing mix modeling fits a statistical model to weekly sales and spend over a long period, and estimates what each channel added, including channels that leave no click.
How much data does marketing mix modeling need?
The analyst guide of Robyn, an open-source modeling package, asks for a minimum of two years of weekly data, and about 10 observations for each variable in the model. Each channel, price change or season you add is another variable.
Is attribution or marketing mix modeling better for a small business?
With a few months of history, one or two paid channels and modest sales, attribution is the method you can actually run. It shows which channels buyers came through. A holdout test can then check whether one channel adds sales. Modeling becomes an option once you have years of weekly spend and sales.
Can marketing mix modeling replace a holdout test?
No. A model infers effects from how sales moved when spend moved in the past. If spend never changed much, it has little to learn from. A holdout changes spend on purpose, and its result can be used to check or calibrate a model.
Does Virling do marketing mix modeling?
No. Virling credits each payment to the visit before it and shows revenue and new customers by channel, campaign, country and date. It does not fit models, read ad spend or run holdout tests.
See which channels your buyers came through
Virling is open source under AGPL. Self-host it free, or use the hosted version with a 14-day free trial. It connects to Stripe, Paddle, Shopify, WooCommerce, Polar, LemonSqueezy, Dodo, Creem and RevenueCat.