Sub topic 13
Attribution basics and their limits
This chapter assumes you know basic marketing vocabulary (conversion, impression, campaign), can name the common channels, and can work with percentages. It also assumes you have chosen metrics for each channel, as covered in the previous chapter. Here you will learn what attribution is, how the common models split credit, and why none of them gives you a perfect answer.
What attribution does
Attribution is the practice of assigning credit for a conversion to the marketing touchpoints that came before it. A touchpoint is any recorded interaction, such as an ad click, an email open, or a visit from a search result.
Most customers do not convert after one touch. A buyer might read a blog post, see a social ad, click a search ad, and then buy after a reminder email. If you pay for all four, you need some rule for deciding which ones deserve the next dollar. That rule is your attribution model.
Attribution feeds two later decisions in this tutorial: how you rebalance the budget at each review, and how you judge a test. A weak attribution choice can push money away from channels that are doing real work.
Common attribution models
Each model is a rule for splitting the credit for one conversion across the touchpoints in its path.
- Last touch gives all credit to the final touchpoint before conversion.
- First touch gives all credit to the first recorded touchpoint.
- Linear splits credit equally across every touchpoint.
- Time decay gives more credit to touchpoints closer to the conversion.
- Position-based gives larger shares to the first and last touchpoints and splits the rest among the middle ones. A common split is 40% first, 40% last, and 20% shared across the middle.
The diagram shows one customer path. The models that follow it assign different credit to the same four touches.
Here is a short script that applies four of the models to that path. It assigns one conversion's credit to each channel.
path = ["seo_content", "social_ads", "search_ads", "email"]
def last_touch(path):
return {ch: (1.0 if i == len(path) - 1 else 0.0) for i, ch in enumerate(path)}
def first_touch(path):
return {ch: (1.0 if i == 0 else 0.0) for i, ch in enumerate(path)}
def linear(path):
return {ch: 1 / len(path) for ch in path}
def position_based(path, end_share=0.4):
n = len(path)
middle = (1 - 2 * end_share) / (n - 2)
credit = {}
for i, ch in enumerate(path):
credit[ch] = end_share if i in (0, n - 1) else middle
return credit
for name, model in [("last", last_touch), ("first", first_touch),
("linear", linear), ("position", position_based)]:
print(name, {k: round(v, 2) for k, v in model(path).items()})The output shows how much the answer depends on the rule. Last touch gives email 100% and SEO content 0%. First touch reverses that. Neither is wrong as arithmetic, but they lead to opposite budget decisions from the same data.
The script assumes each channel appears once in the path and that the path has at least three touches. Real data has repeated touches in the same channel and paths with one or two touches, so a production version needs to handle those cases.
Match the model to the goal
No model is correct in general. Pick the one whose bias is least harmful for your goal.
| Goal | Useful model | Reason |
|---|---|---|
| Generate awareness | First touch | Shows which channels bring new people in |
| Drive immediate sales | Last touch | Shows what closes the sale |
| Long, multi-step buying | Position-based or time decay | Credits both the opening and the closing touches |
| Early comparison when unsure | Linear | Avoids a strong bias while you collect data |
State the model in the channel mix plan. If you change it between reviews, you cannot compare one period with the next.
Limits you need to know
Credit is not cause
An attribution model reports which touchpoints appeared in a path. It does not show that a touchpoint caused the purchase. Branded search is the standard example. A person who already intends to buy types your company name into a search engine and clicks your ad. Last touch gives the search ad the credit, but that customer probably would have bought anyway.
Tracking gaps hide touches
Several things break the chain of recorded touchpoints:
- People switch between a phone and a laptop, so one person looks like two.
- Browser privacy settings and cookie limits shorten how long a visitor can be recognized.
- Consent banners mean some visitors are never tracked.
- Offline influences such as word of mouth, events, and printed material leave no digital trace.
Channels that rely on these hidden influences, especially earned channels and content, tend to be undervalued. Channels that sit near the end of the path, such as search and email, tend to be overvalued.
Platforms grade their own work
Each ad platform reports conversions using its own rules and its own tracking window. Add up the conversions claimed by several platforms and the total often exceeds the sales you actually made, because each platform claims the same customer.
Small numbers are noisy
With few conversions per channel, one unusual week can change the apparent ranking. Do not shift a large share of budget based on a handful of conversions.
Methods that complement attribution
Because path-based models only describe correlation, use at least one check that is closer to cause and effect.
- Holdout test. Withhold a campaign from a randomly chosen group, then compare conversions between the exposed group and the held-out group. The difference is the lift, the extra conversions caused by the campaign.
- Geographic test. Turn a channel off or on in some regions and compare them with similar regions where nothing changed.
- Pre/post comparison. Compare results before and after a change. This is weaker, because season, price changes, and other campaigns can also move the numbers.
- Self-reported source. Ask new customers "How did you hear about us?" at checkout or sign-up. The answers are imperfect, but they surface influences that tracking misses, such as podcasts and referrals.
- Blended metrics. Compare total spend with total new customers across all channels. This blended CAC does not depend on any attribution rule.
The last method connects to the unit economics chapter. Compare each channel's attributed CAC with the blended CAC. If channel-level numbers look much better than the blended number, the attribution model is probably over-crediting.
total_spend = 20000
total_new_customers = 160
blended_cac = total_spend / total_new_customers
attributed = {
"search_ads": {"spend": 8000, "customers": 100},
"email": {"spend": 2000, "customers": 60},
"social_ads": {"spend": 5000, "customers": 40},
}
claimed = sum(v["customers"] for v in attributed.values())
print(f"blended CAC: {blended_cac:.2f}")
print(f"customers claimed by channels: {claimed} vs actual {total_new_customers}")
for name, v in attributed.items():
print(f"{name}: {v['spend'] / v['customers']:.2f}")In this example the channels claim 200 customers, but the business gained only 160. The channels together over-claim by 40, which tells you the channel-level CAC figures are too flattering.
Using attribution in the review cycle
A practical approach for a team without a data science function:
- Choose one primary model that fits the goal, and keep it fixed for several review periods.
- Record the blended CAC every period as a sanity check.
- Run at least one holdout or geographic test each quarter on the channel that takes the most budget.
- Treat attribution results as a ranking signal. Move budget in small steps, for example 5 to 10 percentage points at a time, and confirm the effect at the next review.
- Document known blind spots, such as an offline event that is not tracked, so that readers of the report do not over-trust the numbers.
Common errors
- Switching models until a favored channel looks good.
- Cutting a top-of-funnel channel because last touch shows zero conversions, then seeing search and email results decline a few weeks later.
- Comparing a channel's attributed numbers to another channel's numbers that came from a different platform and window.
- Treating a small test sample as proof.
Exercise
A customer path is: podcast mention (not tracked), social ad click, branded search ad click, purchase. Under last touch, which channel gets the credit, and name two reasons that credit may be misleading.
Show answer
Branded search ad gets 100% of the credit. It may mislead because the customer already knew the brand, probably from the untracked podcast, so the search click captured intent rather than creating it. The social ad's role is also invisible under last touch, and the podcast leaves no trace in the data at all.
Exercise
Your three ad platforms report 90, 70, and 50 conversions in a month, a total of 210. Your order database shows 140 new customers. What does this gap suggest, and what is the first step you should take before changing the budget?
Show answer
The platforms are claiming overlapping credit for the same customers, since 210 exceeds the 140 actual. Before changing the budget, reconcile against your own order data, compute blended CAC (total spend divided by 140), and compare it with each channel's reported CAC. If possible, run a holdout test on the largest channel to measure its real lift.