Connecting Braintree to Amplitude
Braintree is a payment gateway rather than a storefront, so it sits underneath whatever is taking the order and holds the transaction itself. 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 Braintree transaction 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
Braintree into Amplitude: settled revenue on the right user ID
Send settled Braintree transactions to Amplitude under your application's user ID, stored in a custom field or looked up from your order table, never the Braintree customer ID. Populate price, quantity and revenueType, and use the transaction ID as insert_id. Recurring billing charges are separate revenue events on the same user; send refunds as negative revenue.
Amplitude is where a Braintree merchant asks which acquisition cohorts keep paying, and that question only works if the server event lands on the same person the browser SDK has been tracking. Braintree has its own customer ID, which means nothing to Amplitude. Pass your application's user ID into a Braintree custom field when the transaction is created, or look it up from your own order table in the webhook handler, and send the event with that as user_id. Sending the Braintree customer ID instead creates a second user with revenue and no history.
Send the purchase when the transaction settles, with price and quantity populated and revenueType set, and use the Braintree transaction ID as insert_id so a retried webhook does not double the revenue. If you bill subscriptions through Braintree's recurring billing, each successful charge is its own revenue event on the same user, which is exactly what retention-by-revenue charts need.
Refunds in Braintree are separate credit transactions that reference the original sale. Send them as a negative revenue event on the same user rather than ignoring them, and confirm in your Amplitude project how negative revenue displays in the charts you use. PayPal and Venmo transactions settle through Braintree like cards, so they belong in the same event; just make sure the user ID was attached before the buyer left for the wallet.
Braintree → Amplitude · what breaks
Why this join usually fails — Braintree → Amplitude
- 01
The user ID and device ID pair never reaches Braintree
Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.
- 02
A gateway that knows nothing about marketing
Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.
- 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.
Braintree → Amplitude · the fix
What working looks like — Braintree → Amplitude
The user ID and device ID pair on every transaction
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
Braintree → Amplitude · architecture
How Braintree and Amplitude actually connect
- 1
Braintree holds the truth
Settled and authorised are different states. Authorisation reserves the funds; settlement is money moving, and reporting on the wrong one produces a persistent gap against your bank.
- 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 Braintree transaction.
- 4
The event source decides reliability
Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
- 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.
Braintree → Amplitude · normal or broken
Working vs. broken, side by side — Braintree → Amplitude
Normal, not a fault
The user ID and device ID pair present on the transaction
Sent from the Braintree transaction settlement 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
Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all.
Sent from the browser
Braintree sees a payment. Whether it can be tied to a click depends entirely on whether your own application attached the identifier when creating the transaction, and most do not.
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
Braintree → Amplitude · diagnose
Diagnostic order — Braintree → Amplitude
- 01
Count transactions carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Open a settled transaction and check its custom fields
If the identifier is not there, your application never attached it and nothing downstream can recover it.
- 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.
Braintree → Amplitude · prove
How it gets proven — Braintree → Amplitude
Source of truth
Braintree's transaction records, filtered to settled, for the same window.
- The user ID and device ID pair confirmed present on a live transaction.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- A PayPal-funded transaction confirmed to report even though the buyer was redirected away.
Braintree → Amplitude · free audit
What we check in the free audit
- Count transactions carrying the user ID and device ID pair
- Follow one real conversion end to end
- Open a settled transaction and check its custom fields
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
Braintree's transaction records, filtered to settled, for the same window.
Free30 minutesNo obligation
Braintree → Amplitude · when not to buy
When you don't need this — Braintree → Amplitude
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the user ID and device ID pair.
- If your platform already reports orders accurately and Braintree is purely the funding rail, work at the order layer instead — it is closer to the customer.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Braintree → Amplitude · what we deliver
What gets built — Braintree → Amplitude
Identifier capture into Braintree
Pass the click identifier into the transaction's custom fields when your server creates the charge. Braintree preserves them and they survive to the webhook and to any later refund.
Event source: the Braintree transaction settlement webhook
Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
Dispatch to Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
Reversals where they exist
Braintree exposes refunds and disputes, both carrying the original custom fields, so reversals are straightforward.
Written guarantee
95%+ tracking accuracy
Measured against Braintree's transaction records, filtered to settled, for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Braintree → Amplitude questions, answered
From Braintree's settled transaction, sent server-side. The browser confirmation page misses wallet redirects and counts authorizations that may never settle.
The server event used a different identifier than the browser SDK. Send your own application user ID, carried in a Braintree custom field or looked up from your order, not the Braintree customer ID.
Almost always because the user ID and device ID pair never reached the Braintree transaction. Braintree is a gateway, so it sees the payment and not the marketing. The identifier has to be attached at the point your application creates the transaction, through custom fields, or it never enters Braintree at all. 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 Braintree transaction settlement webhook. Fire on settlement rather than authorisation, and note that Braintree's PayPal and wallet flows redirect the buyer away — so the confirmation page is not a reliable trigger.
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 Braintree → Amplitude
- Braintree → Google AdsConnecting Braintree to Google Ads
- Braintree → MetaConnecting Braintree to Meta Conversions API
- Braintree → GA4Connecting Braintree to GA4
RELATED GUIDES
Where Braintree → Amplitude fits in the rest of your tracking
- Ecwid → AmplitudeConnecting Ecwid to Amplitude
- OpenCart → AmplitudeConnecting OpenCart to Amplitude
- Shopify POS → AmplitudeConnecting Shopify POS to Amplitude
- Braintree → MatomoConnecting Braintree to Matomo
- Braintree → PostHogConnecting Braintree to PostHog
- Furniture ecommerceConversion tracking for furniture ecommerce, measured after delivery
- Squarespace → AmplitudeConnecting Squarespace Commerce to Amplitude
- BigCommerce → AmplitudeConnecting BigCommerce to Amplitude
Free · 30 min
Get Braintree and Amplitude joined properly
Free30 minutesNo obligation
