luvv to helpDiscover the Best Free Online Tools
Topic 1 of 8

Last Click Attribution

Learn Last Click Attribution for free with explanations, exercises, and a quick test (for Marketing Analyst).

Published: December 22, 2025 | Updated: December 22, 2025

Why this matters

Last Click Attribution assigns 100% credit for a conversion to the most recent interaction before the conversion. It’s simple, fast to explain, and widely used in reporting. Marketing analysts rely on it when teams need a quick read on which channels close deals or drive immediate actions.

  • Create weekly reports of conversions by channel that decision-makers can skim.
  • Audit retargeting or email campaigns that focus on closing users already in the funnel.
  • Provide a baseline model to compare against more advanced attribution methods.
  • Set up quick experiments (e.g., turning off a channel) and observe short-term impact.

Concept explained simply

Definition: Last Click Attribution gives all conversion credit to the final touchpoint before a purchase or goal completion.

Mental model: The closer, the credit

Imagine a relay race where the last runner crosses the finish line. Last click treats that final runner as the sole winner. It ignores how the baton got there, which is simple but can be biased toward lower-funnel channels.

Common variations you’ll meet
  • Pure Last Click: Includes direct visits as a possible last click.
  • Last Non-Direct Click: Ignores direct visits and credits the last identifiable marketing channel before conversion.
  • Last Click (Ad-Only): Considers only paid/owned marketing touches (e.g., excludes Organic/Direct).

When to use vs. when to avoid

Good fit

  • Short sales cycles (same day or a few days).
  • Promotions or retargeting campaigns designed to close sales.
  • Quick baseline comparisons across channels.

Use caution

  • Long, multi-touch journeys (B2B, high consideration).
  • Upper-funnel awareness channels (video, display prospecting) get undervalued.
  • Heavily branded searches or direct traffic may absorb too much credit.

Worked examples

Example 1 — Email closer
  1. User path: Social → Organic → Email → Purchase
  2. Last click: Email
  3. Attribution: 100% credit to Email
  4. Note: Social and Organic helped, but are ignored here.
Example 2 — Direct gets the win
  1. User path: Paid Search → Organic → Direct → Purchase
  2. Pure Last Click: Direct gets 100% credit
  3. Last Non-Direct Click: Organic gets 100% credit
  4. Tip: Clarify which variant your report uses.
Example 3 — Retargeting dominance
  1. User path: Display Prospecting → Paid Social → Retargeting Display → Purchase
  2. Last click: Retargeting Display
  3. Attribution: 100% to Retargeting
  4. Implication: Prospecting looks weaker in last click reports.

Implementing last click

Spreadsheet approach
  1. Sort all events by user_id then timestamp ascending.
  2. For each conversion, select the last interaction at or before conversion.
  3. Assign conversion to that channel; sum by channel.

Formula hint: Create a helper that marks the max timestamp per user where timestamp ≤ conversion_time, then VLOOKUP/XLOOKUP to retrieve the channel.

SQL approach (one purchase per user)
WITH purchases AS (
  SELECT user_id, MIN(event_time) AS purchase_time
  FROM events
  WHERE event_type = 'purchase'
  GROUP BY user_id
), last_touch AS (
  SELECT e.user_id,
         e.channel,
         ROW_NUMBER() OVER (
           PARTITION BY e.user_id
           ORDER BY e.event_time DESC
         ) AS rn
  FROM events e
  JOIN purchases p
    ON e.user_id = p.user_id
   AND e.event_time <= p.purchase_time
  WHERE e.event_type IN ('visit','click')
)
SELECT channel, COUNT(*) AS conversions
FROM last_touch
WHERE rn = 1
GROUP BY channel
ORDER BY conversions DESC;
Analytics tools setting
  • Clarify model name: pure last click vs. last non-direct click.
  • Confirm which interaction type counts (session, click, impression).
  • Ensure consistent UTM tagging across channels to avoid “(unassigned)” or “Direct”.

Exercises

These mirror the interactive tasks below. Try them now, then check solutions.

Exercise 1 — Spreadsheet last-click assignment (ex1)

Copy this table into your spreadsheet (headers in row 1):

user_id,timestamp,channel,is_conversion
U1,2025-06-01 09:00,Paid Search,0
U1,2025-06-02 10:00,Email,0
U1,2025-06-02 10:05,Direct,1
U2,2025-06-01 12:00,Social,0
U2,2025-06-03 08:00,Organic,0
U2,2025-06-03 08:30,Direct,1
U3,2025-06-02 09:00,Display,0
U3,2025-06-04 18:00,Paid Search,1
U4,2025-06-02 15:00,Referral,0
U4,2025-06-05 16:00,Email,0
U4,2025-06-05 16:20,Email,1
  • Task A: For each row where is_conversion=1, find the last channel for that user at or before the same timestamp.
  • Task B: Aggregate conversions by last-click channel.
