The Long Run
← Back to blog

Data Science

Attribution Models Explained: First Touch, Last Click & More

Part 2: Six rule-based attribution models applied to the same journeys, with a comparison of how much credit each channel earns under each rule.

·9 min read
TL;DR
  • Single-touch models (First Touch, Last Click (LC), Last Non-Direct Click) give 100% of the credit to one touchpoint.
  • Rule-based multi-touch models (Linear, Position-based, Time Decay) split credit using a fixed formula.
  • On the same 2,000 orders, Instagram's share of revenue swings from 32.1% to 3.6% depending only on the choice of attribution model.
  • In Part 1 - What Is Marketing Channel Attribution? A Practical Introduction, we saw that most conversions involve several touchpoints.
  • Part 2 i.e. this part covers the six rule-based models an analyst can use to split the credit.
  • This blog post applies the 6 models to the same data, we understand how exactly how much they differ with each other and with final decisions.

We will start with one sample order, a Kesari Threads customer:

  • Saw an Instagram ad 14 days before buying
  • Then opened a festive-sale email 6 days before
  • Clicked a Google Shopping listing 2 days before
  • Finally typed the site address and bought a ₹3,000 kurta set.

Here is what each model says about that ₹3,000.

Figure 1: One four-touch Kesari Threads order, credited six different ways.

Each bar is one model, and each colour is one touchpoint in journey order: blue for Instagram Ads, purple for Email, amber for Google Shopping and red for Direct. The bar length shows how many rupees each touch receives. The journey is identical in every row; only the rule changes.

Single-touch models

Single-touch models hand all the credit to one touchpoint. They are simple to compute and explain, which is why they remain the default in many reports.

Different single-touch models are listed below, along with the question they answer and their blind spot.

First Touch

The first recorded touchpoint gets 100% of the credit. In the above example, Instagram Ads gets the full ₹3,000.

First Touch answers the question "Which channel brought new customers into our website?" It ignores everything that happened afterwards.

Last Click (LC)

Last Click (LC), also called last touch, gives 100% of the credit to the final touchpoint before conversion. Here, Direct gets ₹3,000.

LC answers "Which channel brought the customer right before the purchase (i.e. in the same session in which purchase was made)?" It is easy to track therfore most tools relied on this technique.

Last Non-Direct Click (LNDC)

LNDC works like LC, with one change: it skips Direct visits and gives the credit to the last marketing channel before them. A Direct visit means the customer typed your URL or used a bookmark. LNDC assigns the credit to an earlier marketing channel i.e. just before the Direct visit (the last click).

In the above example, Google Shopping gets ₹3,000 because it was the channel before the Direct visit. If a journey contains only Direct visits, Direct keeps the credit.

LNDC was the default model in Universal Analytics for years, so it still shapes how many teams think about performance. Part 3 - The Last-Click Trap: Why LC and LNDC Starve Top of Funnel is focused on the problems this attribution creates.

Figure 2: How GA4 records Priya's journey to a ₹3,000 order. The top row is what she did; the grey boxes are the source / medium label GA4 stores for each visit.

Rule-based multi-touch models

These models share the credit across several touchpoints using a fixed formula.

Linear

Every touchpoint gets an equal share. Four touches means ₹750 each.

Position-based (U-shaped)

The first and last touches get the largest shares, and the middle touches split whatever is left equally.

The usual split is 40% for the first touch, 40% for the last and 20% shared across the middle. On our order, Instagram and Direct get ₹1,200 each, while Email and Google Shopping get ₹300 each. The idea is that opening and closing a journey matter most.We can change the percentages to fit how business wants to see the funnel, as long as they add up to 100%.

A 30/40/30 split puts more weight on the nurturing touches in the middle: Instagram and Direct get ₹900 each, and Email and Google Shopping get ₹600 each. A 50/0/50 split ignores the middle and rewards only the touches that open and close the journey, so Instagram and Direct get ₹1,500 each.

A brand focused on acquisition might choose 60/20/20 to reward the channel that found the customer. That gives Instagram ₹1,800, Direct ₹600, and Email and Google Shopping ₹300 each.

