eCommerce & DTC

Ecommerce attribution with ROAS net of refunds

Meta says 4x ROAS. Your bank account disagrees. SourceTrack ties each Shopify order to the visit that produced it and nets refunds out, so you see which ads brought orders that stuck. Every morning, SourceTrack’s agents flag campaigns that spend without bringing orders and propose the fix for you to approve.

No credit card required · No third-party cookies

Orders by channel

Demo workspace · Jul 4 – Aug 2, 2026

$21,430

Order revenue

126

Conversions

Order revenue by channel

  • Paid Search

    Google Ads

    $7,080

  • Organic Search

    Google

    $5,410

  • Direct

    Direct / none

    $4,940

  • AI Search

    ChatGPT, Gemini, Claude +13

    $2,480

  • Paid Social

    LinkedIn + Meta

    $1,040

  • Referral

    Partner websites

    $480

Refunds are netted out of attributed revenue. ROAS appears once you import ad spend.

Visits, forms on your own pages and embedded bookings come from one script tag, and payments arrive by webhook. Forms embedded from another website can’t be seen by our script, so use the form tool’s own webhook. See every integration.

The problem

Your ROAS report is counting money you gave back

Ad platforms grade their own campaigns on their own pixel. Your bank account sees the refunds.

1 · What you hearEcommerce
  • “Meta and Google both claim the same order. Added up, we sold more than we shipped.”
  • “ROAS includes orders that were refunded last week.”
  • “Most of our traffic has no UTM, so it lands in Direct.”
2 · The screen you open
Orders by channelDemo workspace · Jul 4 – Aug 2, 2026
Paid SearchGoogle Ads$7,080
Organic SearchGoogle$5,410
DirectDirect / none$4,940
AI SearchChatGPT, Gemini, Claude +13$2,480
Illustrative data
3 · What changes
  • Tie each order to the click that earned it
  • Report ROAS on the revenue you kept
  • See which orders started in an AI assistant
  • A shopper compared products in ChatGPT and bought three days later. The report says Direct.
  • Blended ROAS hides that prospecting loses money while brand search carries the month.
  • The pixel misses orders when a shopper blocks scripts, so the platform under-reports.

Over-attribution

Ecommerce attribution: three platforms, one sale

Take one $84 order. Add up what each platform reports and you sold $252 of product.

Reported byClaimsWhat it is counting
Meta Ads$84Counts the order: someone saw an ad inside its attribution window.
Google Ads$84Counts the same order, for the same reason, from its own window.
TikTok Ads$84Also counts it. None of the three is lying; each measures alone.
SourceTrack$84One order, counted once, then split across the journey by the model you pick.

Illustrative order.

What you get

Order-level attribution, net of refunds

  • Tie each order to the click that earned it

    Each Shopify order that carries the visitor id is tied back to the campaign, click ID, or AI search session that generated it. Shopify tells SourceTrack when an order is placed (an order webhook).

  • Report ROAS on the revenue you kept

    A pixel records the purchase at checkout and never hears about the refund. SourceTrack subtracts refunds from attributed revenue, so campaign ROAS is worked out on net revenue once you import your ad spend.

  • See which orders started in an AI assistant

    Shoppers compare products in ChatGPT and Perplexity, then buy days later. SourceTrack names the AI assistant by the site the visitor came from and attributes the order revenue to it when the order carries the visitor id.

Attribution comparison

eCommerce Attribution Comparison

Stitch ad clicks and AI research to actual Shopify order revenue.

Without SourceTrackUnattributed
Attributed Source:Session ends at the visit
Not joined to the order
Captured Journey Touchpoints
No touchpoints captured

The order arrives on its own. Nothing links it to the ad click or the research session that preceded it.

utm_source—
utm_medium—
utm_campaign—
StatusUnattributed Order
Order Value$280.00
With SourceTrackStitched
Attributed Source:Paid Search -> AI Referrer
Google Ads + Claude AI
Full Touchpoint Journey Chain
Google Ad Click08:45

gclid=ad_8912 (Google Ads)

Claude AI Comparison09:02

Referrer claude.ai — no UTM, no ad click

Add to Cart09:08

Same visitor, same first-party session

Shopify Webhook09:10

Order #8421 ($280.00)

utm_sourcegoogle
utm_mediumcpc
utm_campaignsummer_sale_search
StatusFirst-Touch Paid / Last-Touch AI Stitched
Order Value$280.00

AI referrals

