Stripe revenue attribution

Stripe revenue attribution, with refunds netted out

Stripe knows the money; your analytics knows the traffic. Connect a Stripe webhook and pass the visitor id at checkout, and each charge arrives tied to the visit and campaign that produced it.

No credit card required · One script tag

  • First-party tracking · One script
  • Cookieless Mode on every plan

Stripe revenue by channel

Demo workspace · Jul 4 – Aug 2, 2026

$21,430

Revenue

126

Conversions

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

A payment without the visitor ID is still recorded, as unattributed revenue.

  • Google Ads
  • Meta
  • LinkedIn
  • Microsoft Ads
  • TikTok
  • Stripe
  • Shopify
  • HubSpot
  • GA4
  • Search Console
  • WooCommerce
  • Webflow
  • WordPress
  • Typeform
  • Calendly
  • Intercom
  • Zapier
Works with
Where it goes wrong

Five ways your payment tracking gets revenue-by-channel data wrong

1 · Where it goes wrongPayment tracking
  • Stripe has no idea where the customer came from

  • Analytics counts the visit, not the dollars

  • Refunds still count as revenue

2 · The screen you open
Stripe revenue 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
  • Join each charge to the visit that produced it
  • Net refunds out of channel revenue
  • Count a resent payment event once

SourceTrack joins each charge to the visitor session, nets refunds out of the channel, counts a retry once, and lets you re-credit the same revenue under ten models.

  • A retried webhook counts twice
  • Last click takes all the credit

What you get

Credit each Stripe charge to the channel that earned it

  • Join each charge to the visit that produced it

    When you create the Stripe Checkout Session, pass the visitor id as client_reference_id. The charge is then tied to that visitor as it arrives.

  • Net refunds out of channel revenue

    A refund comes off the channel, so it cannot look profitable on money that came back.

  • Count a resent payment event once

    Each payment event is recorded once, so a Stripe resend cannot double-count.

  • Re-credit the same revenue under ten models

    The total is fixed; switching models only moves the credit between channels.

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

How it fits together

Payment tracking end to end.

Payment sources

StripeShopify

Revenue joins

Revenue by channelRefund-nettedTen models

The charge arrives by webhook and is tied to the visitor id that produced it. Refunds net out, and each payment event is recorded once, so a resend cannot double-count.

Integrations

Works with Stripe and Shopify

Payments arrive by webhook from the tool that took the money.

The difference

The same conversion, before and after.

Without SourceTrack

  • Stripe knows the money, analytics knows the traffic
  • Refunds still counted as revenue
  • Retries can double-count a charge

With SourceTrack

  • One record holding both
  • Refunds netted out of the channel
  • Idempotency key claimed after the write

FAQ

Questions to settle before you install

Do I need to change my checkout?

One small change. Stripe sends each payment to SourceTrack as an automatic message (a webhook), and your checkout needs to pass the visitor ID along with it, so the payment links to the visit behind it. A payment that arrives without the ID is still recorded, but as unattributed revenue rather than credited to a source.

What happens when an order is refunded?

The refund is taken off the channel that was credited, so a source cannot look profitable on money that came back. Reports that ignore refunds flatter paid channels most.

Stripe can resend payment messages (webhooks). Will a charge be counted twice?

No. SourceTrack recognises a repeated message from Stripe, so a retry is neither counted twice nor silently dropped.

Does it handle subscriptions and renewals?

Payments, renewals, cancellations and refunds are sent to SourceTrack by Stripe’s automatic messages (webhooks). Connect it, then check the figures against your own Stripe dashboard before you rely on them.

Does this replace Stripe's own reporting?

No. Stripe stays the record of the money. SourceTrack adds the one thing Stripe cannot see, which visit and which channel produced the charge.

Does changing the attribution model change my revenue?

No. The revenue total is fixed by what Stripe reported. Switching model only moves the credit between channels, and you can compare any two side by side.

Put a channel on your Stripe revenue

One script tag and one webhook. Revenue by channel, refunds netted out, retries counted once.

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

Which source earned it?Example
  • Google Ads
  • ChatGPT
  • LinkedIn
  • Google Search
  • Direct

Sources ranked by the revenue they brought in.