Sub topic 10
Which touchpoint gets the credit
This chapter assumes you can compute the funnel rates and cost metrics from earlier chapters (click-through rate, conversion rates, CAC, ROAS). It also assumes you know how UTM tags label traffic. Here you will learn what attribution is, how the common models split credit, and why the answer changes your decisions.
The problem attribution solves
A customer rarely buys after one ad. A typical path looks like this: someone sees a social ad, later searches your brand name and clicks a search ad, then opens your newsletter a week later and buys. Three touchpoints (a moment where the customer meets your marketing) led to one sale. Attribution is the set of rules that decides how much credit each touchpoint gets for that sale.
The rule matters because every metric that uses revenue depends on it. If the newsletter gets all the credit, the social ad looks like it produced nothing, and its ROAS is zero. If the social ad gets all the credit, the opposite happens. The same sale and the same spend can produce very different reports.
Where the data comes from
Attribution can only credit touchpoints that were recorded. Two sources feed it:
- UTM parameters on your links (
utm_source,utm_medium,utm_campaign) tell your analytics tool where a visit came from. - Ad platform tracking records impressions and clicks inside the platform, such as a pixel (a small tracking script on your site) that reports conversions back to the ad network.
The two sources often disagree. Your analytics tool usually counts only visits that arrive with a tag or a recognizable referrer. The ad platform counts conversions it can match to a user who saw or clicked its ad. Each tool applies its own attribution rule, so each reports its own numbers.
Common attribution models
A model is a rule for splitting credit. These are the ones you will meet most often.
| Model | How it assigns credit | Strength | Weakness |
|---|---|---|---|
| First touch | 100% to the first touchpoint | Shows what starts customer journeys | Ignores everything that closed the sale |
| Last touch | 100% to the final touchpoint before the sale | Simple, easy to audit | Over-rewards bottom-funnel channels such as brand search and email |
| Linear | Equal share to every touchpoint | Recognizes the whole path | Treats a passing impression like a decisive click |
| Time decay | More credit to touchpoints closer to the sale | Matches the idea that recent contact matters more | The decay rate is an arbitrary choice |
| Position based | For example 40% first, 40% last, 20% split across the middle | Values both the start and the close | The percentages are arbitrary |
Data-driven models, offered by some platforms, estimate credit from observed paths. They need a large volume of conversions to work and are hard to inspect. For a first campaign with a few dozen sales, a simple rule you can explain is usually the better choice.
A worked example
The customer in the diagram paid $150. Here is how each model splits that revenue across the three touchpoints.
touchpoints = ["social_ad", "search_ad", "newsletter"]
revenue = 150.00
def first_touch(path, revenue):
return {t: (revenue if i == 0 else 0.0) for i, t in enumerate(path)}
def last_touch(path, revenue):
return {t: (revenue if i == len(path) - 1 else 0.0) for i, t in enumerate(path)}
def linear(path, revenue):
share = revenue / len(path)
return {t: share for t in path}
def position_based(path, revenue):
# 40% first, 40% last, 20% split across the middle touchpoints
if len(path) == 1:
return {path[0]: revenue}
if len(path) == 2:
return {path[0]: revenue * 0.5, path[1]: revenue * 0.5}
credit = {t: 0.0 for t in path}
credit[path[0]] += revenue * 0.4
credit[path[-1]] += revenue * 0.4
middle = path[1:-1]
for t in middle:
credit[t] += revenue * 0.2 / len(middle)
return credit
models = {
"first touch": first_touch,
"last touch": last_touch,
"linear": linear,
"position based": position_based,
}
for name, fn in models.items():
result = fn(touchpoints, revenue)
parts = ", ".join(f"{t} ${v:.2f}" for t, v in result.items())
print(f"{name:15} {parts}")The output is:
first touch social_ad $150.00, search_ad $0.00, newsletter $0.00
last touch social_ad $0.00, search_ad $0.00, newsletter $150.00
linear social_ad $50.00, search_ad $50.00, newsletter $50.00
position based social_ad $60.00, search_ad $30.00, newsletter $60.00Suppose the social ad cost $50 to deliver to this customer's segment. Under first touch its ROAS is 3.0. Under last touch it is 0.0. Under linear it is 1.0. The ad did the same thing in all four cases. Only the rule changed.
What attribution cannot tell you
Every model above is a bookkeeping rule. None of them proves that a touchpoint caused the sale. Keep these limits in mind.
Credit is not causation
Someone who already planned to buy may search your brand name and click a search ad on the way. Last touch gives that ad full credit, but the customer might have bought without it. Attribution shows which touchpoints were present on the path. Only an experiment can show what the touchpoint added. A holdout test, where one group is not shown the ad, measures that directly.
Platform self-reporting overlaps
Each ad platform credits itself for conversions it can match. If a customer clicked both a social ad and a search ad, both platforms may claim the sale. Adding up platform-reported conversions often gives more sales than your store recorded. When that happens, treat your own order data as the true total and the platform numbers as claims to reconcile.
Attribution windows change the counts
A window is the number of days after a click or view in which a sale can still be credited. A 7-day click window drops a sale that happened on day 9. Platforms differ in their defaults, and some count view-through conversions (the person saw but did not click the ad). Compare two reports only if they use the same window.
Lost paths
Tracking breaks when people switch devices, clear cookies, use privacy tools, or buy by phone or in a store. Those sales are not attributed to any touchpoint and often fall into a "direct" or "unknown" bucket. A large direct bucket usually means your tracking is missing paths, not that customers typed your address by hand.
Choosing a model for a first campaign
You do not need the perfect model. You need a consistent one that you can explain. A practical approach:
- Pick one rule before launch, write it down, and use it in every report. Last touch is a common default because it is easy to verify against order records.
- Check the result against a second view. If you use last touch, also look at first touch. A channel that scores high on first touch and low on last touch is probably starting journeys that other channels close. Cutting its budget based on last touch alone could shrink the whole funnel.
- Use the same window for every channel you compare.
- Reconcile totals. Platform-reported sales should be compared with the sales in your own system, and the gap should be recorded in the report.
- Treat large differences between models as a reason to ask questions, not as a reason to pick the model you like.
| Situation | Reasonable choice |
|---|---|
| Short buying cycle, one or two channels | Last touch, checked against first touch |
| Long cycle with several channels | Linear or position based, plus a note on the limits |
| Need to know if a channel adds sales | Holdout test, not a different attribution model |
| Very few conversions (under about 30) | Any simple rule, and avoid conclusions about small differences |
Common errors
- Reporting one model's numbers as if they were facts, with no mention of the rule or window.
- Summing platform-reported conversions across platforms and comparing the total with actual orders.
- Cutting the channel that looks weak under last touch without checking its first touch role.
- Changing the model between reporting periods, which makes trends meaningless.
- Reading a small difference between channels as a real one when the sale counts are in the single digits.
Exercise
A customer's path is: display ad, email, branded search ad, then a $200 purchase. Using position-based credit (40% first, 40% last, 20% split across the middle), how much revenue does each touchpoint get? Then explain why the branded search ad's ROAS may overstate its real contribution under this model and under last touch.
Show answer
Display ad: 40% of $200 = $80. Email: 20% of $200 = $40 (it is the only middle touchpoint). Branded search ad: 40% of $200 = $80. Branded search tends to capture people who already know the brand and intend to buy, often because of the earlier display ad and email. The model gives the search ad large credit for being on the path, but it may have added little. A holdout test, where some people do not see the search ad, would show how many of those sales would have happened anyway.
Exercise
Your ad platform reports 40 sales from your campaign, but your store records 28 orders from all sources that month. Give two likely causes of the gap and say which number you would use as the total in your report.
Show answer
Likely causes include overlapping credit (another platform or channel also claimed the same sales), and a longer attribution window or view-through counting on the platform, which credits sales your own system attributes elsewhere or to no campaign. Use the store's 28 orders as the total, since they are real recorded orders. Report the platform's 40 only as the platform's own claim, and note the gap.