Payments integration
Stripe revenue attribution, renewals included
SourceLoop follows each Stripe customer back to what first brought them to your site, a YouTube review, a Google search, a newsletter, or a paid campaign, and credits every charge, upgrade, renewal, and refund to that source for as long as they pay.
Free 7-day trial. No credit card required.
- Connection
- Stripe webhook + checkout metadata
- Checkout types
- Checkout, Payment Intents, Payment Links
- Revenue events
- Charges, renewals, refunds
- Your other webhooks
- Keep firing
How does SourceLoop attribute Stripe revenue?
SourceLoop brings marketing attribution to Stripe revenue. It receives Stripe events through its own webhook endpoint and links each payment to the website visitor who made it, using two identifiers its first-party tracker passes into Stripe Checkout, Payment Intents, or Payment Links metadata, with email matching as a fallback. One-off charges, subscription changes, renewal invoices, refunds, and chargebacks all attach to the original lead, so MRR, LTV, and revenue are reported by acquisition channel and campaign and can be sent to Google Ads, Meta, Microsoft Ads, and ChatGPT Ads as conversions with their real value.
Updated November 2026
The gap
Most attribution stops at the first payment
-
Trials get the credit, not the revenue
Ad platforms and analytics count the signup or the trial start. The upgrade in month two and the next 24 renewals never reach the channel that earned them.
-
Stripe knows the customer, not the campaign
A Stripe customer record has an email and a card. Which search query, creator video, or ad set produced that customer isn't part of it.
-
Freemium breaks the chain
Someone signs up free in March and pays in June. By then the original session is long gone, and the revenue lands as direct or unattributed.
-
Refunds never reach the channel
Refunds and chargebacks are netted in Stripe but not against the campaign, so a channel that sells to poor-fit customers still looks profitable.
What you get
What connecting Stripe unlocks
-
Lifetime revenue on the original source
Every renewal invoice, upgrade, downgrade, pause, and cancellation hangs off the lead that first converted, so LTV is reported by acquisition channel.
-
Works across all three checkout surfaces
Hosted Checkout, Payment Intents with Elements, and Payment Links all carry the same SourceLoop metadata keys, so in-app upgrades tie back to the original signup.
-
Free-to-paid stays connected
The free signup creates the attributed contact. When the upgrade comes weeks later, the Stripe event matches the same person, the revenue joins its first source, and your CRM sees the same attribution.
-
Net revenue, not gross
Refunds and chargebacks arrive as negative revenue against the original lead, so channel ROAS and payback stay honest months later.
-
MRR and LTV by any attribution model
Compare new MRR, churned MRR, and lifetime value by channel, source, or campaign, under first-touch, last-touch, or multi-touch credit.
The data
What each Stripe customer arrives with
SourceLoop joins Stripe's customer and payment data with the visitor history it recorded on your site.
| Field | Example | Written to |
|---|---|---|
| Acquisition channel at signup | Organic Social · youtube | Contact |
| UTM values of the converting session | utm_source, utm_medium, utm_campaign | Contact |
| First-touch landing page and referrer | /pricing · youtube.com | Contact |
| Pages and visits before checkout | 9 pages · 3 visits | Journey |
| Revenue history | Charges, renewals, upgrades, refunds | Contact |
| Customer name and email | From Stripe | Contact |
Compared
Stripe's dashboard vs an analytics tag vs SourceLoop
An analytics tag here means firing a purchase event from your thank-you page with Google Analytics or a pixel. It records the first sale, not what follows.
| Capability | Stripe dashboard | Analytics tag | SourceLoop |
|---|---|---|---|
| Marketing source on each customer | No | Partly First purchase only | Yes Channel, campaign, journey |
| Renewals credited to that source | No | No | Yes Every invoice |
| Free signups that pay later | No | No Session is gone | Yes Matched to the same lead |
| Refunds netted per channel | Partly Netted overall | No | Yes Against the original lead |
| Real value sent to ad platforms | No | Partly Browser pixel, first sale | Yes Server-side, any payment |
Why it holds up
Revenue data that survives the long gap
Months can pass between a first visit and a renewal. SourceLoop keeps the link between them on its own servers, from your domain's first-party data, so nothing depends on a cookie lasting that long.
Identifiers stored first-party on your site
Payment values sent to ads from SourceLoop's servers
From first visit to first invoice
MRR split by acquisition channel
How it works
Connect Stripe in four steps
Code samples for each checkout type are in How to track lead source in Stripe.
-
<script async src="https://t.sourceloop.ai/tracking-v3.js"></script>
01Load the SourceLoop tracker
Add the script to your marketing site and app so visits are recorded before anyone reaches checkout.
-
Webhook endpoint
- Destination SourceLoop
- Events Payments, subscriptions
02Create the Stripe webhook
Under Developers, Webhooks in Stripe, add SourceLoop's endpoint URL and select the events listed in the Stripe drawer.
-
Signing secret
- Secret whsec_••••••••
- Status Verified
03Save the signing secret
Paste Stripe's signing secret into SourceLoop. It is encrypted on save and only used to verify incoming events.
-
- First touch YouTube / Organic
- Renewals 14
- Lifetime $1,386
04Pass metadata at checkout
Call the tracker's checkoutMetadata helper and attach what it returns to your Checkout Session, subscription, or Payment Intent.
Conversion sync
Report real Stripe revenue to your ad accounts
Instead of a trial signup worth nothing, tell Microsoft Ads, Google Ads, Meta, and ChatGPT Ads about trials started, customers who become paying, or every successful payment, each with its actual amount, so value-based bidding optimises for revenue.
- Trial started
- Becomes paying, valued in months of revenue
- Every successful payment, renewals included
Used by 750+ marketing teams, agencies, and SaaS companies
FAQ
Stripe attribution FAQ
Does it support Stripe Checkout, Payment Intents, and Payment Links?
All three. The webhook setup is identical, and only the step where you attach SourceLoop's metadata differs. Payment Links give the lowest fidelity because there is no per-customer code creating the session.
Are subscription renewals credited to the original channel?
Yes. Each renewal invoice is stitched to the contact who started the subscription, so MRR and LTV stay with the channel that won the signup rather than the most recent visit.
We're freemium. Does revenue still tie back when people upgrade later?
Yes. The free signup creates the contact with its attribution, and when the paid Stripe event arrives weeks or months later it matches the same email and adds the revenue to that original source.
How are refunds and chargebacks handled?
They arrive as negative revenue linked to the original lead, and the Traffic and Revenue report nets them against that source, so channel revenue stays accurate long after the sale.
Will our existing Stripe webhooks to Zapier, HubSpot, or a warehouse keep working?
Yes. SourceLoop gets its own copy of events through its own endpoint, and every other destination keeps receiving Stripe events as before.
What happens if I skip the checkout metadata step?
Payments still arrive, but SourceLoop falls back to matching by customer email, which is less reliable, especially for one-off purchases where the customer is created at checkout.
Is the signing secret safe, and is visitor tracking privacy-friendly?
The signing secret is encrypted at rest and only used server-side to verify events, and you can rotate it in Stripe at any time. Visitor tracking is first-party, follows Google Consent Mode, and has a cookieless option.