Back to all articlesIs your DTC brand ready for marketing mix modeling?
Josh KatowitzJosh Katowitz
Marketing

Is your DTC brand ready for marketing mix modeling?

Marketing mix modeling (MMM) is a regression on weekly, aggregated data that estimates how much each marketing channel adds to sales or new customers, without tracking individual users. A DTC brand is ready for it once it has about two years of weekly spend and impressions by channel, a weekly outcome from its store such as new customers, and a record of the promotions and price changes that moved demand. Until that history exists, a weekly check that splits each change in blended customer acquisition cost (CAC) into spend mix and channel CAC answers most Monday questions and builds the dataset the model will need.

The requirements below come from the documentation for Google's Meridian and Meta's Robyn. Where the two disagree, both positions are given.

MMM, platform attribution, and multi-touch attribution compared

Marketing attribution assigns credit for a purchase to the ads that came before it. Each ad platform shows its own version by default: conversions credited to its own ads inside a window the platform sets. On Google Ads that window runs 30 days from a click and 1 day from a view unless the advertiser changes it (Google Ads Help). Meta chooses its own attribution windows and lists them in its Marketing API reference. No platform sees another platform's ads, so the purchases they report can add up to more than the new orders in Shopify.

Multi-touch attribution (MTA) follows user-level paths and divides credit among the touchpoints before a purchase. Meta's Robyn guide notes that MTA is "very reliant on online signals," while MMM works from aggregated data and needs nothing at the user level (Robyn).

MMM estimates each channel's incremental effect: the sales or customers that would not have happened without that spend. Google built Meridian to answer three questions, namely each channel's historical ROI and contribution, how its effect changes with spend, and how to allocate the next budget (Meridian). For detail below the channel level, the Meridian docs recommend data-driven MTA (Meridian).

MethodData it usesWhat it answersWhere it struggles
Platform-reported attributionOne platform's clicks and viewsWhich of its ads preceded a conversionEach platform credits only itself
Multi-touch attributionUser-level pathsHow to split credit for a tracked purchaseAnything it cannot track
Marketing mix modelingWeekly totals of spend, outcome, and controlsWhat each channel addedNeeds long history and varied spend

What Meridian and Robyn ask a brand to collect

The two tools agree on the core inputs.

InputWhat the docs stateDTC source
OutcomeMeridian requires a KPI that sums across time and geography, such as revenue or conversionsShopify new customers or net revenue
Spend by channelMeridian requires spend for each paid channel as the denominator for ROIBilled spend from each platform
Exposure metricRobyn recommends impressions for digital media, not clicks. Meridian accepts spend as a proxy but warns that a cost spike can read as more exposureImpressions by channel
ControlsMeridian asks for variables that affect both the outcome and the media plan. Robyn lists promotions, pricing, seasonality, and macroeconomic factorsPromotion calendar, price changes, launches, stockouts
Time grainBoth recommend weekly dataWeeks with one agreed start day
HistoryMeridian: two years of weekly data for geo-level models, three for national. Robyn: at least two years of weekly dataWarehouse tables, if they kept the history

Sources: Meridian data collection and Robyn's analyst guide.

Three requirements catch DTC brands most often, and the first is rows per variable. Robyn's guide recommends about 10 observations for each independent variable, so 104 weekly rows support about 10 variables. Meridian's national example puts numbers on the problem: 12 channels, six controls, and eight knots (parameters that let the baseline move over time) make 26 parameters, and 104 weeks gives four data points per parameter, which the docs call "too low to estimate the model reliably" (Meridian). A brand without regional splits models nationally, where Meridian's rule of thumb is three years.

Spend also has to vary, and the figures have to be real. Robyn's guide warns that a channel whose spend stays flat gives the model little to learn from. It recommends actual spend and impressions over planned media-plan figures, and suggests allowing at least four weeks for data collection (Robyn).

Before collecting anything, settle whether the outcome includes Amazon marketplace sales. A model that pairs Amazon ad spend with Shopify-only orders asks a question its data cannot answer.

