Ecommerce attribution: a practical guide
Attribution arguments are rarely about models. They are about a broken chain between the click you paid for and the money that finally cleared. Fix the chain and most of the model debate evaporates.
What is ecommerce attribution?
Ecommerce attribution is the process of assigning the revenue from an order to the marketing touchpoints (ads, emails, organic visits) that led to it, so you know which spend to scale and which to cut. In practice it means connecting three records that live in different systems: the click or visit, the order, and the money that cleared.
The common models are last-click (all credit to the final touchpoint), data-driven (platform-estimated shares across touchpoints) and multi-touch (credit split by rules). Which model you pick matters less than whether the click can be matched to the order at all. See what each model hides.
Product-level attribution: which ads sell which products
Ecommerce product attribution answers a narrower question: which campaign or creative drove sales of a specific SKU or category, and at what margin. It needs line-item order data joined to the click identifier, not just an order total. Without that join, a campaign that sells your best-margin product and one that sells your worst look identical in ROAS. The starting point is the same as for channel attribution: keep the identifier alive through checkout (why UTMs break at checkout) and join orders to clicks in the warehouse.
What attribution has to answer
Every useful attribution setup answers one question: for this unit of spend, how much revenue actually closed? Not sessions, not pixel-fired conversions, not a platform's self-reported number — money that stayed after refunds, chargebacks, and failed renewals.
That framing matters because it tells you what to measure against. If your finance number and your ad platform number describe different populations, no attribution model will reconcile them. You have a data problem wearing an attribution costume.
The four places it breaks
- The click. A campaign renamed in the ad UI while the utm stays frozen, and one campaign becomes two rows in your report.
- The session. Consent gates and blocked scripts mean the first-party identifier is never set, so the session starts anonymous and stays that way.
- The checkout redirect. Payment providers on their own domain rewrite the referrer and strip query parameters. The order arrives with no memory of the ad.
- The revenue. Refunds, chargebacks, and cancelled renewals land days or months later, and most reports never subtract them.
Last-click, data-driven, and why they disagree
Platform-reported conversions use their own attribution window and their own view of the user — usually generous, because the platform is grading its own homework. Analytics tools apply last-non-direct over whatever sessions they managed to observe. Neither sees the refund.
So the disagreement is structural, not a bug: three systems, three populations, three windows. The only durable fix is to hold the join yourself, in a warehouse, keyed on an identifier you control, with revenue that reconciles to your payment processor.
Example: one $100 order, three claims
A customer sees a Meta ad on Monday, clicks a Google branded search ad on Wednesday, and buys through a payment provider redirect. Here is who takes credit for the same $100:
| Tool | Credits the order to | Revenue claimed |
|---|---|---|
| Meta Ads | Meta (view-through, 1-day window) | $100 |
| Google Ads | Google (last paid click) | $100 |
| GA4 | Direct, or the payment domain | $100 |
| Bank / CRM | One order | $100 |
Each tool reports a different channel for the same $100, so adding the platform columns gives $300 of "attributed" revenue for $100 that actually cleared.
This is why the fix starts with the order record and not with the model: the bank row is the only one that is true, and every attribution method is a way of explaining it. Match the click to that row first, then choose how to split credit.
What to fix first
In order, because each step makes the next one measurable:
- Persist a first-party identifier through the checkout redirect.
- Send server-side conversions so measurement survives browser-side loss.
- Join orders back to clicks in the warehouse, not in a reporting tool.
- Subtract refunds and failed renewals on the same cohort you attribute.
- Only then argue about attribution models.
Questions people ask
Why do Meta and Google both claim credit for the same sale?
Each platform uses its own attribution window and its own view of the user, and both are graded on their own homework — a platform has no incentive to under-claim. Overlap is normal, not fraud; the fix is de-duplicating in your own warehouse, not trusting either platform's number in isolation.
Is last-click attribution actually wrong?
It's not wrong, it's incomplete. Last-click answers 'which touchpoint happened right before the order' — a real, useful question. It just isn't the same question as 'which spend actually drove incremental revenue,' and treating the two as interchangeable is where most attribution arguments start.
Do we need a full CDP to fix this, or can it be simpler?
Most of the value comes from three things: a first-party identifier that survives the checkout redirect, server-side conversion events, and a warehouse join between orders and clicks. That's a data engineering project, not necessarily a CDP purchase — a CDP can help operationalize it later, but it doesn't fix a broken identifier on its own.
How long before a fix shows up in reported ROAS?
Identifier and server-side fixes show up within days, once the new events start flowing. Attribution model changes take longer to read cleanly, because you're comparing against a cohort that matured under the old, broken measurement — give it at least one full cohort cycle before judging the before/after.
What is the best attribution model for ecommerce?
There is no universally best one. For most stores, start with last-click on first-party, server-side data, compare it with platform-reported numbers, and move to multi-touch only once the click-to-order join is reliable. A clean join beats a sophisticated model on dirty data.
How do I attribute sales to specific products?
Join line-item order data to the click or session identifier in your warehouse, then report revenue and margin per SKU by campaign. This needs the identifier to survive checkout and refunds to be netted out at the same level.
Read next
Google tag is now a GTM container: what to check
Google merged the Google tag into Tag Manager. What changes in snippets, initialization and the UI, and a checklist to audit your setup before January 2027.
AttributionMulti-touch vs last-click: what each model hides from you
A teardown of how last-click overvalues closers and multi-touch obscures real drivers, so you stop misallocating budget with false confidence.
AttributionWhy ROAS holds steady while contribution margin erodes
A diagnostic checklist to find the order-level margin leak hiding behind a healthy blended ROAS, from product mix to discount costs.
AttributionBuild one true ROAS number when platforms disagree
Stop trusting Meta, Google and TikTok's conflicting ROAS claims. Learn to build blended and incremental ROAS numbers finance and marketing both trust.
AttributionHow to attribute subscription LTV back to the original ad click
Attributing renewals and lifetime value to the click that started it.
AttributionWhy UTM parameters break at checkout redirects and how to fix attribution
The single most common way a paid click loses its identity before the order is written.
AttributionAttribution when payment domains steal the credit
Why your payment provider shows up as a traffic source, and how to stop it taking credit.
AttributionTrue ROAS vs GA4 ecommerce ROAS for offline-close businesses
When the sale closes off-site, GA4 ecommerce ROAS stops being a usable number.
AttributionServer-side conversions with Meta CAPI: what breaks and how to fix it
What actually breaks when you move conversions server-side, and the fixes that hold.
AttributionWhy offline conversions beat pixel-based ROAS
Uploading closed revenue back to the platforms beats trusting the pixel.
AttributionWhy your GA4 ROAS is lying to you — and how to find the real number
Why the ROAS on your dashboard disagrees with the money in your account.
Want your attribution reconciled like this?
We patch the join between clicks and closed revenue so bidding optimizes on what actually happened, not what the checkout referrer claims.