Shopify Store Attribution

Your Shopify orders know which ad paid for them.
Your dashboard just hasn't been told yet.

SourceTrack carries the visitor id from your storefront to Shopify’s order webhook, so each order that carries it is tied back to the paid, organic or AI-referred visit behind it.

No credit card required · Snippets go in your theme.liquid

Shopify orders by channel

Demo workspace · Jul 4 – Aug 2, 2026

$21,430

Order revenue

126

Conversions

Revenue by channel

  • Paid Search

    34 conversions

    $7,080

  • Organic Search

    28 conversions

    $5,410

  • Direct

    29 conversions

    $4,940

  • AI Search

    19 conversions

    $2,480

  • Paid Social

    10 conversions

    $1,040

  • Referral

    6 conversions

    $480

An order that carries the visitor ID is tied back to the visit that produced it.

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 Shopify orders are missing their ad

1 · What you hearShopify
  • “I can see the order in Shopify. I can't see which ad sent that shopper.”
  • “A shopper clicked an ad on Monday and bought on Friday. The order only remembers Friday.”
  • “Refunded orders still count in my ad numbers.”
2 · The screen you open
Shopify orders by channelDemo workspace · Jul 4 – Aug 2, 2026
Paid Search34 conversions$7,080
Organic Search28 conversions$5,410
Direct29 conversions$4,940
AI Search19 conversions$2,480
Illustrative data
3 · What changes
  • Orders that carry the visitor id get a source
  • See which orders an AI answer started
  • Report ROAS on what you kept after refunds
  • Shoppers who researched in ChatGPT or Perplexity show up as Direct.

By source

Shopify attribution at order level: revenue by source

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.

With the visitor id

Built for Shopify and DTC stores

Without itWith SourceTrack
  • Which ad sent the shopperNot on the orderOn every order that carries the visitor id
  • A shopper who asked ChatGPTShows as DirectNamed by the site they came from
  • A refunded orderStill counted in ad numbersSubtracted from revenue
  • ROAS by campaignSpend and orders in two toolsNet revenue over spend, once spend is imported

Find out which ad your last order came from

Add the snippets, add the order webhook, and read orders and revenue by source.

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

FAQ

Shopify attribution, answered

How do I track which ad led to a Shopify order?

Add the SourceTrack 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. SourceTrack then ties the order to the campaign, ad click or AI referral behind that visitor.

Is there a SourceTrack Shopify app?

No. There is no Shopify App Store listing. Instead you add an order webhook (an automatic message from Shopify to SourceTrack) in your own Shopify admin and paste its signing secret into SourceTrack’s Integrations page.

Does Shopify attribution account for refunds?

Yes. Refunded orders are subtracted from attributed revenue, so a channel cannot look profitable on money that came back. ROAS is worked out on net revenue once you import your ad spend.

Why do some Shopify orders show as Direct?

Direct means no tag, no ad click and no referring site. An order can only be tied to a visit when its cart carries the visitor’s ID. Ad clicks, search engines and AI assistants are recognised without a UTM tag, but a link with no tag and no referring site still shows as Direct, so tag your emails.

Can I see ROAS by campaign for my Shopify store?

Yes, once you import ad spend by CSV or API. Campaign ROAS is attributed net revenue divided by spend. Without spend imported, ROAS stays hidden instead of showing $0.

Can I see which AI assistant sent a Shopify customer?

SourceTrack names visits from ChatGPT, Claude, Gemini, Grok and Perplexity by the site the visitor came from. It sees which assistant sent the visit, not what the shopper asked.

Does Shopify tracking use cookies?

SourceTrack tracks only on your own domain, with no cross-site identifiers and no raw IP stored in the event database. Do Not Track and Global Privacy Control signals are honoured. Cookieless Mode, a setting on every plan, uses no cookies and keeps no visitor ID in the visitor’s browser.

Know which ad paid for each Shopify order.

Add the theme.liquid snippet and the cart-attribute snippet, add the order webhook in your Shopify admin, and every order that carries the visitor id is tied back to its source.