What a first model can leave out

A brand spending $200,000 or more a month across a handful of paid channels can start without these:

  • Reach and frequency data, which Meridian supports as an option.
  • Organic media, such as email and social posts. Meridian lists it as optional.
  • Separate seasonality variables. Meridian adjusts for trend and seasonality automatically, and Robyn uses Prophet, Meta's open-source forecasting code, to separate trend, seasonality, and holidays.
  • Campaign and creative splits. Meridian works at the channel level and does not recommend campaign-level models.
  • Daily data. Both tools recommend the weekly grain.
  • Small channels as separate inputs. When data is short, Meridian suggests combining channels or dropping one with low spend.

Google Query Volume, which helps Meridian account for organic brand interest, is optional too, although the docs warn that leaving it out can bias estimates.

Sources: Meridian data collection, Meridian data amounts, and Robyn's guide.

Keep the controls. Without them, the model can credit an unlogged promotion to whichever channel spent more that week.

Calibrating the model with lift tests

An incrementality test, also called a lift test, compares people or regions that saw the ads with a holdout group that did not. The difference measures the incremental effect directly, from outside the model's own history.

Robyn's guide strongly recommends experimental results as the ground truth for calibrating an MMM. It names people-based Conversion Lift and geo-based GeoLift, and recommends ongoing studies (Robyn). Meta's GeoLift documentation adds that Meta prefers people-based tests where possible, because they have higher statistical power (GeoLift).

The Meridian docs call incrementality experiments "perhaps the strongest basis" for setting a channel's prior, which is the model's starting assumption about that channel's return. They also warn that an experiment and an MMM often define ROI differently, because a test reflects its own time window, regions, and campaign settings (Meridian).

DTC brands meet a specific version of this problem. When two channels' spend moves together, the model cannot cleanly separate their effects, and the PyMC-Marketing documentation shows lift test results helping to tell them apart, while noting that every estimate is not guaranteed to improve (PyMC-Marketing). A brand that raises Meta, Google, and TikTok together every November builds exactly that correlation into its history.

Test the channel where the model, the platform report, and the weekly check disagree most, and compare the test result with the model's estimate for the same period.

October's CAC: $40 to $46 with the same 6,000 customers

The growth lead at a DTC brand opens the October numbers. The brand defines blended CAC as paid media spend divided by new customers, and a new customer is a first order in Shopify. An agreed rule gives each new customer to one channel, the last paid click recorded on the order, so the channel counts add up to the Shopify total. Amazon is reported separately. The brand and its numbers are invented, and none of them come from a customer.

ChannelSep spendSep new customersSep CACOct spendOct new customersOct CAC
Meta$120,0003,000$40.00$126,0002,800$45.00
Google$72,0002,400$30.00$69,0002,300$30.00
TikTok$48,000600$80.00$81,000900$90.00
Total$240,0006,000$40.00$276,0006,000$46.00

Spend rose 15% while new customers held at 6,000. Meta's CAC and TikTok's CAC each rose 12.5%. Spend also moved toward TikTok, from 20% of the budget to 29.3%, and TikTok's October CAC of $90 is nearly twice the blended rate.

Work out blended CAC from the totals. An average of the three channel CACs comes out wrong whenever the channels differ in size.

Two things changed at once, the channel CACs and the share of spend each channel got. To pull them apart, keep September's spend mix and apply October's channel CACs:

September spend at October CACs = $120,000 ÷ $45 + $72,000 ÷ $30 + $48,000 ÷ $90 = 2,666.67 + 2,400 + 533.33 = 5,600 customers.

Blended CAC at September's mix = $240,000 ÷ 5,600 = $42.86.

By that convention, channel CAC accounts for $2.86 of the $6.00 rise and the shift in spend mix for the remaining $3.14. Meta carries most of the channel effect. Changing only Meta's CAC moves blended CAC to $42.35, and changing only TikTok's moves it to $40.45.