Need a nudge?
  • Sort by user then timestamp ascending.
  • Use XLOOKUP/INDEX+MATCH to pull the preceding channel.
  • Pivot by channel.
Exercise 2 — SQL window function (ex2)

Use a table events(user_id, event_time, channel, event_type). Assume each user has 0–1 purchase. Task: return conversions by last click channel.

  • Select each user’s purchase_time.
  • Within each user, pick the latest event_type IN ('visit','click') at or before purchase_time.
  • Count by channel.
Hint
  • JOIN events to purchases on user and time ≤ purchase_time.
  • ROW_NUMBER() with ORDER BY event_time DESC; filter rn=1.

Self-check checklist

  • I can explain the difference between pure last click and last non-direct click.
  • I can compute last click per conversion in a spreadsheet.
  • I can write SQL to select the last preceding touchpoint.
  • I can state when last click is misleading and why.
  • I document model assumptions in every report.

Common mistakes and how to self-check

  • Mistake: Mixing pure last click with last non-direct click without saying so. Self-check: Does your method allow Direct to win? If yes, it’s pure last click.
  • Mistake: Counting impressions as clicks. Self-check: Confirm event_type used for attribution (visit/click vs. impression).
  • Mistake: Double-counting multiple conversions per user. Self-check: Define conversion uniqueness and filter events to ≤ each conversion time.
  • Mistake: Inconsistent UTM tags causing “(unassigned)” crowding. Self-check: Audit top 10 unassigned sources and fix tagging.
  • Mistake: Over-crediting retargeting. Self-check: Compare to first click or position-based to reveal upper-funnel impact.

Practical projects

  • Baseline dashboard: Build a weekly last-click conversions by channel chart with a notes field that states which variant you used.
  • Model comparison: Create a simple report showing differences between Last Click vs. Last Non-Direct Click vs. First Click for the past 8 weeks.
  • Campaign audit: Pick one retargeting and one prospecting campaign. Show how performance looks under last click vs. first click and summarize the gap.

Who this is for, prerequisites, learning path

Who this is for
  • Marketing Analysts who need fast, interpretable reports.
  • Performance Marketers validating closing channels.
  • Product and Growth teams running short-cycle experiments.
Prerequisites
  • Comfort with spreadsheets (sorting, lookups, pivots).
  • Basic SQL: window functions and joins.
  • Familiarity with UTM parameters and channel taxonomy.
Learning path
  1. Master Last Click (this lesson).
  2. Understand Last Non-Direct Click and Direct traffic behavior.
  3. Compare with First Click and Position-Based models.
  4. Move to data-driven or Markov models when your data supports it.

Mini challenge

Your CMO says retargeting is the “best” channel because last-click reports show it winning 60% of conversions. Write 3 bullet points to explain why this might be bias, and one quick analysis to validate or refute the claim.

One possible approach
  • Bias: Retargeting touches users late, so last click naturally favors it.
  • Bias: Direct or branded search may be filtered out in last non-direct click, changing results.
  • Bias: Upper-funnel channels assist but get zero credit.
  • Quick check: Compare last click vs. first click by campaign for 4 weeks; quantify shifts.

Next steps

  • Document which last click variant you use and share with stakeholders.
  • Add a model selector (last vs. first vs. position-based) to your dashboard.
  • Run a sensitivity analysis: how do channel budgets change under each model?

Quick Test

Take the test to check your understanding. Available to everyone; only logged-in users will have progress saved.

Practice Exercises

2 exercises to complete

Instructions

Copy this CSV into a spreadsheet:

user_id,timestamp,channel,is_conversion
U1,2025-06-01 09:00,Paid Search,0
U1,2025-06-02 10:00,Email,0
U1,2025-06-02 10:05,Direct,1
U2,2025-06-01 12:00,Social,0
U2,2025-06-03 08:00,Organic,0
U2,2025-06-03 08:30,Direct,1
U3,2025-06-02 09:00,Display,0
U3,2025-06-04 18:00,Paid Search,1
U4,2025-06-02 15:00,Referral,0
U4,2025-06-05 16:00,Email,0
U4,2025-06-05 16:20,Email,1
  • Task A: For each conversion row (is_conversion=1), find the last channel for that user at or before the timestamp.
  • Task B: Aggregate conversions by last-click channel.
Expected Output
Channel-level counts: Direct = 2, Paid Search = 1, Email = 1

Last Click Attribution — Quick Test

Test your knowledge with 10 questions. Pass with 70% or higher.

10 questions70% to pass

Have questions about Last Click Attribution?

AI Assistant

Ask questions about this tool