
In short
Marketing mix modeling (MMM) uses your past spend and sales data to show which channels drove results and where budget delivered the most return. This guide explains how MMM works, how Google's open-source Meridian model fits in, what data you need, and how to use the results to reallocate budget.
Contents9 sections
Marketing mix modeling (MMM) is a statistical, causal inference method that measures how each marketing channel, such as Google Ads, Meta, TV or promotions, drives an outcome like sales, revenue or leads. It uses aggregated historical data, not cookies or user-level tracking, to show what worked, what didn't, and where budget delivered the most return.
By Jay Joshi
What is marketing mix modeling (MMM)?
MMM measures the return on investment (ROI) from your marketing activities and uses that to guide budget decisions. It looks at channels such as TV, digital and print, plus promotions and other activity, and estimates how much each one contributed to your KPI.
Think of MMM as a compass. It shows where to reduce spend and where to invest more, based on how each channel actually performed.
MMM is not just a reporting exercise. Its job is to uncover causal relationships between marketing actions and business outcomes. In simple terms, it explains what worked, what didn't, and where your spend delivered the most value.
What MMM is not
It is not mainly a forecasting tool. MMM analyses past data to explain which channels or activities had the biggest impact on your KPIs and how well your budget was used. A model that predicts well does not always explain why outcomes happened. MMM is built for causal inference, not prediction.
It does not rely on user-level data. MMM works on aggregated data, so it does not need cookies or individual tracking. With budgets tight and privacy rules stricter than ever, this is a big part of why MMM is back in focus.
Once you know the true drivers of performance, you can make evidence-based decisions about future budgets. That is where optimisation comes in, covered later in this guide.
Key concepts behind MMM
A few ideas sit at the core of every MMM. Understanding them makes the outputs much easier to trust and act on.
Saturation (diminishing returns)
After a point, spending more on a channel brings smaller gains. For example, spending ₹50,000 on online ads might get you 500 customers, but doubling it to ₹1,00,000 might bring 800, not 1,000. The most responsive audience has already been reached, and reaching the rest is harder and costlier.
Lagged impact (carryover or adstock)
People don't always act straight after seeing an ad. They may take days or weeks to respond. This delayed impact is called the carryover effect. MMM accounts for it by modelling how a campaign's influence fades over time.
Multicollinearity
Multicollinearity happens when two or more inputs are highly correlated. For example, if a brand raises both TV and YouTube spend during major campaigns, it is hard for the model to separate their individual effects. This is common in marketing, where channels are often switched on together.
Multicollinearity does not hurt predictions much, but it makes insights harder to interpret, especially when you want to know which channel drove results. Ridge regression handles it well but gives up some interpretability. That is why many practitioners turn to Bayesian modelling, which offers better transparency and more reliable estimates in these cases.
Priors (in Bayesian MMM)
In Bayesian MMM, each channel or "treatment" (Google Ads spend, Meta spend, organic traffic, promotions) influences your chosen KPI. Before the model learns from your data, you give it your assumptions about these effects. These assumptions are called priors.
Priors matter because most businesses don't have huge datasets. A model can learn patterns directly from large datasets, but with limited data, priors guide it with your starting beliefs and keep it grounded. You can set priors based on expected ROI, marginal ROI (mROI), contribution or coefficients. Past MMM results, industry benchmarks and experiments are all good sources.
If you don't have strong assumptions, start with default priors and adjust them once you see the results.
How MMM works: from data to decisions
Here is how a typical MMM run works, using the setup in our marketing mix modeling service as the example.
1. Gather the input data
Data can be pulled in through connectors or uploaded manually as a CSV file.

Input | Required? | What it is |
|---|---|---|
Media spend | Yes | Spend for each channel. Must match the media data in channels and time periods. |
Media data | Optional | Advertising activity by channel and time, such as impressions or clicks. Values must be non-negative. If not provided, spend is used as media data. |
Control variables | Recommended | External factors that affect results beyond media, such as holiday weeks, promotions, sentiment scores or economic indicators. They help the model separate the true impact of media from other effects. |
KPI | Yes | The outcome you want to explain: revenue, conversions, clicks or leads. If the KPI is not revenue, you can add a "revenue per KPI" column so the model can estimate revenue. |
KPI type | Yes | Revenue (if revenue or revenue-per-KPI data is available) or non-revenue (clicks, sign-ups, leads). |
Target country | Yes | The country where the ads run. Used to build a holiday-week feature for the control variables, which improves the baseline. |

