Connecting Razorpay to Amplitude
Razorpay is Indian payments, where UPI dominates and the flow moves through a separate app on the customer's phone. 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 Razorpay payment 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
Razorpay to Amplitude: revenue in rupees, on the right user
Put the Amplitude device ID and user ID into the Razorpay order notes at creation, then send the revenue event from the payment.captured webhook so UPI buyers who never return still join their session. Send price in rupees, not paise, with explicit quantity and the Razorpay payment ID as insert_id. Send order-created and payment.failed events to compare methods.
Amplitude needs the purchase to land on the user who browsed, and with UPI that user's browser is often gone by the time money moves. Put the Amplitude device ID and user ID into the Razorpay order's notes when your server creates the order, then send the revenue event from the payment.captured webhook using those IDs. The event joins the session that started checkout even though the customer finished in a banking app and never came back.
Get the revenue fields right for this source. Razorpay amounts are integers in paise, so a 1,499 rupee order arrives as 149900. Send price as the rupee amount and set quantity explicitly, or one unconverted payment multiplies a cohort's revenue by a hundred. Set insert_id to the Razorpay payment ID so webhook retries, which Razorpay sends when your endpoint fails, do not double count. If you sell in more than one currency, check how your Amplitude project handles currency before mixing INR with anything else.
Use the funnel for the question this market raises. Send an order-created event from your backend and send payment.failed as its own event with the method property. Comparing created to captured by method shows how many UPI attempts never complete, a drop-off a browser-only funnel misreads as cart abandonment.
Razorpay → Amplitude · what breaks
Why this join usually fails — Razorpay → Amplitude
- 01
The user ID and device ID pair never reaches Razorpay
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
- 02
UPI app switching ends the browser session
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
- 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.
Razorpay → Amplitude · the fix
What working looks like — Razorpay → 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
Razorpay → Amplitude · architecture
How Razorpay and Amplitude actually connect
- 1
Razorpay holds the truth
Razorpay separates authorised and captured. Auto-capture is common but not universal, and reporting on authorised inflates the figure by whatever fails to capture.
- 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 Razorpay payment.
- 4
The event source decides reliability
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
- 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.
Razorpay → Amplitude · normal or broken
Working vs. broken, side by side — Razorpay → Amplitude
Normal, not a fault
The user ID and device ID pair present on the payment
Sent from the Razorpay payment.captured 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
UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything.
Sent from the browser
The customer leaves the browser for a banking app to approve, and on many devices does not return. Payment succeeds, page never fires — and UPI is the majority method in this market.
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
Razorpay → Amplitude · diagnose
Diagnostic order — Razorpay → Amplitude
- 01
Count payments carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Compare captured payments against confirmation-page loads on mobile
Split by payment method. The UPI gap will be much larger than the card gap.
- 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.
Razorpay → Amplitude · prove
How it gets proven — Razorpay → Amplitude
Source of truth
Razorpay's captured payments by date, net of refunds.
- 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 UPI payment approved in the banking app without returning to the site, confirmed to report.
Razorpay → 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
- Compare captured payments against confirmation-page loads on mobile
- Check a purchase event for the price and quantity fields specifically
- Read the match rate, not the success message
Checked against
Razorpay's captured payments by date, net of refunds.
Free30 minutesNo obligation
Razorpay → Amplitude · when not to buy
When you don't need this — Razorpay → Amplitude
- Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the user ID and device ID pair.
- If your Razorpay volume is card-only, the app-switch problem largely disappears.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
Razorpay → Amplitude · what we deliver
What gets built — Razorpay → Amplitude
Identifier capture into Razorpay
Pass the click identifier into the Razorpay order's notes when your server creates the order. Notes survive to the payment and to the webhook regardless of what the browser did.
Event source: the Razorpay payment.captured webhook
Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
Dispatch to Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
Reversals where they exist
Refunds are exposed and carry the original notes.
Written guarantee
95%+ tracking accuracy
Measured against Razorpay's captured payments by date, net of refunds.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Razorpay → Amplitude questions, answered
Store the Amplitude IDs in the Razorpay order notes and send a revenue event from the payment.captured webhook, with price in rupees.
Razorpay amounts are in paise. Divide by 100 before setting price.
Almost always because the user ID and device ID pair never reached the Razorpay payment. UPI sends the customer into a banking app to approve, and on mobile that app switch frequently ends the browser session. The payment completes and the browser that started it may never come back to fire anything. 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 Razorpay payment.captured webhook. Fire on captured. The app-switch behaviour of UPI makes any browser-based trigger unreliable in a way that is much more pronounced here than on card markets.
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 Razorpay → Amplitude
- Razorpay → Google AdsConnecting Razorpay to Google Ads
- Razorpay → MetaConnecting Razorpay to Meta Conversions API
- Razorpay → GA4Connecting Razorpay to GA4
RELATED GUIDES
Where Razorpay → Amplitude fits in the rest of your tracking
- Sezzle → AmplitudeConnecting Sezzle to Amplitude
- Zuora → AmplitudeConnecting Zuora to Amplitude
- Splitit → AmplitudeConnecting Splitit to Amplitude
- Razorpay → MatomoConnecting Razorpay to Matomo
- Razorpay → GA4Connecting Razorpay to GA4
- Financial servicesConversion tracking for financial services, built for the compliance review
- Authorize.net → AmplitudeConnecting Authorize.net to Amplitude
- Maxio → AmplitudeConnecting Maxio to Amplitude
Free · 30 min
Get Razorpay and Amplitude joined properly
Free30 minutesNo obligation
