Connecting PayPal to BigQuery
PayPal holds the settled transaction, and it is frequently the payment method that reports worst. BigQuery has no attribution model, no deduplication rules and no opinion about your data — which makes it the only destination on this site where every number is exactly as good as the query that produced it. The join between them succeeds or fails on one thing: whether whatever join key you decide on reaches the PayPal transaction before the conversion happens, because BigQuery can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PayPal in BigQuery: join transactions to orders by custom_id
Load completed PayPal transactions from the webhook or activity reports into BigQuery, join them to your order table on custom_id or invoice_id, and compare against confirmation-page loads to measure missed revenue. Store gross, fee, net and currency as typed columns, deduplicate on capture ID, and keep refunds and disputes as linked rows.
BigQuery is where the PayPal reporting gap becomes a number. Load completed PayPal transactions from the webhook or the activity reports, and load your own order table with the click identifiers captured before the redirect. Join them on the reference you put in custom_id or invoice_id. Then add confirmation-page loads from your analytics export. The share of captured transactions with no confirmation load is the PayPal revenue your browser tags can't see, broken down by day and campaign.
Be explicit about money. PayPal reports gross amount, fee and net separately, and buyers can pay in a different currency from your listing. Store gross, fee, net and currency as typed columns and decide which one counts as revenue before anyone builds a dashboard. A string-typed amount in one load and a numeric one in the next produces sums that look plausible and aren't.
Webhooks are at-least-once, so the same capture ID will arrive more than once. Deduplicate on capture ID in a view. Keep refunds and disputes as separate rows linked by that ID, because a dispute can sit open for weeks before it resolves.
PayPal → BigQuery · what breaks
Why this join usually fails — PayPal → BigQuery
- 01
Whatever join key you decide on 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
The warehouse quietly disagreeing with every platform
This is not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
- 04
Nothing reconciles afterwards
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
PayPal → BigQuery · the fix
What working looks like — PayPal → BigQuery
Whatever join key you decide on on every transaction
Conversions arriving in BigQuery
The row lands in a table you own, joinable to every other table you own, with no window and no expiry.
Reconciled against the source
PayPal → BigQuery · architecture
How PayPal and BigQuery 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
BigQuery needs a click to match
BigQuery needs a schema and consistent types. The failure mode is not rejection, it is silent divergence: a column that arrives as a string in one load and an integer in the next, or a timestamp in the wrong zone, which produces answers that look plausible and are not.
- 3
The identifier is the bridge
Whatever join key you decide on, 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
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
PayPal → BigQuery · normal or broken
Working vs. broken, side by side — PayPal → BigQuery
Normal, not a fault
Whatever join key you decide on present on the transaction
Sent from the PayPal webhook (or your order record when the IPN lands)
Deduplicated correctly
Nothing deduplicates for you. Streaming inserts are at-least-once, so a retried load can create duplicate rows, and the only protection is a deduplication step you write and actually run.
Reconciles with the source
Actually broken
Whatever join key you decide on 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 not a bug — it is the point. Your warehouse counts orders; Google counts click-attributed conversions in its window; Meta counts differently again. When the four numbers differ, the warehouse is usually right about revenue and wrong about attribution, and knowing which question you are answering is the whole skill.
Nobody has reconciled it
PayPal → BigQuery · diagnose
Diagnostic order — PayPal → BigQuery
- 01
Count transactions carrying whatever join key you decide on
- 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
Reconcile warehouse order counts against each platform for one closed window
The gaps localize the problem: a gap against all platforms is a collection issue, a gap against one is that platform's window or matching.
- 05
Read the match rate, not the success message
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
PayPal → BigQuery · prove
How it gets proven — PayPal → BigQuery
Source of truth
PayPal's Activity report, filtered to completed payments for the same window.
- Whatever join key you decide on confirmed present on a live transaction.
- Warehouse order counts and revenue reconciled against the source system for a fully closed window, with duplicates checked on the join key.
- A PayPal order where the buyer never returned to the site, confirmed to have reported anyway.
PayPal → BigQuery · free audit
What we check in the free audit
- Count transactions carrying whatever join key you decide on
- Follow one real conversion end to end
- Compare completed PayPal transactions against confirmation-page loads
- Reconcile warehouse order counts against each platform for one closed window
- 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 → BigQuery · when not to buy
When you don't need this — PayPal → BigQuery
- Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry whatever join key you decide on.
- 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 one store and one ad platform, a warehouse is infrastructure you will maintain for a reconciliation you could do in a spreadsheet.
PayPal → BigQuery · what we deliver
What gets built — PayPal → BigQuery
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 BigQuery
Streaming inserts or scheduled batch loads from your order system, with the raw event retained alongside whatever you derive from it.
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 → BigQuery questions, answered
Put your order reference in PayPal's custom_id or invoice_id when creating the order, then join the PayPal transaction table to your order table on that value.
Compare completed PayPal captures with confirmation-page loads for the same orders in BigQuery. The unmatched captures are buyers who never returned from PayPal.
Almost always because whatever join key you decide on 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.
There is no vendor identifier here. You choose the key — order ID, user ID, click identifier, hashed email — and you live with the consequences. That is the whole appeal and the whole risk: nothing is standardised for you and nothing is silently wrong in a vendor's favour either.
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.
BigQuery will not tell you anything is wrong. Verify by querying the table directly against your source system's own totals, and check for duplicate rows on the join key before trusting any aggregate.
More on PayPal → BigQuery
- 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 → BigQuery fits in the rest of your tracking
- Stripe → BigQueryConnecting Stripe to BigQuery
- Stripe Billing → BigQueryConnecting Stripe Billing to BigQuery
- PayPal → SnowflakeConnecting PayPal to Snowflake
- PayPal → SegmentConnecting PayPal to Segment
- SubscriptionsConversion tracking for subscription businesses, across the whole lifecycle
- Stripe Billing → SnowflakeConnecting Stripe Billing to Snowflake
- Stripe → SegmentConnecting Stripe to Segment
- Stripe Billing → SegmentConnecting Stripe Billing to Segment
Free · 30 min
Get PayPal and BigQuery joined properly
Free30 minutesNo obligation
