Back to Blog
Attribution Models

Data-Driven Attribution: How Markov Chains Split Credit

P
Peilt Team
January 3, 20267 min read

Rule-based attribution models hand out credit by a fixed formula: the last click gets everything, or every contact gets the same share. Data-driven attribution takes a different route. It looks at the journeys of your own shop and measures how much each channel adds to the chance that a journey ends in an order. This article explains the common Markov chain method and how Peilt applies it.

Rule-based vs data-driven

  • Rule-based: the formula is fixed in advance. Last-Click always gives the order to the last contact, whatever your data says.
  • Data-driven: the weights come from your journeys. A channel that shows up in many orders but rarely makes a difference gets a small weight; a channel without which many orders would be lost gets a large one.

Data-driven does not mean causal. The weights describe how journeys looked in the past. They do not prove that switching a channel off would remove exactly that many orders. Use them as a well-grounded second opinion next to the rule-based models, and check big budget moves with a test.

The Markov chain approach

1. Map the journeys

Collect the journeys that ended in an order and the ones that did not:

Journey 1: Meta → Email → Google → Order
Journey 2: Google → Meta → Email → no order
Journey 3: Email → Direct → Order

2. Build the transition matrix

From these journeys, count how often visitors move from one channel to the next, and how often they end in an order or in no order. The result is a table of probabilities: from Email, the chance of going to Direct, to Google, to an order, or to nothing.

3. Measure the removal effect

For each channel, remove it from the chain and calculate how the overall order rate changes. In the standard method, journeys that would have passed through the removed channel simply end without an order. The more the order rate drops, the more that channel contributed.

4. Turn removal effects into credit

The removal effects are normalized into weights that add up to 100 %. An order is then split between the channels in its journey according to those weights.

What Peilt does

  • Standard removal effect. Peilt uses the standard method described above. Journeys through a removed channel end without an order and are not redistributed to other channels.
  • Your last 90 days. Peilt looks at all journeys of the last 90 days, with and without an order.
  • A minimum of 1,000 orders. Data-Driven needs at least 1,000 orders with a tracked click in the last 90 days. Below that, or when the weights are older than a week, Peilt uses a simpler rule based on how often and where a channel appears in a journey. Small shops therefore get a transparent fallback instead of weights that are mostly noise.
  • Recalculated daily. Peilt recalculates the weights every day, and each order keeps the weights of the day it was attributed.

Peilt describes this as a Markov chain removal effect, not as a black box. There is no hidden learning step beyond the transition counts of your own journeys.

What good input looks like

  • Complete journeys. Missing tracking on landing pages or ad links breaks journeys apart and shifts credit to Direct. Add the tracking script everywhere visitors can land and use the ad parameters.
  • Enough orders. More journeys make the transition probabilities more stable.

Data-driven in the ad platforms

Ad platforms also use data-driven models, but on their own data and with their own rules:

  • Google Ads and Google Analytics 4: as of November 2026, data-driven attribution is the default model, and the older rule-based models (first click, linear, time decay, position-based) were removed from new and existing conversion actions in 2023. Last click remains available. Google Ads Help, as of November 2026.
  • Meta: Meta reports with the attribution setting of your ad account, for example 7-day click and 1-day view. As of 12 January 2026, its Ads Insights API no longer returns the 7-day view and 28-day view windows; 1-day click, 7-day click, 28-day click and 1-day view remain. Meta for Developers, as of November 2026.

A platform only sees its own touchpoints, so each one claims the orders it can reach in its own window. Peilt sees the tracked contacts of every channel and counts every order once. That is why platform numbers and Peilt numbers differ even when both are correct by their own rules.

Using data-driven attribution

  1. Compare Data-Driven with Last-Click and First-Click on the same date range. Channels with a much larger weight in Data-Driven are worth a closer look.
  2. Check whether your shop has enough orders for it. If it has fewer than 1,000 orders with a tracked click in the last 90 days, you are looking at the fallback rule.
  3. Test before you move large budgets. A holdout or a pause test tells you more about cause and effect than any attribution model.

Related reading

Share this article:

Ready to See Where Your Revenue Really Comes From?

Follow customer journeys across your online channels and decide where to move budget.

Join the Waitlist
Works with every Shopify plan that has a theme
15 attribution models
Ad, affiliate and email costs in one place