Home → Docs → How It Works → How MarginOS assigns each order to a channel (attribution)

How MarginOS assigns each order to a channel (attribution)

Last updated: November 3, 2026 By Aron Baczoni

Quick Reference

Inputs

Campaign tagging on your marketing links and a referrer on inbound visits, since these are the acquisition signals MarginOS reads; connected ad platforms, which supply the paid click markers; any source mappings you have set yourself in Channel Mapping.

Outputs

One acquisition channel per DTC order and a permanent channel credit per customer, an Unknown / Blended row that is always shown for orders with no usable signal, and a dominant-evidence label under each attributed channel in the Growth Engine.

Outcomes

Compare channels without double-counting customers who touched several, see how much of your performance picture is actually unattributed, and tell a genuinely organic customer apart from one whose origin was never recorded.

Every direct-to-consumer order in MarginOS is credited to exactly one acquisition channel, and every customer is credited to the channel that won their first-ever order. That single assignment is what makes channel profit, CAC and payback add up instead of double-counting people who touched three channels before buying. When MarginOS cannot see how a customer found you, it says so — those orders go to Unknown / Blended rather than being quietly folded into Organic/Direct.

The rule, in one paragraph

When a customer touches several channels before their first order, MarginOS credits one of them, in this order of preference: a channel you mapped yourself, then a clear paid ad click, then the last non-direct visit before the order, then the first visit that had a known channel. If none of those produce an answer, the order lands in Unknown / Blended. Once a customer is credited, they stay with that channel — every later order they place keeps counting toward the channel that originally acquired them.

Before you start

  • Attribution quality depends on what your store passes through. UTM parameters on your campaign links, a referrer on inbound visits, and any click details your storefront records against the order itself are what MarginOS has to work with.
  • Ad platform connections improve paid attribution, because a paid click marker is the strongest signal available.
  • If a large share of your orders sit in Unknown / Blended, fix that before you act on any channel comparison — see below.

How to check attribution for a channel

  1. Open the Growth Engine and stay on the Money View channel table.
  2. Read the small grey label under each channel’s name. It shows the dominant evidence behind that row’s orders, not a score. Hover it for what the label means.
  3. Find the Unknown / Blended row. It is always there, directly beneath Organic/Direct, wherever the table is sorted. If it is greyed out at zero, no untraceable orders landed in the period you picked. On the Yesterday to 90D buttons its Recommendation column shows a Source not identified chip instead of a call; on a range from the Custom menu that column reads a dash for every row.
  4. If a channel looks misattributed, override its source in Channel Mapping. Your override takes priority over every automatic rule below.

The channels an order can be assigned to

Channel What lands here
Paid Search First order carried a paid search click marker or paid search campaign tagging.
Paid Social Same, for paid social platforms.
Email/SMS Email or SMS campaign tagging, an email platform as the source, or a webmail app referrer.
Organic/Direct Unpaid search and social, or a direct visit. A bare search or social source with no paid marker is organic, not paid.
Referral An inbound link from another site that is not search, social or email.
Agentic Commerce Orders originating from AI shopping agents and assistant-driven checkouts.
Shopify POS In-person, draft and admin-created orders. Not a DTC acquisition channel — see below.
Other The catch-all when a signal exists but cannot be classified into any of the above.

A ninth row, Unknown / Blended, always appears in the money table, even when it is empty. It is not a channel — it is a carve-out of DTC orders with no usable acquisition signal, shown separately so it cannot inflate Organic/Direct.

How MarginOS decides

1. Your override wins

If you have mapped a source in Channel Mapping, that mapping takes priority over every automatic rule. You know your own traffic; MarginOS does not overrule you.

2. A clear paid ad click

If the customer’s first order carried an unambiguous paid click marker — the click identifiers the ad platforms attach, such as gclid, fbclid or ttclid — the matching paid channel is credited. This is the strongest evidence available and it outranks later touches.

MarginOS looks for that marker wherever your store recorded it, not only in the landing URL. This matters more than it sounds: a redirect, a consent banner or an app proxy sitting between the ad click and your storefront can strip the whole query string from the landing page, taking the click marker with it. When your storefront or a storefront app has stamped the click details onto the order itself, MarginOS reads them from there instead — so a paid order stays a paid order even when the landing URL arrived stripped.

Note what this deliberately excludes: a visit from Google or Facebook with no paid marker is organic traffic, not paid. Counting it as paid is the most common way a homemade attribution model overstates paid performance, because it credits ad spend with customers the ads never bought.

One consequence to expect: if MarginOS recovers click markers it could not read before, historical orders can move out of Organic/Direct into a paid channel after a re-sync, and Organic/Direct will look smaller than it did. That is the correction working. Those orders were always paid — they were being credited to a channel that never paid for them, which flatters organic and understates what your ads actually cost you per customer.

3. The last non-direct visit

With no paid click, MarginOS credits the last visit before the first order that came from somewhere identifiable — an email click, an organic search, a social visit. Direct visits are skipped here on purpose: “typed the URL” tells you nothing about what created the demand.

4. The first known visit

