Skip to main content
PayPal → BigQueryIntegration guide

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

  1. 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.

  2. 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.

  3. 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.

  4. 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. 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. 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. 3

    The identifier is the bridge

    Whatever join key you decide on, captured at the visit and carried into the PayPal transaction.

  4. 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. 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

  1. 01

    Count transactions carrying whatever join key you decide on

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 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.

  5. 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.

Get my free conversion tracking audit

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.

Get my free conversion tracking audit

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.

Free · 30 min

Get PayPal and BigQuery joined properly

Free30 minutesNo obligation