Skip to main content
Worldpay → GA4Integration guide

Connecting Worldpay to GA4

Worldpay spans online and in-person payments for large merchants, which means one provider covers two channels with completely different attribution potential. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the Worldpay transaction before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Worldpay in GA4: one purchase per order across the redirect

Send GA4 purchase from your server on Worldpay's payment notification through Measurement Protocol, with client_id and session_id stored against the order code before redirect and transaction_id set to that code. Don't also tag the confirmation page, add Worldpay to unwanted referrals, send within 72 hours, and keep card-present revenue out.

GA4 with Worldpay usually breaks on the return from the hosted payment page. The shopper leaves for Worldpay's domain, and when they come back to the confirmation page GA4 starts a new session credited to a Worldpay referral, unless that domain is on the unwanted referrals list in your data stream. Shoppers who never come back produce no purchase event at all, which is why a confirmation-page tag undercounts.

Send purchase from the server instead, on Worldpay's payment notification, through Measurement Protocol, with the client_id and session_id from the _ga cookies stored against your order code before the redirect, and transaction_id set to that order code. Do not also send purchase from the confirmation page; GA4 does not deduplicate, and a returning shopper would be counted twice. Measurement Protocol accepts timestamps up to 72 hours old, so send on authorisation or capture rather than at settlement.

For multi-country merchants, send the transaction currency rather than the property currency, after converting Worldpay's minor-unit amount to a decimal; GA4 handles the currency conversion. Keep card-present Worldpay revenue out of the property: it has no session, and adding it makes ecommerce conversion rate meaningless. Refunds and chargebacks go back as refund events on the same transaction_id.

Worldpay → GA4 · what breaks

Why this join usually fails — Worldpay → GA4

  1. 01

    The GA4 client_id never reaches Worldpay

    The hosted payment pages redirect the shopper off-site, and card-present terminals have no marketing context at all. Only the ecommerce channel is joinable, and only if the identifier was attached at payment creation.

  2. 02

    Two channels reported as one number

    Card-present revenue cannot be attributed to a click and will make ecommerce performance look far worse than it is if the two are summed.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Worldpay → GA4 · the fix

What working looks like — Worldpay → GA4

  • The GA4 client_id on every transaction

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

Worldpay → GA4 · architecture

How Worldpay and GA4 actually connect

  1. 1

    Worldpay holds the truth

    Card-present transactions have no click and no session by construction. Splitting the channels before comparing anything is the first requirement of an honest number here.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Worldpay transaction.

  4. 4

    The event source decides reliability

    Fire on settlement from the notification rather than a return URL, since hosted pages mean the shopper may not come back.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

Worldpay → GA4 · normal or broken

Working vs. broken, side by side — Worldpay → GA4

Normal, not a fault

  • The GA4 client_id present on the transaction

  • Sent from the Worldpay payment notification

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    The hosted payment pages redirect the shopper off-site, and card-present terminals have no marketing context at all. Only the ecommerce channel is joinable, and only if the identifier was attached at payment creation.

  • Sent from the browser

    Card-present revenue cannot be attributed to a click and will make ecommerce performance look far worse than it is if the two are summed.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

Worldpay → GA4 · diagnose

Diagnostic order — Worldpay → GA4

  1. 01

    Count transactions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split settled volume by channel before anything else

    Every subsequent number depends on that split, and it is usually the first thing nobody has done.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

Worldpay → GA4 · prove

How it gets proven — Worldpay → GA4

Source of truth

Worldpay's settled transactions by date, split by channel — ecommerce and card-present are different questions.

  • The GA4 client_id confirmed present on a live transaction.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Ecommerce transactions reconciled separately from card-present, with the split stated.

Worldpay → GA4 · free audit

What we check in the free audit

  • Count transactions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Split settled volume by channel before anything else
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Worldpay's settled transactions by date, split by channel — ecommerce and card-present are different questions.

Get my free conversion tracking audit

Free30 minutesNo obligation

Worldpay → GA4 · when not to buy

When you don't need this — Worldpay → GA4

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the GA4 client_id.
  • If nearly all your Worldpay volume is card-present, there is very little for click attribution to reach.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

Worldpay → GA4 · what we deliver

What gets built — Worldpay → GA4

  • Identifier capture into Worldpay

    Pass the identifier into the transaction's custom or merchant reference fields on the ecommerce channel, and treat card-present volume as a separate, unattributable line.

  • Event source: the Worldpay payment notification

    Fire on settlement from the notification rather than a return URL, since hosted pages mean the shopper may not come back.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Refunds and chargebacks are recorded against the original transaction.

Written guarantee

95%+ tracking accuracy

Measured against Worldpay's settled transactions by date, split by channel — ecommerce and card-present are different questions.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Worldpay → GA4 questions, answered

The return from the hosted payment page starts a new session. Add the Worldpay payment domain to the unwanted referrals list in your data stream.

Free · 30 min

Get Worldpay and GA4 joined properly

Free30 minutesNo obligation