In case of short journeys, a one-touch journey gives that touch 100%, and a two-touch journey usually divides the middle share equally between the first and last touch.

A related variant is the W-shaped model, adds a third peak at a key middle milestone such as lead creation, which is common in B2B.

Time decay

Time decay gives more credit to touches that happened closer to the purchase. A customer who clicked a Google Shopping ad two days before buying was closer to the decision than one who scrolled past an Instagram ad two weeks earlier, so the recent click earns a bigger share. Every touch still gets some credit, and older touches get less.

One setting that controls how quickly credit fades is the half-life. It is the number of days it takes for a touch's weight to drop by half.

With a 7-day half-life, a touch on the day of purchase has a weight of 1, a touch from 7 days earlier has 0.5, one from 14 days earlier has 0.25, and one from 21 days earlier has 0.125. The term comes from physics, where it is the time it takes for half of a radioactive substance to decay.

Written as a formula, each touch's weight is:

weight = 2 ^ (−days before conversion ÷ half-life)

The raw weights don't add up to 1, so the model divides each one by their total. That gives each touch's share of the order. A cample calculation for the above ₹3,000 order with a 7-day half-life is shown below:

TouchDays before purchaseDays ÷ half-lifeRaw weightShareCredit
Instagram Ads142.000.2509.5%₹286
Email60.860.55221.1%₹632
Google Shopping20.290.82031.3%₹938
Direct00.001.00038.1%₹1,144
Total2.622100%₹3,000

To get Email's share, divide its raw weight by the total: 0.552 ÷ 2.622 = 21.1%, and 21.1% of ₹3,000 is about ₹632. Direct gets the largest share because the purchase happened on that visit. Instagram started the journey but gets only ₹286, because two half-lives passed between that ad and the purchase.

Choosing a half-life

The half-life is business' choice, and it should match how the customers take to decide. Start by measuring conversion lag, the number of days between a customer's first recorded touch and their purchase. One simple rule is to set the half-life close to the median lag.

As a rough guide, impulse purchases such as fashion or food delivery suit 3 to 7 days. Furniture or electronics, where people compare options for a couple of weeks, suit something closer to 14 days. B2B deals that run for months need 30 days or more, otherwise the webinar that started the deal ends up with almost no credit. Google's time-decay model in Google Ads and Universal Analytics use 7 days by default, which is why that number shows up so often.

Changing the half-life moves a lot of credit. Here is the same ₹3,000 order under four settings (amounts rounded to the nearest rupee):

Half-lifeInstagram AdsEmailGoogle ShoppingDirect
3 days₹62₹391₹985₹1,563
7 days₹286₹632₹938₹1,144
14 days₹476₹708₹863₹953
30 days₹612₹736₹807₹845

At 3 days the model behaves almost like last click: Direct takes more than half the order and Instagram gets ₹62. At 30 days it is close to linear, with every touch within ₹140 of linear's ₹750.

Across thousands of journeys, a different half-life can change which channel comes out on top. Before sharing the results, rerun the model with a shorter and a longer half-life, and validate how the ranking and score change.

💡 Tip: Report the half-life alongside any time-decay numbers. "₹938 to Google Shopping" means little until the reader knows it came from a 7-day half-life.

Python Code: Sample code for explanation

Open In Colab

The above notebook applies all six attribution models, including position-based and time decay, to the full dataset.

The six models side by side

ModelCredit ruleQuestion it answersMain blind spot
First touch100% to the first touchWhat starts journeys?Ignores everything that closes the sale
Last click (LC)100% to the last touchWhat happens right before purchase?Ignores how the customer found you
Last non-direct click100% to the last non-Direct touchWhich marketing channel closed the sale?Same as LC, and hides Direct
LinearEqual share to every touchWhich channels take part in journeys?Treats a passing ad view the same as a demo
Position-based40% first, 40% last, 20% middleWhat opens and closes journeys?The 40/20/40 split is arbitrary
Time decayMore credit to recent touchesWhat moves people near the decision?Undervalues early awareness, by design

Different Attribution Models, Different Results

The single journey is only an example. Here are the same six models applied to all 2,000 simulated Kesari Threads orders (₹53.4 lakh in revenue):