2. Use weekly data
Weekly data is the right grain for MMM. Daily data is too noisy to learn from, and monthly data gives the model too few data points.
3. Choose the level of analysis
Channel level: compare how different channels performed, then use those insights for future budget allocation. Data comes from connectors for Google Ads, DV360 and Meta, or from your own CSV file.
Campaign level: compare individual campaigns within a single channel. This is currently available for Google Ads, DV360 and Meta.
If you have a linked GA4 account, you can also pull GA4 data at either level. This is optional, but it is useful for adding control variables that improve accuracy.
4. Set the priors: ROI mean and sigma
ROI mean (μ): the expected average return per channel. The model uses a log-normal distribution for ROI, because ROI cannot be negative and the log-normal guarantees that. The recommended default is 0.2. Meridian also supports channel-specific ROI priors, including priors calibrated from incrementality experiments (Google: ROI priors and calibration).
ROI sigma (σ): how much ROI can vary around the mean. A higher sigma allows more uncertainty, which is useful when you are unsure about ROI. A lower sigma sets a tighter bound and makes the model lean more on your assumption. The default is 0.9.
Based on these two values, the tool shows the expected average ROI with a 95% confidence range, so you can see exactly what you are telling the model before it runs.

5. Fit the model
The model learns from the data using Bayesian methods and Markov chain Monte Carlo (MCMC) sampling. This makes sure the parameters converge properly, but it is computationally heavy. A run usually takes around 8–10 minutes. While it runs, you can review exploratory data analysis (EDA) plots of your data. When it finishes, two reports are emailed to you along with the input settings you chose.

6. Read the results
The summary report covers two things:
Model fit. Metrics such as R-squared, MAPE and wMAPE, and a chart of predicted vs actual results, show whether the model is on track. Remember that a good fit is necessary but not enough: MMM is there to explain causes, not just to predict.
KPI contribution. How media and non-media activity drove your KPI. You can compare ROI, share of spend and share of incremental revenue (or KPI) across channels, and see the split between the baseline and each marketing channel.
The optimisation report turns those findings into a budget recommendation. It is covered in its own section below.

MMM tools: Robyn, LightweightMMM and Meridian
Several tools are available for MMM:
Robyn, built by Meta, is an open-source R package that uses ridge regression and machine learning. It works well for both online and offline media, and factors in elements like price and seasonality.
LightweightMMM was Google's earlier Python tool using Bayesian methods. It was powerful but needed significant technical skill.
Meridian is Google's newer and more advanced MMM framework. Google now recommends moving from LightweightMMM to Meridian for better accuracy, customisation and usability.
Google Meridian: what it is and how it works
Meridian is Google's open-source MMM framework, built on a Bayesian approach. It is designed to give accurate, customisable and privacy-safe insight into marketing performance without cookies or user-level data. Through the MMM Data Platform it has native support for Google Ads, YouTube and GA4 data, so it is built for real-world scale.
What makes Meridian stand out
Flexible use of prior knowledge. You can feed in what you already know (past MMM results, benchmarks or experiments) through ROI priors. This helps most when your data is limited or noisy.
Geo-level hierarchical modelling. A campaign might work in metro cities but not in smaller towns. Meridian can model effectiveness by region. It scales to 50+ geographic areas and several years of weekly data, using TensorFlow Probability and XLA, with optional GPU acceleration for speed.
Built-in uncertainty estimation. Instead of one fixed number, Meridian gives a range of likely outcomes with credible intervals. You see not just what might happen, but how likely each outcome is.
Full customisability. Because it is open source, you can adjust model components to fit your business, unlike a black-box tool. You will need technical expertise to use this flexibility well.
Budget optimisation and what-if analysis. Meridian can optimise spend both across channels and in total, and simulate budget scenarios to estimate their effect on ROI.
Real marketing dynamics.
Saturation: captured with Hill functions, so doubling spend does not automatically double impact.
Lagged impact: modelled with adstock functions.
Reach and frequency (optional): you can add how many unique people saw your ads (reach) and how often (frequency). This improves impact estimates for video platforms like YouTube and TV bought through DV360, where repeated exposure shapes results.
Challenges to keep in mind
Computational demand. Meridian uses Bayesian posterior sampling, which is resource-intensive. GPUs are often recommended, especially for large or geo-level datasets.
Setting priors is hard. Choosing prior distributions is subjective and difficult even for experts, and results can shift with your assumptions.
Common Meridian issues and fixes
Problem | What it looks like | Fix |
|---|---|---|
Negative baseline | The model gives all the credit to media, leaving a negative baseline. | Narrow the ROI sigma (standard deviation) for paid channels. Add control variables such as a holiday flag, economic trends, a Google Trends score or organic data. |
Convergence errors | The model struggles to stabilise. | Check for multicollinearity (for example, clicks and impressions rising together) and remove one of the variables. Adjust MCMC settings, such as more chains or iterations. |
How to use MMM for marketing spend optimization
Explaining the past is only useful if it changes what you do next. Because the model has learnt how each channel responds to spend, including saturation and carryover, it can work out a better split of the same budget.
Whether it is a Bayesian framework like Meridian or a ridge-regression and machine-learning approach like Robyn, the logic is the same: estimate each channel's response curve from history, then move money from channels that have hit diminishing returns to channels with room to grow.
In our MMM product, the optimisation report compares current and optimised budget, ROI and incremental KPI for the scenario you set up. It also shows the channel-level constraints you applied.
Fixed-budget optimisation. Total spend stays the same, so the net budget change is zero. Only the split between channels changes.
Spend change by channel. One chart shows the optimised spend for each channel and the difference from current spend.
Spend share by channel. A second chart shows the optimised spend as a percentage for each channel.
In the example in our report, optimising the same budget would have raised ROI from 3.8 to 4.2, with revenue up by $80K (that sample report was in US dollars). Typically, the optimised ROI is at least equal to the current ROI.



