Connecting PayPal to AppsFlyer
PayPal holds the settled transaction, and it is frequently the payment method that reports worst. AppsFlyer exists because mobile app attribution is a different problem from web attribution, and on iOS a large share of it is now aggregated and delayed by design rather than by accident. The join between them succeeds or fails on one thing: whether the AppsFlyer device identifier, appsflyer_id reaches the PayPal transaction before the conversion happens, because AppsFlyer can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PayPal in-app purchases to AppsFlyer, sent from the webhook
For in-app PayPal purchases, store the appsflyer_id and customer user ID on the order and put your order reference in PayPal's custom_id. Send af_purchase from your server on PAYMENT.CAPTURE.COMPLETED to cover failed app returns, then stop the SDK sending the same purchase. Send refunds as a separate negative-value event.
AppsFlyer only makes sense for PayPal revenue that happens in your app, for example a shopping or delivery app using PayPal's mobile checkout. The record to send is the completed capture, but AppsFlyer needs the appsflyer_id of the device that started the order, and PayPal knows nothing about that. Store the appsflyer_id (and your customer user ID) on your order when the app creates it, and put your order reference in the PayPal order's custom_id so the webhook can find its way back.
The specific break is the app switch. PayPal checkout on mobile can hand the buyer off to the PayPal app or a browser sheet, and if the return to your app fails, the SDK in-app event never fires even though PayPal captured the money. Sending af_purchase from your server off PAYMENT.CAPTURE.COMPLETED covers those buyers, but then the SDK must stop sending the same purchase, or AppsFlyer and every network it forwards to will count it twice.
Revenue needs a currency and should match what your billing reports, which for PayPal is the gross capture before PayPal's fee unless you decide otherwise. Refunds do not reverse automatically; if you want net revenue in cohorts, send a separate refund event off PAYMENT.CAPTURE.REFUNDED with a negative value, and confirm in your account how AppsFlyer treats negative revenue before relying on it.
PayPal → AppsFlyer · what breaks
Why this join usually fails — PayPal → AppsFlyer
- 01
The AppsFlyer device identifier, appsflyer_id never reaches PayPal
The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.
- 02
The buyer never comes back from PayPal
Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.
- 03
Web conversions sent to a mobile attribution platform
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
- 04
Nothing reconciles afterwards
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
PayPal → AppsFlyer · the fix
What working looks like — PayPal → AppsFlyer
The AppsFlyer device identifier, appsflyer_id on every transaction
Conversions arriving in AppsFlyer
The event is attributed to the install source, forwarded to whichever networks are configured, and appears in the cohort reporting.
Reconciled against the source
PayPal → AppsFlyer · architecture
How PayPal and AppsFlyer actually connect
- 1
PayPal holds the truth
The transaction record carries the amount, currency and a transaction ID. It is also the record that survives when the buyer is redirected out to PayPal and never returns to your confirmation page.
- 2
AppsFlyer needs a click to match
AppsFlyer needs the device identifier and an event name it recognizes, plus the revenue value for in-app purchases. A server event about a user with no linked device cannot be attributed to an install.
- 3
The identifier is the bridge
The AppsFlyer device identifier, appsflyer_id, captured at the visit and carried into the PayPal transaction.
- 4
The event source decides reliability
Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
- 5
Deduplication at the destination
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
PayPal → AppsFlyer · normal or broken
Working vs. broken, side by side — PayPal → AppsFlyer
Normal, not a fault
The AppsFlyer device identifier, appsflyer_id present on the transaction
Sent from the PayPal webhook (or your order record when the IPN lands)
Deduplicated correctly
AppsFlyer deduplicates in-app events by its own event identifier. Sending the same purchase from both the SDK and your server produces two events and double-counts revenue in every dashboard downstream, including the ad networks AppsFlyer forwards to.
Reconciles with the source
Actually broken
The AppsFlyer device identifier, appsflyer_id missing on most records
The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist.
Sent from the browser
Money moves, the confirmation page never loads, and the conversion is invisible. It is the single biggest reason PayPal-heavy stores see paid channels look worse than they are.
Counted twice, or not at all
This is the common error and it produces confident nonsense. A purchase made on your website has no device identifier and no install behind it. AppsFlyer will either discard it or attribute it to nothing, and the revenue disappears somewhere between the two systems without anyone noticing it went.
Nobody has reconciled it
PayPal → AppsFlyer · diagnose
Diagnostic order — PayPal → AppsFlyer
- 01
Count transactions carrying the AppsFlyer device identifier, appsflyer_id
- 02
Follow one real conversion end to end
- 03
Compare completed PayPal transactions against confirmation-page loads
For the same day. The gap between the two is the share of PayPal revenue your browser-side setup is structurally unable to see.
- 04
Check what share of your revenue happens in the app at all
If most purchases are on the web, AppsFlyer is not your conversion destination and the work belongs somewhere else entirely.
- 05
Read the match rate, not the success message
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
PayPal → AppsFlyer · prove
How it gets proven — PayPal → AppsFlyer
Source of truth
PayPal's Activity report, filtered to completed payments for the same window.
- The AppsFlyer device identifier, appsflyer_id confirmed present on a live transaction.
- In-app revenue events reconciled per transaction against your billing system, with the organic share stated rather than assumed away.
- A PayPal order where the buyer never returned to the site, confirmed to have reported anyway.
PayPal → AppsFlyer · free audit
What we check in the free audit
- Count transactions carrying the AppsFlyer device identifier, appsflyer_id
- Follow one real conversion end to end
- Compare completed PayPal transactions against confirmation-page loads
- Check what share of your revenue happens in the app at all
- Read the match rate, not the success message
Checked against
PayPal's Activity report, filtered to completed payments for the same window.
Free30 minutesNo obligation
PayPal → AppsFlyer · when not to buy
When you don't need this — PayPal → AppsFlyer
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the AppsFlyer device identifier, appsflyer_id.
- If PayPal is under a few percent of your orders, fixing the whole flow may not move a decision. Measure the share first.
- If you have no mobile app, this is not a destination for you. If you have one but sell mostly on the web, send web conversions to your ad platforms directly and use AppsFlyer only for install and in-app events.
PayPal → AppsFlyer · what we deliver
What gets built — PayPal → AppsFlyer
Identifier capture into PayPal
Capture the click identifier before checkout and store it against the order in your own database, keyed by the PayPal order ID. PayPal's own custom_id / invoice_id fields can carry your order reference so the two records can always be re-joined server-side.
Event source: the PayPal webhook (or your order record when the IPN lands)
Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
Dispatch to AppsFlyer
The AppsFlyer server-to-server events API, posted from your billing system with the device identifier and revenue.
Reversals where they exist
PAYMENT.CAPTURE.REFUNDED and the dispute webhooks exist and carry the same reference, so reversals can be wired properly.
Written guarantee
95%+ tracking accuracy
Measured against PayPal's Activity report, filtered to completed payments for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
PayPal → AppsFlyer questions, answered
Usually because the buyer never returned to the app after the PayPal hand-off, so the SDK never logged the purchase. Send it server-to-server from the PayPal webhook with the stored appsflyer_id.
No. A website purchase has no app install behind it; send it to your web ad platforms instead.
Almost always because the AppsFlyer device identifier, appsflyer_id never reached the PayPal transaction. The classic PayPal flow bounces the buyer to paypal.com and back. If the buyer abandons the return, your site never runs the thank-you page and never fires anything, but PayPal has already taken the money. This is why PayPal-heavy stores routinely under-report: the sale is real and the tracking event does not exist. Measure coverage before debugging the dispatch.
AppsFlyer assigns its own device ID and matches installs to clicks through referrer data on Android and Apple's frameworks on iOS. There is no durable cross-device identifier. On iOS without ATT consent, attribution falls back to SKAdNetwork, which returns aggregated conversion values on a delay with no user-level detail at all — so a share of your installs will be attributable only in aggregate, permanently.
The PayPal webhook (or your order record when the IPN lands). Listen for PAYMENT.CAPTURE.COMPLETED and send from your server. Firing on the return URL loses every buyer who closes the tab at PayPal, which is a much larger share than most merchants expect.
AppsFlyer shows the event on the raw data export with its attributed media source. Check the raw export, not the aggregate dashboard, and confirm the event carries a device identifier rather than landing as organic.
More on PayPal → AppsFlyer
- PayPal → GA4Connecting PayPal to GA4
- PayPal → Google AdsConnecting PayPal to Google Ads
- PayPal → MetaConnecting PayPal to Meta Conversions API
Using PayPal for bookings? How PayPal bookings get tracked end to end
RELATED GUIDES
Where PayPal → AppsFlyer fits in the rest of your tracking
- Stripe → AppsFlyerConnecting Stripe to AppsFlyer
- Stripe Billing → AppsFlyerConnecting Stripe Billing to AppsFlyer
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Stripe → BranchConnecting Stripe to Branch
- Stripe Billing → BranchConnecting Stripe Billing to Branch
- EcommerceConversion tracking for ecommerce brands, measured against your orders
- PayPal → QuoraConnecting PayPal to Quora Ads
- PayPal → LinkedInConnecting PayPal to LinkedIn Ads
Free · 30 min
Get PayPal and AppsFlyer joined properly
Free30 minutesNo obligation
