Connecting Stripe to Amplitude
Stripe knows exactly what was paid, by whom, and when — down to the cent, including the refund three weeks later. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the Stripe Customer or PaymentIntent before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Stripe to Amplitude: revenue on the user who used the product
Store your app's user ID on the Stripe Customer and Checkout Session metadata, then send revenue events to Amplitude from webhooks like invoice.paid with that ID, price converted from cents, quantity, revenue type and currency. Use the invoice or charge ID as insert_id against retries. Send plan changes as their own events and refunds as negative revenue.
For a SaaS or app business, Stripe holds what was paid and Amplitude holds what people did in the product. The join is the user ID your app assigns. Store it on the Stripe Customer as metadata when you create the customer, and on the Checkout Session or subscription, so every webhook, whether invoice.paid, customer.subscription.updated or charge.refunded, can carry the same ID Amplitude already uses for that user.
Send revenue events from the webhook, not the browser: price converted from Stripe's smallest currency unit to dollars, quantity, a revenue type distinguishing new, renewal and expansion, and currency. Skipping the cents conversion is the Stripe-specific bug: revenue arrives 100 times too high, and nobody notices until a cohort shows $4,900 for a $49 plan. Use the Stripe invoice or charge ID as insert_id, since Stripe retries webhooks that do not return a 2xx response.
Subscription changes are where this pair earns its keep. Plan upgrades and downgrades in Stripe should become their own events, so a cohort chart can show which in-product behavior precedes an upgrade. Refunds and disputes arrive as negative revenue tied to the original charge. If you use any packaged Stripe-to-Amplitude sync, confirm that it maps users by your app's user ID rather than the Stripe Customer ID, or revenue lands on users who appear nowhere else.
Stripe → Amplitude · what breaks
Why this join usually fails — Stripe → Amplitude
- 01
The user ID and device ID pair never reaches Stripe
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
- 02
Checkout is on Stripe's domain, so the browser loses the thread
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Stripe → Amplitude · the fix
What working looks like — Stripe → Amplitude
The user ID and device ID pair on every payment
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
Stripe → Amplitude · architecture
How Stripe and Amplitude actually connect
- 1
Stripe holds the truth
Every succeeded PaymentIntent is a real conversion with a real amount and currency. No sampling, no modeling, no consent gate. This is the number the business actually banked, which is why it is the reference rather than anything either ad platform reports.
- 2
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the Stripe Customer or PaymentIntent.
- 4
The event source decides reliability
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
- 5
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Stripe → Amplitude · normal or broken
Working vs. broken, side by side — Stripe → Amplitude
Normal, not a fault
The user ID and device ID pair present on the payment
Sent from the Stripe webhook
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair missing on most records
Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created.
Sent from the browser
The customer leaves your site, pays somewhere else, and comes back to a thank-you page. Anything relying on browser continuity across that hop is unreliable, and on Safari it is worse than unreliable.
Counted twice, or not at all
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
Stripe → Amplitude · diagnose
Diagnostic order — Stripe → Amplitude
- 01
Count payments carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Open one succeeded PaymentIntent in the Stripe dashboard
Look at its Metadata section. If the identifier is not there, nothing downstream can fix it — the join is broken at the source and every other check is wasted effort.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
Stripe → Amplitude · prove
How it gets proven — Stripe → Amplitude
Source of truth
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
- The user ID and device ID pair confirmed present on a live payment.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- A refunded payment confirmed to reverse, not just the sale confirmed to send.
Stripe → Amplitude · free audit
What we check in the free audit
- Count payments carrying the user ID and device ID pair
- Follow one real conversion end to end
- Open one succeeded PaymentIntent in the Stripe dashboard
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
The Stripe dashboard — Payments, filtered to succeeded, for the same window.
Free30 minutesNo obligation
Stripe → Amplitude · when not to buy
When you don't need this — Stripe → Amplitude
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the user ID and device ID pair.
- If you take payment through a hosted Payment Link or Buy Button and have no server creating sessions, this needs a development change on your side before any tracking work is worth commissioning. Worth knowing before you pay for tracking.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Stripe → Amplitude · what we deliver
What gets built — Stripe → Amplitude
Identifier capture into Stripe
Read the click identifier from the landing page, persist it in a first-party cookie, and pass it into the create-session call as metadata. Stripe carries metadata onto the resulting PaymentIntent and Charge, so it survives to the webhook and to any later refund.
Event source: the Stripe webhook
Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
Dispatch to Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
Reversals where they exist
Stripe fires charge.refunded and charge.dispute.created. Both carry the original metadata, so a refund can be sent as a negative or a retraction wherever the destination supports it. Most setups never wire this and quietly overstate revenue by the refund rate.
Written guarantee
95%+ tracking accuracy
Measured against The Stripe dashboard — Payments, filtered to succeeded, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Stripe → Amplitude questions, answered
Stripe amounts are in the smallest currency unit, which is cents for USD. Divide by 100 before setting price.
Store your app's user ID in Stripe Customer metadata and send it as the Amplitude user ID with each webhook event.
Almost always because the user ID and device ID pair never reached the Stripe Customer or PaymentIntent. Stripe Checkout runs on checkout.stripe.com, a different origin from your site, so nothing you set in a first-party cookie travels with the customer. The identifier has to be put into PaymentIntent metadata (or the Checkout Session's metadata) at the moment you create the session, server-side. If you create sessions from a price link or a Buy Button, there is no server step and no metadata — that setup cannot be joined to advertising at all without changing how sessions are created. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
The Stripe webhook. Subscribe to payment_intent.succeeded (or checkout.session.completed) and send from your server when Stripe fires it. Reading a payment from the thank-you page instead means every customer who closes the tab on the redirect is a conversion you never counted, and Stripe redirects after taking money, not before.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on Stripe → Amplitude
- Stripe Billing → AmplitudeConnecting Stripe Billing to Amplitude
- Stripe → Google AdsConnecting Stripe to Google Ads
- Stripe → MetaConnecting Stripe to Meta Conversions API
RELATED GUIDES
Where Stripe → Amplitude fits in the rest of your tracking
- PayPal → AmplitudeConnecting PayPal to Amplitude
- Stripe Billing → AmplitudeConnecting Stripe Billing to Amplitude
- Stripe → GA4Connecting Stripe to GA4
- Stripe → MatomoConnecting Stripe to Matomo
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- PayPal → MatomoConnecting PayPal to Matomo
- PayPal → GA4Connecting PayPal to GA4
- PayPal → Adobe AnalyticsConnecting PayPal to Adobe Analytics
Free · 30 min
Get Stripe and Amplitude joined properly
Free30 minutesNo obligation