Figure 3: Share of Kesari Threads revenue credited to each channel under each model.

Rows are channels, grouped into the two funnel stages from Part 1: TOF (blue labels, up to add to cart) above the line and BOF (red labels, after add to cart) below it. Columns are models.

Email can fall on either side of add to cart: festive-sale emails reach shoppers before it, and cart reminders after it. The data doesn't separate the two, so this chart groups all Email with BOF, following the cart-reminder example from Part 1.

Instagram Ads earns 32.1% under first touch and 3.6% under last click. Brand Search goes the other way, from 6.5% to 41.4%. The multi-touch models land in between.

⚠️ Pitfall: Ad platforms, analytics tools and CRMs often use different default models and lookback windows. Before comparing two reports, check that they use the same model, or you'll be comparing different rules rather than different results.

When to use first touch vs last click

Use first touch when the decision is about generating demand. TaskHarbor, the fictional B2B SaaS company from Part 1, uses first touch to judge LinkedIn prospecting and content, the question this helps to answer is whether a campaign introduces new accounts.

Use last click (or LNDC) when the decision is about closing demand you already have. Kesari Threads' performance team uses it to tune brand-search bids and checkout offers, where what matters is the step right before purchase. Report both side by side when possible.

Ex: BrewNest, the fictional coffee subscription, found that a podcast sponsorship ranked first on first touch and last on last click. That one comparison told them the podcast introduces people while search closes the subscription.

What linear helps to understand

Linear shows which channels take part in converting journeys. A channel that gets little credit under first touch and last click but a solid share under linear is a supporting player: it appears in many journeys without opening or closing them. Email at Kesari Threads is a good example, with 10.1% under first touch, 9.7% under last click and 14.1% under linear.

Linear is also a sensible neutral baseline when teams can't agree on which stage matters most.

Decision tree for choosing a rule-based attribution model

Figure 4: A quick guide to choosing a rule-based model based on the decision you need to make.

📌 Key idea: All six models use fixed rules that someone chose. None of them learns from the data, and none of them looks at the journeys that didn't convert.

Key Takeaways

  • First touch credits what starts journeys; last click (LC) credits what ends them; LNDC is LC with Direct visits skipped.
  • Linear, position-based and time decay spread credit across touches using fixed formulas.
  • On the same orders, Instagram's share ranges from 32.1% to 3.6% and Brand Search's from 6.5% to 43.4%, purely because of the model.
  • Pick the model that matches the decision: first touch for demand generation, last click for conversion, linear for participation.

Part 3 - The Last Click Trap looks at how these models show up in budget reviews and why last non-direct click starves top-of-funnel channels.


Quick Quiz: Test Yourself

1. A journey is YouTube → Email → Direct. Which channel gets the credit under last non-direct click?

  • A) YouTube
  • B) Email
  • C) Direct
  • D) It is split equally
Show answer

B. LNDC skips the final Direct visit and credits the last marketing channel before it, which is Email.

2. In a five-touch journey, how much credit does each middle touch get under the 40/20/40 position-based model?

  • A) 20%
  • B) 10%
  • C) About 6.7%
  • D) 0%
Show answer

C. The middle 20% is split across the three middle touches, so each gets 20% ÷ 3, about 6.7%.

3. TaskHarbor wants to know whether its LinkedIn campaigns introduce new accounts. Which model fits best?

  • A) First touch
  • B) Last click (LC)
  • C) Last non-direct click
  • D) Time decay
Show answer

A. First touch credits the channel that started each journey, which is exactly the demand-generation question.

4. A channel gets low credit under first touch and last click but a solid share under linear. What does that suggest?

  • A) The channel is broken and should be cut
  • B) The channel appears in many journeys as a supporting middle touch
  • C) The channel only reaches new customers
  • D) The linear model has a calculation error
Show answer

B. Linear rewards participation. A channel that is often in the middle of journeys, like Email at Kesari Threads, looks small under single-touch models but shows up under linear.


Unsure about a term? See the Marketing Attribution Jargon Checklist.

In case of any queries or feedback, feel free to drop a comment or reach out using the Contact section.

Comments