Attribution on Shopify means deciding which marketing touchpoint gets credit for an order. Out of the box, Shopify credits the last non-direct click, while every ad platform uses its own rules, so no two dashboards will match. The goal is not one perfect number. It is a consistent method, clean tracking and a clear idea of which tool answers which question.
This guide covers what Shopify measures natively, how the common models split credit, why your reports disagree, and how a DTC brand can set up and use attribution without fooling itself.
TL;DR
- Shopify’s default view uses a last non-direct click model, so it favors the final channel a shopper used and ignores earlier touches.
- Ad platforms, GA4 and Shopify disagree because of different models, click and view windows, event counting and refund handling. Treat Shopify as your revenue record.
- Pick a model by what you want to learn: first-touch for discovery, last-touch for closing channels, multi-touch to see the whole path.
- Fix tracking before you debate models: server-side events, a clean data layer and consistent UTM tags.
- Use attribution to optimize inside channels, and use holdout tests to check the big budget lines.
Table of Contents
- What attribution means for a Shopify store
- Why a “Direct” order is often not direct
- How the main attribution models assign credit
- Why Shopify and your ad platforms disagree
- How to set up attribution tracking on Shopify
- Choosing a model that fits your brand
- Turning attribution into budget decisions
- Our perspective on attribution
- Get your measurement and paid media in order
- FAQ
- Sources
What attribution means for a Shopify store
Every order has a story. A shopper may see a Meta ad, search your brand a week later, open an email and then buy from a direct visit. Attribution is the set of rules that turns that story into a credit assignment, so you can tell which channels deserve more budget.
Shopify’s marketing reports attribute sales to the referrer that introduced a customer or the one used just before the order. The default attribution model when you view marketing activity is last non-direct click: 100% of credit goes to the last channel before purchase, excluding direct visits.
The same reports show metrics such as sessions, sales, orders, conversion rate, ad spend, ROAS, CPA, CAC, AOV, and first-time versus returning customers. The referrer source is grouped as Direct, Search, Email, Social or Unknown. The referrer name can show as N/A when Do Not Track is on, a proxy or firewall blocks the referrer, or a shortened URL was used.
The path to purchase view
Shopify also offers a Path to purchase view. It shows how many marketing touchpoints lead to an order, how long customers take to buy, and which sequences of channels lead to sales. For a brand with a considered purchase, this is often the first place to see that the “last click” is rarely the whole story.
Where to find it today
Shopify reorganized its marketing reports in April 2025. The older conversion by first interaction, conversion by last interaction and attribution model comparison reports were retired in favor of the marketing channel performance report. If a tutorial sends you to a screen that does not exist, that is why. The default channel performance report shows the last 30 days using last non-direct click, and the Growth > Attribution page summarizes the channel and campaign reports.
Why a “Direct” order is often not direct
Many Shopify owners see a large Direct share and assume it is brand strength. Often it is a tracking artifact. Direct is not a real channel: it is the fallback bucket Shopify uses when a converting session has no readable non-direct referrer. Two things have to survive for credit to reach a real channel: a referrer cookie on the converting device, and a purchase inside the 30-day window.
That explains the common patterns:
- A shopper clicks an ad on a phone and buys later on a laptop. The laptop session has no referrer.
- A shopper clicks, then buys 45 days later. The stored first-interaction referrer resets after 30 days without a purchase, so the order shows as Direct.
- A shopper comes from a link shortener or a privacy-focused browser, so the referrer is blank.
If your product has a long consideration cycle, a meaningful part of your “Direct” revenue was probably influenced by paid or organic channels earlier.
How the main attribution models assign credit
A model is just a rule for splitting 100% of the credit for an order across the touchpoints in the path. Shopify’s own query documentation confirms that the chosen model reallocates conversion credit, and that some models can make channel totals add up to more than overall metrics. Credit rules change the reported numbers, even though the orders are identical.
| Model | How credit is split | Best for | Blind spot |
|---|---|---|---|
| First click | 100% to the first touch | Judging discovery channels such as paid social or creators | Ignores everything that closed the sale |
| Last click | 100% to the final touch | Judging bottom-funnel channels such as email or branded search | Over-rewards channels that harvest existing demand |
| Last non-direct click | 100% to the final non-direct touch | Shopify’s default, a practical baseline | Still single-touch |
| Linear | Equal share to every touch | A first look at the full journey | Treats a casual impression like a decisive click |
| Time decay | More credit to touches closer to the sale | Short sales cycles and promotions | The decay setting is a judgment call |
| Position-based | 40% first, 40% last, 20% across the middle | Brands that value both introducing and closing | Fixed weights are arbitrary |
| Data-driven | Credit by modeled impact on conversion probability | High-volume accounts inside one ad platform | Only sees touches it can observe |
Position-based and time decay in numbers
Position-based (U-shaped) attribution gives 40% to the first touch, 40% to the last and splits 20% across the middle. Time decay weights recent touches more heavily, commonly with a 7-day half-life, so a click seven days before the sale counts half as much as a click on the day of the sale.
A worked example: a $100 order follows a paid social click, an email click and a branded search click. Under position-based, social gets $40, search gets $40 and email gets $20. Under linear, each gets about $33.33. Under last click, branded search gets all $100. Same order, three different stories about where to spend.