If the last visit was direct or unknown but an earlier visit had a known channel, that earlier channel is credited rather than giving up. Something started the journey, and a weaker signal is better than none.

5. Otherwise, Unknown / Blended

If your store sent no usable journey data — no campaign tagging and no referrer — or the signal cannot be confidently mapped, the order is grouped as Unknown / Blended.

Unknown / Blended is a tracking gap, not a channel

This is the part worth internalising. These are real customers who really bought, so their revenue and profit are real and are counted in your totals. What is missing is the explanation of how they arrived.

MarginOS keeps them in a visible bucket instead of assigning them somewhere plausible for one reason: any assignment would be a guess, and a guess here corrupts the two decisions this data exists to support. Folded into Organic/Direct, it makes word-of-mouth look stronger than it is. Spread across paid channels, it makes ad spend look more efficient than it is. Either way you would spend money against a number MarginOS invented.

So the practical rule is: treat Unknown / Blended as Organic/Direct with missing data, not as a channel to spend on. A high share of it means fixing tracking comes before changing budgets — any channel comparison you make while it is large is being made on a partial picture.

One honest caveat: you will never drive this to zero. Better campaign tagging and cleaner redirects recover some journeys, but browser privacy protections, consent choices and stripped referrers mean a share of customer journeys stays invisible no matter what you do. A small, stable Unknown / Blended bucket is a healthy result, not an outstanding defect.

What is excluded from acquisition entirely

Some orders are real revenue but are not direct-to-consumer acquisition, so they are excluded from DTC CAC and channel LTGP:CAC by default, and shown for revenue and profit context only:

  • Shopify POS, draft and admin orders — in-person and manually created sales. Nobody bought a click.
  • Marketplace orders — for example Amazon, TEMU, Faire or Shopify Collective. The marketplace owns that customer relationship.
  • Wholesale orders — a different business line with different economics.

Including these would corrupt acquisition maths in both directions: they add customers you did not pay to acquire, and they add profit that no ad budget produced.

How confident is the assignment?

Each channel row carries a label under its name for the dominant evidence behind it, so you can weigh a comparison rather than trusting it blindly. The Unknown / Blended row carries none, because it is the no-data bucket:

Label What it means Confidence
tenant-override You mapped this source yourself. Highest — it is your instruction
direct-paid A clear paid ad click on the first order. High
last-touch No paid click; the last non-direct visit was credited. Good
first-touch-inferred The last visit was direct or unknown; an earlier known visit was credited. Moderate
ai-classified The rulebook returned no answer and a fallback classified it. Overridable in Channel Mapping. Review it
no-data No usable journey data. These become Unknown / Blended. None — a tracking gap

Common questions

Why is one customer credited to only one channel when they clearly used several?

Because the alternative double-counts them. If a customer who saw an ad, clicked an email and then searched were credited to three channels, the sum of your channels would contain three customers who are one person, and every per-customer figure built on top — CAC, profit per customer, payback — would be wrong for all three. One customer, one acquisition channel.

A customer found me through an ad but bought after an email. Which channel gets them?

The paid channel. A clear paid click is the strongest evidence available and outranks the later email touch. This is intentional: the ad created the customer, and the email converted an existing intent.

Why is my Organic/Direct lower in MarginOS than in Shopify’s reports?

Most likely because orders with no usable acquisition signal are being shown as Unknown / Blended here rather than defaulting into Organic/Direct. Add the two together and the totals should reconcile. MarginOS separates them because “we know this was organic” and “we do not know what this was” are different facts that should not share a row.

Do later orders from the same customer get re-attributed?

No. A customer is credited to the channel that won their first-ever order and stays there permanently. Later orders keep counting toward that channel — which is the point, since a channel’s value is everything the customer goes on to buy, not just the first purchase.

Can I correct an attribution that looks wrong?

Yes. Map the source in Channel Mapping and your override takes priority over every automatic rule. This is the right fix for a source MarginOS classified as Other, or an internal tool whose traffic is being read as a referral.

Why did a Google visit land in Organic/Direct instead of Paid Search?

Because there was no paid marker on it. MarginOS requires positive evidence of a paid click before it will charge a customer to a paid channel — a plain visit from a search engine is organic traffic. If you believe the click was paid, the marker was stripped somewhere between the ad click and your storefront — a redirect, a consent banner or an app proxy. Before you go hunting for it, check the paid channel again after your next full re-sync: MarginOS can often recover the marker from click details your storefront recorded on the order itself, and where it can, those orders move to the paid channel on their own.

Related

About the author

Aron Baczoni

Founder of MarginOS, a Profit & Inventory OS for Shopify DTC brands who live and die by margin. Previously 11 years at Google across Ads and Global Business Operations, building large-scale systems. Now focused on giving DTC operators true profit by product, channel, and customer after COGS, 3PL, shipping, returns, and fees, and on showing exactly how much to trust every number behind those decisions.

Read Aron's story

Get Your Profit & Inventory Command Center

See your real margins in real time, not in spreadsheets.

Get your Profit & Inventory Command Center

Or email sales@marginos.com to see your real margins on your own data.