Skip to main content
Adyen → PostHogIntegration guide

Connecting Adyen to PostHog

Adyen is enterprise payments across many countries and methods at once, which makes its strength — breadth of local payment methods — the thing that complicates measurement. PostHog can be self-hosted, which changes the calculus entirely: the data stays on infrastructure you control, and so does the responsibility for everything that goes wrong with it. The join between them succeeds or fails on one thing: whether the distinct_id reaches the Adyen payment before the conversion happens, because PostHog can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Adyen to PostHog: checkout drop-off by payment method

Send the payment result to PostHog from your server when Adyen's notification arrives, with distinct_id set to your user ID, which should also be the Adyen shopper reference, and payment method and outcome as properties. Identify users before payment so browser and server events join, and use an event UUID from PSP reference plus event code.

PostHog's value for an Adyen merchant is checkout analysis that a payment dashboard cannot do: which payment methods lose people between the Pay tap and a confirmed payment, joined to what those people did in your product. Send the payment result from your server when Adyen's notification arrives, with the distinct_id set to your user ID, which should also be the Adyen shopper reference, and include the payment method and the success or refusal as properties.

Then funnel it. Pay tapped in the browser, then authorization succeeded on the server, broken down by payment method, shows exactly where redirects to PayPal, Klarna or banking apps lose shoppers, and whether 3D Secure challenges are costing you card payments. That comparison only works if the browser event and the server event share the same person, so identify the user before they reach the payment step.

Use a stable event UUID derived from the PSP reference and event code. Adyen resends notifications it thinks failed, and without a UUID every retry is another payment in your charts. Keep refusal reasons in a property for analysis, but do not record card details, issuer data or anything beyond the method and the outcome.

Adyen → PostHog · what breaks

Why this join usually fails — Adyen → PostHog

  1. 01

    The distinct_id never reaches Adyen

    Many of Adyen's local payment methods redirect the shopper away — iDEAL, Bancontact, Klarna, various wallets — and a share never return to your confirmation page. Anything page-based loses exactly the payment methods that dominate in some markets.

  2. 02

    Local payment methods that redirect away

    In several European markets the dominant method sends the shopper to a bank or wallet and a real share never come back. Page-based tracking loses them entirely and the loss is concentrated in specific countries.

  3. 03

    Self-hosting the analytics and the outage together

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  4. 04

    Nothing reconciles afterwards

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Adyen → PostHog · the fix

What working looks like — Adyen → PostHog

  • The distinct_id on every payment

  • Conversions arriving in PostHog

    The event lands on the person profile and becomes available in insights, funnels and session replay.

  • Reconciled against the source

Adyen → PostHog · architecture

How Adyen and PostHog actually connect

  1. 1

    Adyen holds the truth

    Adyen separates authorisation, capture and settlement, and runs multiple merchant accounts across regions. Which account and which state a number came from has to be stated or the figures will never reconcile.

  2. 2

    PostHog needs a click to match

    PostHog needs a distinct_id, an event name and its properties. Self-hosted instances additionally need the ingestion endpoint reachable and the project API key correct, which is a class of failure hosted tools do not have.

  3. 3

    The identifier is the bridge

    The distinct_id, captured at the visit and carried into the Adyen payment.

  4. 4

    The event source decides reliability

    Fire on AUTHORISATION success with capture confirmed, from your server. Redirect-based methods mean the confirmation page is not a reliable trigger in this stack.

  5. 5

    Deduplication at the destination

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

Adyen → PostHog · normal or broken

Working vs. broken, side by side — Adyen → PostHog

Normal, not a fault

  • The distinct_id present on the payment

  • Sent from the Adyen standard notification webhook

  • Deduplicated correctly

    PostHog deduplicates on the event UUID where supplied. Without one, a retried batch duplicates, and on a self-hosted instance there is no vendor support desk to notice it for you.

  • Reconciles with the source

Actually broken

  • The distinct_id missing on most records

    Many of Adyen's local payment methods redirect the shopper away — iDEAL, Bancontact, Klarna, various wallets — and a share never return to your confirmation page. Anything page-based loses exactly the payment methods that dominate in some markets.

  • Sent from the browser

    In several European markets the dominant method sends the shopper to a bank or wallet and a real share never come back. Page-based tracking loses them entirely and the loss is concentrated in specific countries.

  • Counted twice, or not at all

    The advantage of owning the pipeline is that nothing blocks it. The cost is that when the ingestion instance fills its disk on a Saturday, the events are gone and nobody is paged. Hosted tools fail differently and more visibly.

  • Nobody has reconciled it

Adyen → PostHog · diagnose

Diagnostic order — Adyen → PostHog

  1. 01

    Count payments carrying the distinct_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare authorised payments against confirmation-page loads by payment method

    The gap will be concentrated in the redirect methods, which tells you both the size of the problem and where it is.

  4. 04

    Check ingestion health and disk before debugging any missing event

    On self-hosted instances the answer is infrastructure far more often than it is instrumentation.

  5. 05

    Read the match rate, not the success message

    PostHog shows events in the activity view within moments. On a self-hosted instance, check the ingestion lag as well — events that are queued are not events that are lost, and the two need different responses.

Adyen → PostHog · prove

How it gets proven — Adyen → PostHog

Source of truth

Adyen's settled payments by settlement date, per merchant account and currency.

  • The distinct_id confirmed present on a live payment.
  • Purchase events reconciled per transaction against your billing system, with ingestion lag checked over the same window.
  • A payment made with a redirect method, abandoned at the return step, confirmed to still report.

Adyen → PostHog · free audit

What we check in the free audit

  • Count payments carrying the distinct_id
  • Follow one real conversion end to end
  • Compare authorised payments against confirmation-page loads by payment method
  • Check ingestion health and disk before debugging any missing event
  • Read the match rate, not the success message

Checked against

Adyen's settled payments by settlement date, per merchant account and currency.

Get my free conversion tracking audit

Free30 minutesNo obligation

Adyen → PostHog · when not to buy

When you don't need this — Adyen → PostHog

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the distinct_id.
  • If you sell in one market on cards only, most of Adyen's complexity does not apply and a simpler approach is fine.
  • If you have no reason to keep the data on your own infrastructure and no team to run it, the hosted product removes the only real downside of this one.

Adyen → PostHog · what we deliver

What gets built — Adyen → PostHog

  • Identifier capture into Adyen

    Pass the click identifier in the payment request's metadata or shopper reference when your server creates the payment session, so it survives the redirect and reaches the webhook.

  • Event source: the Adyen standard notification webhook

    Fire on AUTHORISATION success with capture confirmed, from your server. Redirect-based methods mean the confirmation page is not a reliable trigger in this stack.

  • Dispatch to PostHog

    The PostHog capture API, posted server-side from your backend to your own instance or to PostHog Cloud.

  • Reversals where they exist

    Refunds, cancellations and chargebacks all arrive as notifications carrying the original reference.

Written guarantee

95%+ tracking accuracy

Measured against Adyen's settled payments by settlement date, per merchant account and currency.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Adyen → PostHog questions, answered

Send the payment result server-side with payment method and outcome as properties, under the same distinct_id as the browser events, then build a funnel from Pay tapped to authorization by method.

Free · 30 min

Get Adyen and PostHog joined properly

Free30 minutesNo obligation