Time decay has a catch. Its half-life is somewhat arbitrary, and an impactful early touch can be undervalued just because it happened far from the conversion. It is a heuristic, not a measurement of causal impact.
Data-driven attribution
Google describes data-driven attribution as a counterfactual: it compares the conversion probability of users who saw an ad with similar users who did not, and credits each interaction by how much it changes that probability. In Google’s own example, if removing one ad exposure drops the chance of a key event from 3% to 2%, that exposure gets credit for a 50% increase.
It works best with volume. Google recommends at least 200 conversions and 2,000 ad interactions in 30 days for more precise results. It also only splits credit among touchpoints it saw, so a podcast mention or a friend’s recommendation gets nothing.
The multi-touch view still matters because shoppers rarely use one channel. In a Salsify survey of more than 2,700 shoppers in the US, Canada and the UK, over half said they check two to three channels before buying mid-range items such as apparel, beauty or sports equipment.
Why Shopify and your ad platforms disagree
This is the question that eats most of a DTC marketer’s week. The short answer: each tool counts a different thing with a different rule.
Models and windows. Google Ads defaults new conversion actions to data-driven attribution over a 30-day click window. It can count cross-device and modeled conversions, and it reports revenue on the date of the ad click. Shopify counts completed orders on the day they happen and attributes them to the last click at checkout. Google’s video campaigns can also count engaged-view conversions with a default one-day view-through window, which Shopify does not measure. Google has also reportedly retired its first-click, linear, time-decay and position-based models across 2023 and 2024, leaving data-driven and last-click.
View-through. Ad platforms count view-through conversions: someone who saw an ad, did not click and bought later. Click-based attribution does not.
Crediting logic. Tools store attribution differently and credit the channel that matches their own logic. An analytics model may credit the session it favors, while Shopify may classify the order by how the shopper arrived at checkout, which can be Direct or Organic.
GA4 event counting. GA4 only records revenue when a purchase event fires and reaches Google’s servers. Ad blockers, shoppers closing the confirmation page early and tag errors can interrupt that, so GA4 revenue is often lower than Shopify’s completed-order revenue. The same source points to three core reasons for gaps: attribution models, counting methodology (orders versus events) and reporting windows or timezone settings.
Refunds. Shopify subtracts refunds from revenue when they are processed. Many ad platforms keep the original purchase unless you send an adjustment, so platform revenue can run higher than Shopify net revenue.