Run it in the other order, holding September's CACs and applying October's mix, and blended CAC comes to $42.71, which assigns $2.71 to mix and $3.29 to channel CAC. Write the convention next to the result. Either way, the budget shift explains roughly half of the rise.

The whole split rests on the last-click rule, which is itself an attribution choice. If TikTok ads bring in shoppers who later buy through a Google search click, the rule hands them to Google, and TikTok's CAC looks worse than its contribution. Measuring what each channel adds takes an MMM or a lift test.

Build the weekly check now, and the model's dataset with it

A weekly check answers Monday's question today, and two years from now its log is the table a model needs.

  1. Write the definitions down: new customer, CAC, week start day, which spend counts, the channel assignment rule, and where Amazon belongs.
  2. Land daily spend and impressions from each platform, plus Shopify orders, in the warehouse, and aggregate them to weeks.
  3. Each week, compare platform-reported purchases with Shopify new customers by channel, and explain any drift in that ratio before reading the CAC.
  4. Split the change in blended CAC into spend mix and channel CAC, with the same convention every week.
  5. Log promotions, price changes, product launches, and stockouts in a weekly table. These become the controls.
  6. Change spend on purpose now and then, one channel at a time, so the history has the variation a model needs.

Keep platform-reported conversions out of any CAC built on Shopify counts, and restate the history whenever the assignment rule changes. Do not fill a missing week of the outcome with zero either, which the Meridian docs warn will skew estimates. The same mix and rate method works for other metrics, as shown in root-cause analysis for a metric that moved.

Steps 3 and 4 repeat every Monday, and they are where the choice of tool matters. A spreadsheet handles a monthly table like October's, though it gets harder to maintain once several exports and a promotion log must line up each week. The open-source models are well documented: Meridian is free for anyone to use, Robyn is Meta's open-source R code, and PyMC-Marketing runs in Python. Robyn's guide notes that building in-house requires data science capabilities and the most internal time of any option. A full MMM is specialist work for an experienced modeler or a measurement firm, and Orion does not replace it.

Orion, the analytics platform, can do the weekly check with the growth team's own rules. The team tells it how a CAC move gets judged: the CAC definition, the last-click assignment rule, which gap between platform reports and Shopify gets checked first, and who signs off on a shift in budget. Orion records those rules in Context pages and reads them before each analysis. With spend from each platform and Shopify orders in the warehouse, it joins them by week and splits the CAC change into mix and channel CAC.

Some gaps only a person can fill, such as a promotion nobody logged. Orion asks about them in cards on the project, and the replies shape the following weeks' analysis. When a reply teaches it something lasting, such as a platform whose spend data lands two days late, Orion proposes a change to the Context pages, and the team applies or dismisses it. The same cards carry its suggested analyses, for example a comparison of platform-reported purchases with Shopify for whichever channel drifts most.

Every analysis lands in a notebook holding the SQL and Python behind it, which an analyst can inspect, edit, and rerun. A Python notebook in Orion can also run a simple first regression of weekly new customers on weekly spend by channel, with a promotion flag. Treat that as a starting read. It lacks the carryover (ad effects that last into later weeks), saturation (each added dollar returning less), and experiment calibration that Meridian and Robyn build in, and it inherits every correlation in the spend history.

After the split has matched the team's own numbers for a few weeks, the growth lead can request a Monday Workflow. Orion builds it and gives it one full test run, and it starts running only once the team approves it. From then on the Workflow names the channels behind each week's CAC move before the Monday meeting.

Before anyone cuts the TikTok budget

About half of October's rise in blended CAC came from where the money went. Confirm whether the TikTok increase was planned, and measure what TikTok adds with a lift test, before cutting any channel on the strength of one blended number.

For the budget review, bring the split of the CAC change with its convention, the written CAC definition, a count of clean weeks toward the 104 a model needs, and the one channel you would test first. Label which numbers come from Shopify, which come from the platforms, and which depend on the assignment rule.

Keep reading

View all