Try it on your own data
Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.
Start freeA data-driven attribution model assigns conversion credit from your own path data instead of a fixed rule: it compares journeys that converted with journeys that did not and credits the touches linked to a higher chance of converting. Below, Shapley values and Markov removal effects are worked by hand, then checked for when the data are too thin to trust.
What you will learn
- Shapley credits each channel's average lift in conversion rate; Markov credits the drop in conversions when a channel is removed
- On the same 147 conversions the two methods gave Social 18.4 and 43.8: data-driven is a family of methods, not one answer
- Below about 200 conversions a month, one noisy path can swing a channel's share; compare rule-based models side by side instead
What is a data-driven attribution model?
A data-driven attribution model splits credit for a conversion across marketing touchpoints using your own path data instead of a fixed rule. Rule-based models decide in advance: last touch gets everything, or every touch gets an equal share. A data-driven model compares journeys that converted with journeys that did not, and gives more credit to touches whose presence goes with a higher chance of converting.
Google's own help pages describe it this way. Google Ads says its data-driven attribution compares the paths of customers who convert with the paths of customers who don't, to calculate the contribution of each ad interaction. Google Analytics describes a counterfactual approach: estimate the conversion probability with and without a given interaction, and credit the interaction with the difference. Neither page publishes the exact algorithm, which is one reason it helps to work the two textbook methods by hand.
This guide does that on a small dataset: Shapley values, the cooperative-game method behind several published attribution models, and the Markov chain removal effect. Then it compares both with last-click and linear on the same conversions, and shows when the data are too thin for either, so a rule-based model is the more honest choice. For the rule-based models themselves, see attribution models; for combining several touches in one report, see multi-touch attribution.
The sample paths: seven journeys, three channels
Sample data: 3,000 journeys over a month on a small online store, with three channels: Social, Email and Search. Each row is one distinct path; the order of touches is shown left to right.
| Path | Journeys | Conversions | Conversion rate |
|---|---|---|---|
| Social | 1,000 | 10 | 1.0% |
| 300 | 9 | 3.0% | |
| Search | 600 | 36 | 6.0% |
| Social → Search | 500 | 40 | 8.0% |
| Email → Search | 200 | 20 | 10.0% |
| Social → Email | 200 | 8 | 4.0% |
| Social → Email → Search | 200 | 24 | 12.0% |
| Total | 3,000 | 147 | 4.9% |
Two things matter here that rule-based models ignore. First, the non-converting journeys: 2,853 of the 3,000. Second, the conversion rate of each combination of channels, not only the count of conversions.
Method 1: Shapley values, step by step
The Shapley value comes from cooperative game theory (Shapley, 1953). Treat each channel as a player and the conversion rate of a combination of channels as the value that combination produces. A channel's credit is its average marginal contribution: how much the conversion rate goes up when that channel joins, averaged over every order in which the channels could join.
Step 1: value of each combination. Read the conversion rate of each channel set from the table. With three channels there are seven non-empty sets, and the dataset has one row for each: Social 1.0%, Email 3.0%, Search 6.0%, Social + Search 8.0%, Email + Search 10.0%, Social + Email 4.0%, all three 12.0%. The empty set is 0.
Step 2: marginal contributions in every order. With three channels there are 3 × 2 × 1 = 6 orders. Each cell is the rise in conversion rate when that channel joins, in percentage points:
| Order of joining | Social adds | Email adds | Search adds |
|---|---|---|---|
| Social, Email, Search | 1.0 | 3.0 | 8.0 |
| Social, Search, Email | 1.0 | 4.0 | 7.0 |
| Email, Social, Search | 1.0 | 3.0 | 8.0 |
| Email, Search, Social | 2.0 | 3.0 | 7.0 |
| Search, Social, Email | 2.0 | 4.0 | 6.0 |
| Search, Email, Social | 2.0 | 4.0 | 6.0 |
| Average (Shapley value) | 1.5 | 3.5 | 7.0 |
For example, in the first row Social joins an empty set (0 → 1.0%), Email joins Social (1.0% → 4.0%, so +3.0), and Search completes the set (4.0% → 12.0%, so +8.0).
Step 3: turn values into credited conversions. The three Shapley values add up to 12.0 points, the conversion rate of the full set, which is the property that makes the method attractive. Scale each channel's share to the 147 conversions:
- Search: 7.0 ÷ 12.0 = 58.3% → 85.7 conversions
- Email: 3.5 ÷ 12.0 = 29.2% → 42.9 conversions
- Social: 1.5 ÷ 12.0 = 12.5% → 18.4 conversions
Shapley reads Social as a weak channel: adding it rarely lifts the conversion rate by much. Note what it ignores: order. Social → Search and Search → Social would count as the same set.
Method 2: Markov chain removal effect
The Markov approach, described for online journeys by Anderl and co-authors (2016), treats each path as a walk through states: Start, each channel, then Conversion or Null (no conversion). It estimates the probability of moving from one state to the next, then asks: if a channel disappeared, how much would the overall conversion probability fall?
Step 1: transition probabilities. Count every move in the seven paths. For example, 1,900 journeys pass through Social (1,000 + 500 + 200 + 200). From Social, 500 go on to Search, 400 to Email, 10 convert and 990 end without converting.
| From | To Social | To Email | To Search | Convert | Null |
|---|---|---|---|---|---|
| Start (3,000) | 63.3% | 16.7% | 20.0% | — | — |
| Social (1,900) | — | 21.1% | 26.3% | 0.5% | 52.1% |
| Email (900) | — | — | 44.4% | 1.9% | 53.7% |
| Search (1,500) | — | — | — | 8.0% | 92.0% |
Step 2: conversion probability from each state, working backwards:
- From Search: 8.0%.
- From Email: 1.9% + 44.4% × 8.0% = 5.44%.
- From Social: 0.53% + 26.3% × 8.0% + 21.1% × 5.44% = 3.78%.
- From Start: 63.3% × 3.78% + 16.7% × 5.44% + 20.0% × 8.0% = 4.90%, which matches 147 ÷ 3,000.
Step 3: remove one channel at a time. Removing a channel sends every walk that reaches it to Null.
- Without Search: Email converts at 1.9%, Social at 0.53% + 21.1% × 1.9% = 0.92%, Start at 63.3% × 0.92% + 16.7% × 1.9% = 0.90%. Removal effect: 1 − 0.90 ÷ 4.90 = 81.6%.
- Without Social: Start = 16.7% × 5.44% + 20.0% × 8.0% = 2.51%. Removal effect: 48.8%.
- Without Email: Social = 0.53% + 26.3% × 8.0% = 2.63%; Start = 63.3% × 2.63% + 20.0% × 8.0% = 3.27%. Removal effect: 33.3%.
Step 4: normalise. The removal effects add up to 163.8%, so the shares are Search 49.8% (73.3 conversions), Social 29.8% (43.8) and Email 20.3% (29.9).
The Markov method rates Social far higher than Shapley does, because 63% of journeys start there and many of them flow on to Search. Take Social away and those walks never reach Search. A first-order chain only remembers the last state, so it also loses some information about longer paths.
How the data-driven models compare with rule-based ones
Same 147 conversions, five ways to split them:
| Channel | Last touch | First touch | Linear | Position-based | Shapley | Markov removal |
|---|---|---|---|---|---|---|
| Social | 10 | 82 | 42.0 | 43.6 | 18.4 | 43.8 |
| 17 | 29 | 31.0 | 27.8 | 42.9 | 29.9 | |
| Search | 120 | 36 | 74.0 | 75.6 | 85.7 | 73.3 |
Position-based uses the common 40/20/40 split for three touches, half and half for two (see position-based attribution). Three readings stand out:
- The two data-driven methods disagree with each other. Social gets 18.4 conversions under Shapley and 43.8 under Markov, a factor of 2.4. "Data-driven" names a family of methods, not one answer.
- Markov lands close to linear and position-based here. On a small, simple path set, a rule-based multi-touch model can be within one or two conversions of a removal-effect model.
- Last touch is the outlier. It gives Search 120 of 147 and Social 10. Any multi-touch view, rule-based or not, moves 30 or more conversions away from Search.
Conversions credited to Social, by model
of 147 conversionsHow much data does data-driven attribution need?
Google Ads accepts every conversion action for data-driven attribution, but its help page recommends at least 200 conversions and 2,000 ad interactions in supported networks within 30 days. The toy store has 147 conversions a month. Plenty of small sites sit below that line.
Why the volume matters: every model input is a rate estimated from a small sample. The three-channel path has 24 conversions from 200 journeys. Its 95% interval is 12.0% ± 4.5 points, so anything from 15 to 33 conversions would be ordinary sampling noise. Rerun both models at the two ends:
| Social → Email → Search conversions | Total conversions | Shapley: Social share | Markov: Social share |
|---|---|---|---|
| 15 (low end) | 138 | 0.0% | 30.1% |
| 24 (observed) | 147 | 12.5% | 29.8% |
| 33 (high end) | 156 | 18.2% | 29.6% |
A change well inside the noise of one cell moves Social's Shapley credit from zero to almost a fifth. With dozens of channels and hundreds of paths, more cells become small, and some combinations have no data at all, so the model has to fill them with assumptions. Real implementations add smoothing, regression and priors to cope, which is also why their output is hard to check.
Rules of thumb before trusting a data-driven split:
- Check conversions per month against the 200 / 2,000 guidance; below it, treat results as unstable.
- Look for path combinations with fewer than about 30 conversions; their rates swing the result.
- Rerun on a different month. If channel shares move more than you would act on, the model is fitting noise.
When a rule-based model is the honest choice
Data-driven attribution is not automatically more accurate. It is more adaptive, which helps when there is enough data and hurts when there is not. Choose rule-based when:
- Volume is low. Under roughly 200 conversions a month, or when most path combinations have few conversions.
- You need to explain the number. A linear or position-based split can be recomputed by anyone from the path table; a vendor's model cannot.
- Non-converting paths are missing or partial. Both methods above need journeys that did not convert. If your data only holds converting paths, there is nothing to compare against.
- Paths are incomplete. Cookie restrictions, cross-device journeys and offline touches already remove touches before any model runs. Neither method recovers them.
- You need causal answers. Both methods measure association along observed paths. To know whether a channel causes extra conversions, run a holdout or incrementality test.
A practical compromise: report two or three rule-based models side by side and read the spread. If first touch, linear and last touch all rank a channel low, it is low; if they disagree sharply, that disagreement is the finding.
| Situation | Model to use | Why |
|---|---|---|
| Under ~200 conversions a month | Two or three rule-based models side by side | Data-driven shares swing with sampling noise |
| You must explain the split to finance | Linear or position-based | Anyone can recompute it from the path table |
| Only converting paths are stored | Rule-based | Shapley and Markov need non-converting journeys |
| High volume, complete paths, stable month to month | Data-driven as one view among several | Enough data per path combination |
| You need to know if a channel causes sales | Holdout or incrementality test | Attribution measures association, not cause |
Thresholds follow Google Ads guidance (200 conversions and 2,000 ad interactions in 30 days) and the sensitivity check in this article.
Common mistakes with data-driven attribution
- Treating the output as causal. A high Shapley or removal-effect share says a channel is present on paths that convert. It does not say turning it off would lose those conversions.
- Comparing data-driven credit across platforms. Each ad platform's model is trained on its own interactions; summing them double-counts conversions.
- Ignoring order. Shapley on channel sets cannot tell Social → Search from Search → Social; if order matters to your question, use a model that keeps it.
- Changing the model and the budget at the same time. Switch the model first and leave budgets alone for a cycle, or you cannot tell what moved the numbers.
- Forgetting the lookback window. A touch outside the window never enters any model. Set the window before comparing models.
Comparing models side by side in TapCub
TapCub does not have a data-driven model, Shapley or Markov. It runs the five rule-based models on the sessions before each conversion and shows them next to each other, which is the honest view for a store at the volume in this example.
- Set the conversion. In All-platform analytics › Behavior › Behavior analysis, open attribution and choose the goal (one event or page, written like a funnel step), for example the order event.
- Pick the touch and the window. The touch defaults to channel; you can switch to referrer channel, UTM source, UTM campaign, referrer domain or landing page. Set the lookback window from 1 to 90 days (default 30); it includes the session of the conversion.
- Select several models at once. Choose first, last, linear, position and time decay together. Each model becomes its own column, so a channel like Social in the example, with 82 first-touch conversions and 10 last-touch ones, stands out as an assist channel in one row.
- Read touch rate beside the credit. Each row also shows paths (conversions that included the touch), touch sessions and touch rate (paths ÷ touch sessions). A channel with many sessions and a low touch rate is like Social's 1.0% single-touch path.
- Compute Shapley or Markov yourself if you need them. Use All-platform analytics › Data › Data export to export raw rows and build the path table outside TapCub. Up to 50,000 conversions are scored per attribution run.
FAQ
What is a data-driven attribution model?
It is an attribution model that assigns conversion credit from your own path data rather than a fixed rule. It compares converting and non-converting journeys and credits touches in proportion to how much they appear to raise the chance of converting. Shapley values and Markov removal effects are two published ways to compute that credit.
How does data-driven attribution calculate credit?
The two textbook methods differ. Shapley averages each channel's marginal lift in conversion rate over every order in which channels could join. The Markov method models paths as transitions between channels and measures how much the overall conversion probability drops when a channel is removed. Both then scale shares to the number of conversions.
How many conversions do you need for data-driven attribution?
Google Ads recommends at least 200 conversions and 2,000 ad interactions within 30 days, though it allows the model with less. In the sample data, 147 conversions were enough for a single cell's noise to move one channel's Shapley share from 0% to 18%, so below that level treat results as unstable.
Is data-driven attribution better than last-click?
It uses more of the journey than last-click, which in the example gave Search 120 of 147 conversions. But with little data it can be less stable than a rule-based multi-touch model, and neither proves causation. Comparing linear, position-based and first touch is often a better step up from last-click at small volume.
Is data-driven attribution the same as multi-touch attribution?
Data-driven attribution is one kind of multi-touch attribution. Multi-touch means credit is shared across several touches; it can follow a fixed rule (linear, position-based, time decay) or be estimated from data (Shapley, Markov or a vendor's model).
Sources
- Google Ads Help. About data-driven attribution — compares converting and non-converting paths; recommends 200 conversions and 2,000 ad interactions in 30 days. Checked 2026-11-28.
- Google Analytics Help. Get started with attribution — counterfactual approach of data-driven attribution. Checked 2026-11-28.
- Lloyd S. Shapley. A Value for n-Person Games. In Contributions to the Theory of Games II, Princeton University Press, 1953.
- Eva Anderl, Ingo Becker, Florian von Wangenheim & Jan Hendrik Schumann. Mapping the customer journey: Lessons learned from graph-based online attribution modeling. International Journal of Research in Marketing 33(3), 2016.
- Xuhui Shao & Lexin Li. Data-driven multi-touch attribution models. Proceedings of KDD 2011.
Was this article helpful?
We use your answers to fix and expand this page.
Couldn’t send. Please try again in a minute.
Thanks for the feedback. We’ll use it to improve this page.You’ve already sent feedback on this page. Thanks.

Data Engineer
Writes about event design, data quality, and collection workflows, with verifiable implementation methods for reliable analytics.