Meridian adds scenario planning on top: you can simulate different budget levels and see the estimated effect on ROI, with uncertainty ranges, before committing spend.
A practical routine:
Run the model on your weekly history and check model fit.
Review KPI contribution: look for channels where share of spend is well above share of incremental revenue, and the reverse.
Run a fixed-budget optimisation with sensible channel constraints.
Shift budget in steps rather than all at once, and keep feeding new data back into the model.
When MMM is (and isn't) a fit
MMM is a good fit when:
You spend across several channels, online and offline, and need to know which ones are pulling their weight.
Channels often run at the same time, so platform-reported numbers overlap and are hard to compare.
You want measurement that does not depend on cookies or user-level tracking.
You need to plan budget by region and have geo-level data (a strength of Meridian).
You have past experiments or benchmarks you can use as priors.
MMM may be a weaker fit, or need more care, when:
You have very little history. Priors help with smaller datasets, but the model still needs enough weekly data to learn from. Google's rule of thumb for Meridian is at least two years of weekly data for geo-level models and three years for national-level models (Google: collect and organise your data).
Your data is only available monthly, which gives the model too few points.
You want to run Meridian in-house without data science support. It needs technical skill to set priors, deal with multicollinearity and fix convergence errors, plus enough computing power (often GPUs) for large datasets.
You need daily, campaign-by-campaign decisions. MMM works at weekly grain and is built to explain causes over time, not to replace day-to-day platform reporting.
If MMM sits alongside your wider measurement setup, our analytics services team can help connect the data sources it depends on.
How AnalyticsLiv helps with MMM
Our marketing mix modeling service brings the steps above into one workflow: connectors for Google Ads, DV360, Meta and GA4 (or CSV upload), channel- and campaign-level analysis, guided priors with sensible defaults, and summary and optimisation reports emailed after each run. Clear visuals are a core part of the reports, so the findings are easy to act on.
Under the hood, our MMM product runs on Google Meridian, Google's open-source marketing mix model, so you get Meridian's Bayesian modelling without having to run the code yourself.
Make your next budget decision with evidence
MMM is not just about running models. It is about turning data into decisions you can defend: seeing what really drives your KPIs, and knowing how to move budget to get more from every rupee. It helps you learn from the past, act in the present and plan better for the future.
If you want to see what MMM shows for your channels, explore our marketing mix modeling service or talk to a specialist.


