Marketing attribution models: how to split the value of a sale between ad channels
An attribution model is the rule that splits the value of a sale between the ad touchpoints a customer had before buying. First-click gives all the credit to the channel that brought the person in, last-click to the channel right before the purchase, linear splits it evenly, time decay favours recent touchpoints, position-based highlights the first and last, and data-driven calculates shares from accumulated data. There is no universally correct model: the choice depends on the length of the sales cycle and the number of channels. The key is to store every touchpoint so you can look at the same sales through different models.
Open the software development page
What attribution is and why decisions depend on it
Customers rarely buy after the first contact. Someone might see a video on social media, find the company in search a week later, subscribe to a newsletter and finally place an order after coming to the site directly. Each of those channels cost money, and the question is which one gets credit for the sale.
An attribution model answers that question with a rule chosen in advance. The rule determines which channel looks profitable in the report and which looks like a loss, and therefore where the marketer moves the budget next month. The same sales look different under different models, and that is not a data error but different answers to different questions.
An attribution model does not replace end-to-end analytics; it sits on top of it. First you need to collect the customer journey from ad to payment, which is covered in the guide to end-to-end analytics. This guide is about the next step: how to split the value of a sale between touchpoints you have already collected.
The main attribution models
| Model | How it assigns value | When it helps | Weak spot |
|---|---|---|---|
| First click | All of it to the first channel that brought the customer | Judging channels that bring new audiences | Ignores what led to the purchase |
| Last click | All of it to the last channel before the purchase | Short journeys, impulse buys | Undervalues awareness channels |
| Last non-direct click | All of it to the last channel, excluding direct visits | A simple baseline for most reports | Same biases as last click |
| Linear | Evenly across all touchpoints | Long journeys where every step matters | Treats key and incidental touches alike |
| Time decay | More to touchpoints closer to the purchase | Short promotions and sale periods | Gives little weight to the first contact |
| Position-based | A large share to first and last, the rest to the middle | When both discovery and closing matter | Proportions are set manually |
| Data-driven | Shares calculated from journeys with and without a purchase | Many conversions and channels | Needs volume, logic is opaque |
Last non-direct click is often the default in web analytics reports: a direct visit usually means the person already knew the company, so the sale goes to the previous source. For position-based attribution a common split gives two fifths of the value each to the first and last touchpoints and shares the remaining fifth among the middle ones, but you can adjust it to your business.
Example: one customer journey in different models
Take a journey with four touchpoints: a video ad on social media, then a search ad, then a newsletter email and finally a direct visit to the site with a purchase.
- First click: the whole sale goes to the social media video. The discovery channel looks very strong.
- Last non-direct click: the whole sale goes to the newsletter; the video and search get nothing.
- Linear: each of the four touchpoints gets a quarter of the value, including the direct visit.
- Time decay: the newsletter and the direct visit get the most, the video that started it all gets the least.
- Position-based: the main shares go to the video and the final touchpoint, search and the newsletter split the rest.
If you only look at last click, social media videos seem useless and you are tempted to switch them off. But a few weeks later the number of people who even hear about the company may drop, followed by newsletter sales. That is why it helps to compare at least two models: one that credits discovery and one that credits closing.
How to choose an attribution model
The choice depends on how your sales work, not on fashion. A few questions that help:
- How long is the path to purchase? If people decide within a day, last non-direct click gives a reasonable picture. If it takes weeks or months, you need models that see early touchpoints.
- How many channels run at once? With one or two channels a complex model adds little. With five or more, the difference between models becomes noticeable.
- What is the report for? To judge channels that bring new audiences, look at first click; to judge channels that close the sale, look at last click.
- Is there enough data? Data-driven models need a large number of conversions; on a small volume they produce random results.
- Who will use the report? Everyone understands a simple model; a complex one will need to be explained and defended.
A practical approach is to pick one main model for regular reports and budgeting and keep one or two others for comparison. If a channel looks good in every model, you can scale it; if only in one, it is worth finding out exactly what it is being credited for.
Data-driven attribution: requirements and limits
A data-driven model compares journeys that ended in a purchase with journeys that did not and estimates how much the presence of each channel changes the likelihood of buying. It sounds like the best option, but it has requirements.
- Volume. You need enough conversions and journeys for each channel, otherwise the shares jump from week to week.
- Completeness. The model sees only touchpoints that reached the system. Calls, offline meetings and untagged visits do not exist for it.
- Consent. If some visitors declined cookies, their journeys are missing, and the model learns from an incomplete sample.
- Transparency. How a share was calculated is usually not visible; explaining to a manager why a channel got that much is harder than with simple models.
So data-driven works well for companies with a large flow of orders and careful tagging. A small business usually gets more from a clear model and an honest comparison of two or three simple rules.
Why every system counts differently
Ad accounts, web analytics and the CRM almost never show the same picture. Each platform sees only its own touchpoints and tends to credit the sale to itself: if a customer saw ads in two ad systems, both may record the purchase. That is why the sum of conversions across all accounts is often higher than the real number of orders.
Attribution windows differ too: one system counts clicks over the last few weeks, another also counts views without a click. Figures from different ad accounts cannot be compared directly.
The solution is to keep one reference attribution in your own analytics or data warehouse and reconcile the ad accounts against it. Let the ad accounts do their job of optimising delivery inside their platform, and make decisions about splitting the budget between platforms using your own model. How to connect spending with results by creative is covered in the guide to ad creative metrics.
How to build attribution into end-to-end analytics
Attribution is a calculation on top of data, and it cannot be more accurate than the data itself. Most of the work happens in the development of the website, app and integrations:
- store not just the last source but the history of touchpoints: channel, campaign, ad and the time of each visit;
- tie touchpoints to a single customer ID that is passed into the lead form and the CRM;
- send the purchase event from the server once payment is confirmed, with the amount and order number;
- account for calls and messenger enquiries through separate numbers or source tags;
- keep raw touchpoint data on your side so you can recalculate sales in any model, not only the one built into a reporting service;
- run trackers with user consent in mind and understand what share of the audience is missing from the data.
If the full customer journey is stored, you can switch models at any time without losing history. If only the last source is kept, other models can no longer be calculated. Apps add in-product events on top of this, covered in the guide to product analytics for apps.
Limits: attribution shows association, not cause
Any attribution model splits value between touchpoints but does not prove that the sale would not have happened without a particular channel. A customer who searched for the company by name would have bought without the search ad, yet the model still credits that ad.
To check a channel's real contribution, companies run experiments: part of the audience or some regions do not see the ads, and the results are compared with those who did. Such tests are harder and more expensive, but they answer a question attribution does not, namely how many sales the channel added. Good practice is to rely on an attribution model day to day and periodically test the large channels with an experiment.
How we approach attribution at JEEKSSHIRE 24
We plan analytics at the design stage: we store the touchpoint history, pass the customer ID into leads and the CRM, count purchases on the server and keep raw data so the client can view sales through different models. Trackers are connected with user consent in mind.
We start by reviewing the current setup: which channels exist, where data is lost and which model the reports use today. Timing and cost come after that. More on the web app development and business process automation pages; all areas are on the custom software development page.
Frequently asked questions
What is an attribution model in simple terms?
It is the rule that credits a sale to the ad channels the customer encountered before buying: all of it to one channel or in parts to several.
Which attribution model is best?
There is no universal best. Last non-direct click suits short journeys, linear or position-based suits long ones, and data-driven suits large data volumes.
How does first click differ from last click?
First click credits the sale to the channel that introduced the customer to the company, last click to the channel after which the customer bought.
Why do ad accounts show more sales than actually happened?
Each platform sees its own touchpoints and credits the purchase to itself. If a customer saw ads in several systems, one sale ends up in each report.
Can you change the attribution model retroactively?
Yes, if the history of all customer touchpoints is stored. If only the last source was kept, past sales cannot be recalculated in another model.
Does a small business need data-driven attribution?
Usually not: it needs a lot of conversions. On a small volume a simple model compared with one or two others is more useful.
Does attribution prove that advertising produced a sale?
No, it splits value but does not prove cause. A channel's real contribution is checked with experiments that use a control group.