Order revenue attributed to AI research sessions

AI referral sources
SourceLeadsRevenue
ChatGPT38$3,840
Perplexity12$1,180
Gemini11$1,020
Claude6$610
AI attribution

AI referrals drove 21% of conversions this period, with the revenue joined to each assistant by name.

DTC channel mix

Every channel a DTC team actually uses

Each visit is labeled with its channel when it starts.

  • Paid social and paid search

    Click IDs and campaign params are kept through the landing page, so the order knows which campaign earned it.

  • Organic and referral

    Referrer kept rather than discarded, including links ending in ?ref= or ?via=.

  • AI assistants

    Sixteen answer engines labeled when the visit starts.

Campaigns

Know which campaigns turn spend into revenue

ROAS, cost per acquisition (CPA) and cost per click (CPC) per campaign when spend and currency are known. No spend imported means no ROAS, never $0.

Campaign performance

CampaignSpendRevenueROAS
  • Brand search$2,000$9,0004.5×
  • Prospecting$5,000$7,5001.5×
  • Retargeting$1,000$3,0003.0×
Illustrative · last 30 days · spend imported by CSV or API.

Compare your ad dashboard with the orders you kept

Add the snippets, import your spend, and read campaign ROAS on net revenue.

No credit card required. Paid plans start at $49/month.

How it works

Go from first visit to attributed revenue in three steps

01 · Track

Add the script

One script tag in your head, or through Google Tag Manager.

<script src="https://api.srctk.com/tracker.min.js"
  data-site-key="YOUR_SITE_KEY"
  async></script>
WordPressWebflowShopify
Install guide
02 · Connect

Connect your revenue

Stripe or Shopify webhooks, or events from your server.

StripeShopifyHubSpot
All integrations
03 · Attribute

Pick an attribution model

First touch, last touch, linear and more, on the same data.

First touchLinear+8 more
Attribution models

Alongside Shopify

Better than the default traffic report

RowDefault traffic reportSourceTrack
CountsVisits, as sessions by sourceRevenue by source, from orders that arrive through a Shopify or Stripe webhook
Untagged trafficUntagged and referrer-stripped traffic collapses into directAd clicks, ?ref= links, search engines and AI assistants are recognised without a UTM tag
CreditOne order can still be claimed by three ad platforms at onceOne order, credited under whichever of the ten models you pick

FAQ

Ecommerce attribution, answered

Why do Meta and Google both claim the same order?

Each ad platform counts any conversion it touched, so added together they exceed the orders you shipped. SourceTrack keeps one record per order, on your own domain, and credits it under the attribution model you pick. The total stays the same; only the credit moves.

How do I calculate ROAS after refunds?

Divide attributed revenue, net of refunds, by ad spend. SourceTrack does this per campaign once you import spend by CSV or API. Without spend, ROAS stays hidden instead of showing $0.

How do I attribute Shopify orders to Facebook and Google ads?

Add the tracking snippet and the cart snippet to your Shopify theme. The cart snippet saves the visitor’s ID with the order, and Shopify sends it to SourceTrack when the shopper buys. Each order that carries it is tied to the campaign, ad click or AI referral behind that visitor.

Can I see which orders started in ChatGPT or Perplexity?

Yes. SourceTrack names AI assistant visits by the site the visitor came from and keeps that source on the visitor until the order lands. It sees which assistant sent the visit, not what the shopper asked.

What about shoppers who arrive without UTM tags?

Ad clicks, links ending in ?ref= or ?via=, search engines and AI assistants are recognised without a UTM tag, so they get their own source. A link with no tag and no referring site, such as one in an email app, still shows as Direct, so tag your emails.

Does it work if shoppers block scripts?

Orders reach SourceTrack from Shopify, not from a tracking pixel in the shopper’s browser, so a blocker cannot drop the order itself. An order is tied to its source when it carries the visitor’s ID saved by the cart snippet.

Can I send conversions back to Meta and Google?

Conversions API connectors for Meta, Google Ads, GA4, TikTok, LinkedIn and OpenAI Ads send a conversion from your own server only after a payment or your server confirms it. They skip visitors who declined consent, sent Do Not Track or Global Privacy Control signals, or were erased. A log shows each send and why any was skipped. Check each platform's own reporting to confirm what it received.

Know which ads earned the orders you kept.

Tie each Shopify order to the click behind it, net refunds out of attributed revenue, and read ROAS on what you kept once you import ad spend.