Converter tool

Marketing Attribution from a Touchpoints CSV

Credit conversions to channels with first-touch, last-touch, linear, time-decay, position-based and a Markov removal-effect model, side by side. Everything is calculated in this browser tab.

One row per touch or conversion

1. Your touchpoints

Or paste the table

Marketing Attribution from a Touchpoints CSV

Operator: Abdulla Al Fahad. How tools are built and checked

Six conversions, four channels, and paid search is worth anywhere from 1.87 to 3.00 of them depending on which rule you choose. That spread is the point of this tool: it takes a file of touchpoints, rebuilds each user's journey up to a conversion, and shares the credit six different ways side by side, so you can see which channels keep their credit under every rule and which only look good under one.

It works on rows you already hold, such as an export from a CRM, an ad platform join or a web analytics table. It does not match users across devices, deduplicate ids or read ad-platform APIs, and every rule here is a model of influence, not a measurement of cause.

Key features

  • First-touch and last-touch credit
  • Linear credit, splitting each conversion equally across its touches
  • Time-decay credit with a half-life you set in days
  • Position-based credit: 40% to the first touch, 40% to the last, 20% shared by the middle
  • A first-order Markov chain with removal effects per channel
  • Credit in conversions or in conversion value, with a lookback window
  • A grouped-bar comparison chart and the top converting paths as a table
  • CSV and XLSX export, with the share-of-credit sheet built from formulas

How touchpoints become journeys, and how each model shares one conversion

Each row is a touchpoint or a conversion with a user id, a channel (or source), a timestamp and a conversion marker. The marker can be a column of 1, true or yes, or a column of values where any positive number marks the converting row. If you also give a value column, credit is reported in money as well as in conversions; a converting row with a blank or negative value counts as 0 in value credit and the tool says so. A converting row may leave the channel blank, in which case it only closes the journey.

A journey is a user's touches in time order up to and including a converting row; touches after a conversion start a new journey, and a user can convert more than once. Journeys that never convert are kept, because the Markov model needs them. The lookback window drops touches older than a number of days before the conversion; a conversion with nothing left inside the window earns no credit, and the tool counts these. Channels are matched ignoring case; beyond 30 distinct channels the 29 busiest are kept and the rest are grouped as Other.

Timestamps may be ISO, 3/9/2025 2:30 PM or epoch seconds. Rows with a blank user, an unreadable time or neither a channel nor a conversion are skipped and counted.

How it works

For a journey with n touches, linear gives each 1/n. Time-decay weights a touch by 2 raised to the minus (days before the conversion divided by the half-life), then scales the weights to sum to 1: with a 7-day half-life, a touch a week before the conversion counts half as much as one at the conversion. Position-based gives a single touch all the credit, two touches half each, and from three touches 0.4, 0.4 and 0.2 divided over the middle ones.

The Markov model builds a transition matrix over channels from every journey, with converting and non-converting ends as absorbing states. It computes the overall chance that a journey converts, then for each channel recomputes that chance with all of its visitors sent to the non-converting end. The channel's removal effect is the share of conversion chance lost. Credit is each channel's removal effect divided by the sum of removal effects, times total conversions (or total value). The equations are solved exactly by Gaussian elimination, not by random simulation, so the same file always gives the same numbers.

Common use cases

  • Checking a 40,000-row export in which social has no last-touch conversions but opens a third of all journeys
  • Comparing 7, 30 and 90 day lookbacks on a product with a 60-day sales cycle to see how much channel credit moves
  • Building a credit table for a monthly marketing review from a CRM export of 12,000 journeys
  • Mining the most common paths among 800 converting journeys to design a three-email nurture sequence

How to use this tool

  1. Upload the touchpoints or load the example and check the five column choices.
  2. Set the lookback window and the time-decay half-life in days.
  3. Read the credit table, switching between conversions and value if you gave a value column.
  4. Compare the bars: a channel whose bars are all similar is robust, one with a wide spread depends on the rule.
  5. Download the channel credit, the top paths, or the workbook.

Example

Eight users, 20 touches, six conversions worth 700 (load example)

user_id,channel,timestamp,converted,revenue
u1,Paid search,2025-04-01 09:00:00,0,
u1,Email,2025-04-03 09:00:00,0,
u1,Direct,2025-04-04 09:00:00,1,120
u2,Social,2025-04-01 10:00:00,0,
u2,Paid search,2025-04-05 10:00:00,1,80
u3,Email,2025-04-02 11:00:00,0,
u3,Social,2025-04-06 11:00:00,0,
u3,Paid search,2025-04-08 11:00:00,0,
u3,Direct,2025-04-09 11:00:00,1,200
...

Credited conversions, 7-day half-life, no lookback limit

Channel       First  Last  Linear  Decay  Position  Markov
Paid search    2.00  3.00    2.42   2.53      2.40    1.87
Email          2.00  0.00    1.42   1.31      1.30    1.23
Social         2.00  0.00    1.08   0.94      1.00    1.54
Direct         0.00  3.00    1.08   1.22      1.30    1.37
Markov removal effects: paid search 68%, social 56%, direct 50%, email 45% (6 of 8 journeys convert, 75%)

Common pitfalls

Heuristic models split a conversion by position or time, not by any evidence that a channel changed the outcome. Treat the table as a range of defensible views, not a measurement of lift.

The Markov model is first-order: only the previous touch matters. It also needs enough non-converting journeys; with a file that only contains converters, every channel looks equally essential.

Cross-device journeys appear as separate users. If the same buyer is two ids, early touches may sit in a journey that never converts.

  • Compare Markov with linear. Both reward channels in the middle of a path, but Markov also looks at what happens to journeys that did not convert, so a channel that appears in many dead ends loses credit.
  • Set the lookback to your real sales cycle. A 30-day window on a product that takes 90 days to decide leaves early touches out and flatters last-touch channels.

Common errors and how to fix them

"Choose a conversion column, or a value column where a positive number marks a conversion"
The tool needs to know which rows are conversions. Pick the column holding 1, true or yes, or a revenue column where only converting rows have a value.
"No journey ended in a conversion"
No row passed the conversion test. Check that the converted column holds 1, true, yes or a positive number rather than text such as paid.
A warning that conversions had no touchpoint inside the lookback window
Widen the lookback or clear it. Those conversions earn no credit under any model while the window is too short.

Best practices

  • Pick the model for the decision: first touch for discovery budgets, last touch for closing channels, and use Markov or position-based when you need one table to defend.

Reading the Markov column

In the example the model reaches a conversion in 6 of 8 journeys, 75%. Removing paid search leaves 0.75 times (1 minus 0.685), about 23.6% conversion chance, a 68.5% drop; removing email costs 45%, social 56% and direct 50%. Those four effects add to 2.2, so paid search gets 0.685 divided by 2.2, about 31% of the 6 conversions, or 1.87.

The effects are not shares of the conversion pie on their own; they overlap because a journey can use several channels. That is why the tool normalises them. Notice also that social earns 1.54 here but 0 under last touch: it opens two of the six converting journeys and sits in the middle of a third, and removing it would break all three.

Frequently asked questions

Why does the Markov total still equal my conversions?

Because the removal effects are rescaled so the credit adds up to the number of conversions (or the total value). The removal effect itself is the model's estimate of what a channel is worth; the rescaling only fixes the total.

What counts as a conversion when I only have a revenue column?

Any row whose value is a positive number. Leave the converted column empty in that case and keep the value blank on non-converting rows.