A practical rule for reconciling
Do not try to force two tools to match to the last order. Sessions and customers can differ between reports because of how sessions are counted and deduplicated, which is a reason not to reconcile tools to the last order. Instead, treat Shopify as your revenue record, use a blended number across platforms and judge campaigns on per-order profit.
How to set up attribution tracking on Shopify
Models are only as good as the data under them. Before you trust any report, run a conversion-tracking audit to see how much of your data is actually captured, because multi-touch attribution increasingly measures only the slice of users it can still see.
- Audit what you track today. List every pixel, tag and app firing on your store. Place a test order and confirm that the purchase event fires once, with the right value, in each platform and in GA4.
- Fix the data foundation. A consistent event layer makes everything downstream cleaner. Our guides on setting up the Shopify data layer with GTM and GA4 and on Shopify analytics setup with GA4 and pixels walk through it.
- Recover lost events. Browser restrictions and blockers drop client-side events. Server-side tracking through Web Pixels sends conversions from a more reliable path and gives ad platforms better signals.
- Standardize UTM parameters. Agree on one naming convention for source, medium and campaign across ads, email, SMS, influencers and affiliates. Inconsistent tags are the most common reason channel reports look messy. Shopify’s journey data carries the landing page, referrer URL, source, source type, UTM parameters and referral code for each visit, which are the fields used for channel assignment.
- Respect consent. Tracking has to honor the privacy rules of the regions you sell in. Our GDPR guide for Shopify covers consent and data handling.
- Choose your lookback window from data. Measure the median days from first session to order, then set the window comfortably above it. A brand selling a $20 consumable and one selling a $900 mattress should not use the same window.
- Compare models side by side. Look at first-touch, last-touch and a multi-touch view on the same period. Channels that rise under first-touch and fall under last-touch are your introducers. Channels that do the opposite are your closers.
If you are assessing tools to help with this, the Shopify SEO academy is a useful companion for understanding how organic search fits into the channel mix you are measuring.
Choosing a model that fits your brand
There is no universally right model. Match the model to the decision.
- Deciding where to find new customers: look at first-touch alongside the path to purchase view.
- Deciding how to improve closing channels like email and SMS: last-touch is fine and easy to read.
- Judging campaigns within one platform: attribution signals are comparatively reliable here, because the same biases apply to every campaign in that platform, so relative comparisons hold even when absolute numbers are inflated.
- Setting the quarterly budget across channels: attribution alone is the wrong tool. The same source says attribution is for operational optimization, not strategic budget decisions.
A useful layered approach: use marketing mix modeling for quarterly budget allocation, attribution and platform signals for daily optimization, and periodic incrementality tests on the biggest line items to calibrate both. When the three disagree sharply, that disagreement is the most valuable finding.
Turning attribution into budget decisions
Rank by net, not gross. Compare channels on net attributed revenue per dollar spent, not on orders or gross sales. A channel with a 30% return rate and one with 5% are not comparable on gross revenue.
Move money in small steps. Shift roughly 10% to 20% of a channel’s budget at a time and hold everything else steady, so you can see what actually changed.
Test the big claims. A minimum viable incrementality program is two to four geo experiments or holdout tests a year, rotating through top channels. Start with your largest spend or the channel you suspect of inflating its own results, usually retargeting or branded search. Record the incremental ROAS from each test and compare it with the ROAS the platform reports.
Watch the weak signals. Rising Direct revenue, a branded search surge after a creator campaign, or an email list that grows after a paid social push are all signs of influence that last-click reports hide.
Common mistakes to avoid
- Using a 30-day view of a product with a 60-day buying cycle.
- Comparing platform ROAS to Shopify revenue and calling the gap fraud.
- Changing the model every month, which makes trends unreadable.
- Cutting a top-of-funnel channel because last-click gives it little credit, then watching branded search and email decline weeks later.
- Running duplicate purchase events from an old app and a new pixel, which inflates conversions.
Our perspective on attribution
We see the same pattern in DTC brands that come to us confused by their numbers. The problem is rarely the model. It is the plumbing: duplicate events, slow pages that lose sessions before tags fire, inconsistent UTMs and apps that overlap.
That is why we start with the technology and the measurement foundation, then move to strategy. A clean setup lets you compare first-touch and last-touch views with confidence, and it makes paid media decisions far less of a guessing game.
We also believe in fixed-fee, clearly scoped work. Attribution is a moving target, so you need clear expectations and measurable outcomes rather than an open-ended retainer. Our data-driven approach pairs Shopify technology expertise with marketing strategy, so tracking, speed, apps and ad spend are looked at together.
Our advice: choose one source of revenue truth, use attribution to optimize inside channels, and keep your budget decisions grounded in profit per order.
Jason
Get your measurement and paid media in order
If you want a second set of eyes on the channels you are measuring, our Paid Media Audit & PPC Strategy is a fixed-fee engagement at $1,499. For the tools behind your tracking, Best Shopify Apps Selection & Setup is $999 one-off, and it is designed to help you choose and configure the right apps for your store. Organic search is part of the attribution picture too, and our Shopify SEO Services are $999 one-off.
Browse the full range of ecommerce marketing services or start at zcoder.io to see how we work with DTC brands.
FAQ
What attribution model does Shopify use by default?
Shopify’s marketing reports default to last non-direct click, which gives all credit to the last channel before purchase and ignores direct visits. The default channel performance report covers the last 30 days. Shopify’s help documentation lists the available metrics and sources.
Why does Meta or Google show more sales than Shopify?
Ad platforms use their own windows, count view-through and modeled conversions, and often keep refunded orders unless adjusted. Shopify counts completed orders and credits the last click. Use Shopify as the revenue record and the platform numbers as directional signals for optimization.
Which attribution model is best for a DTC brand?
None is best everywhere. First-touch helps you judge discovery channels, last-touch helps with closing channels, and a multi-touch view shows the full path. Compare them side by side on the same period, and use incrementality tests to check your largest channels.
Why are so many of my orders marked Direct?
Direct is a fallback when Shopify cannot read a non-direct referrer. Cross-device purchases, blocked referrers and buying cycles longer than 30 days all push credit into Direct. Cleaner tracking and consistent UTMs reduce it.
Sources
- Shopify Help Center: Marketing reports
- Shopify Help Center: Measuring marketing performance
- Shopify.dev: ShopifyQL WITH syntax
- Shopify blog: Multitouch attribution
- WeltPixel: How Shopify attribution works
- WeltPixel: Why Shopify marks orders as Direct
- Tagada: Ecommerce attribution models
- Statsig: Marketing attribution models survey
- PodVector AI: Google Ads ROAS vs Shopify
- Consequential Docs: Why attribution tools disagree
- Two Owls: GA4 revenue vs Shopify
- Data Master: Shopify revenue discrepancy
- Statsy: Ecommerce attribution
- Adspirer: Marketing mix modeling vs attribution
- Marketing Triangulation: Measurement stack
