Skip to main content
Adyen → SegmentIntegration guide

Connecting Adyen to Segment

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. Segment is a customer data platform rather than an ad network, so sending to it is not about matching a conversion — it is about putting one clean event where every other destination can read it. The join between them succeeds or fails on one thing: whether the userId and anonymousId reaches the Adyen payment before the conversion happens, because Segment can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Adyen to Segment: Order Completed from the notification

Map Adyen's AUTHORISATION notification to a Segment Order Completed call with merchantReference as order_id, decimal revenue and currency, and REFUND or CHARGEBACK to Order Refunded. Write the anonymousId and userId into payment metadata at session creation, pass click identifiers and consent as properties, and set messageId from pspReference and eventCode.

Segment becomes the one place Adyen's payment states are translated into the shape every other tool expects. Map the AUTHORISATION notification to an Order Completed track call with merchantReference as order_id, the converted decimal amount as revenue, and Adyen's currency as currency. Map REFUND and CHARGEBACK to Order Refunded with the same order_id. Destinations that follow Segment's ecommerce spec then inherit refunds without each needing its own Adyen logic.

Identity is the hard part. Your server must know the anonymousId the browser had and, for logged-in shoppers, the userId, so write both into the Adyen payment metadata at session creation. Without anonymousId, a guest who pays by a redirect method arrives in Segment as an event with no browser history, and every downstream destination treats them as a stranger. Pass click identifiers and consent state as properties on the same call; a destination that must not receive EU payments without consent can only be filtered if the consent value travels with the event.

Set messageId from pspReference and eventCode. Adyen retries notifications until it gets an accepted response, and Segment's dedupe window is the only thing standing between one retry and a duplicate purchase at Google, Meta and the warehouse simultaneously. If Segment would feed only one ad platform from this store, skip it and send from the Adyen handler directly.

Adyen → Segment · what breaks

Why this join usually fails — Adyen → Segment

  1. 01

    The userId and anonymousId 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

    One bad event multiplied across every destination

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  4. 04

    Nothing reconciles afterwards

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Adyen → Segment · the fix

What working looks like — Adyen → Segment

  • The userId and anonymousId on every payment

  • Conversions arriving in Segment

    Events land in Segment and forward to every connected destination, warehouse included, on one shared definition.

  • Reconciled against the source

Adyen → Segment · architecture

How Adyen and Segment 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

    Segment needs a click to match

    Segment needs a consistent identity model — the same userId everywhere, an alias when an anonymous visitor becomes known, and event names that follow one spec. Feeding it inconsistent identities pushes the mess to every connected destination at once.

  3. 3

    The identifier is the bridge

    The userId and anonymousId, 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

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

Adyen → Segment · normal or broken

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

Normal, not a fault

  • The userId and anonymousId present on the payment

  • Sent from the Adyen standard notification webhook

  • Deduplicated correctly

    Segment deduplicates on messageId within a window. Because it fans out to many destinations, a duplicate here becomes a duplicate everywhere, which makes idempotent messageIds more important than in any single-destination integration.

  • Reconciles with the source

Actually broken

  • The userId and anonymousId 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

    Segment's value is fan-out, which is also its risk. An inconsistent identity or a duplicated event does not break one report — it breaks every connected tool simultaneously, and tracing it back is harder than debugging a direct integration.

  • Nobody has reconciled it

Adyen → Segment · diagnose

Diagnostic order — Adyen → Segment

  1. 01

    Count payments carrying the userId and anonymousId

  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 identity resolution before checking anything downstream

    If anonymousId is never aliased to userId, every destination sees two people where there is one, and no downstream fix helps.

  5. 05

    Read the match rate, not the success message

    Segment's debugger shows events arriving and which destinations accepted them. Arriving is not the test — check a destination you care about and confirm the event landed there with the identity intact, then reconcile against your own records.

Adyen → Segment · prove

How it gets proven — Adyen → Segment

Source of truth

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

  • The userId and anonymousId confirmed present on a live payment.
  • An anonymous session confirmed aliased to a known user, with the event visible in at least one downstream destination.
  • A payment made with a redirect method, abandoned at the return step, confirmed to still report.

Adyen → Segment · free audit

What we check in the free audit

  • Count payments carrying the userId and anonymousId
  • Follow one real conversion end to end
  • Compare authorised payments against confirmation-page loads by payment method
  • Check identity resolution before checking anything downstream
  • 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 → Segment · when not to buy

When you don't need this — Adyen → Segment

  • Measure identifier coverage yourself first — pull your last hundred payments and count how many carry the userId and anonymousId.
  • 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 send to one or two destinations, Segment is infrastructure you do not need — direct integrations are simpler and cheaper. It earns its place at genuine fan-out.

Adyen → Segment · what we deliver

What gets built — Adyen → Segment

  • 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 Segment

    Server-side track and identify calls with a stable messageId, consistent userId, and the click identifier carried as a trait or property.

  • 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 → Segment questions, answered

Check Segment's catalog for your workspace. If nothing fits, a webhook handler that receives Adyen notifications and calls Segment's server-side library is the usual route.

Free · 30 min

Get Adyen and Segment joined properly

Free30 minutesNo obligation