Skip to main content
AEM → GA4Integration guide

Connecting Adobe Experience Manager to GA4

AEM sits inside the wider Adobe stack, which usually means Adobe Analytics is already in place and answering a different question from your ad platforms. 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 commerce order behind AEM 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

AEM to GA4: purchases from commerce, beside Adobe Analytics

Read GA4's client_id from the _ga cookie on the AEM page and write it to the commerce order at checkout, configuring cross-domain measurement if checkout runs elsewhere. Send purchase from the commerce layer via Measurement Protocol with order number as transaction_id, value, currency and session_id, within 72 hours. Remove any duplicate purchase tag in Adobe Tags.

On an AEM site GA4 usually arrives second, next to an Adobe Analytics setup keyed on the Experience Cloud ID. GA4 knows nothing about that ID. The join GA4 needs is its own client_id, read from the _ga cookie on the AEM page and written onto the commerce order at checkout, so the order system can later send a Measurement Protocol purchase that GA4 ties to a real user. If checkout runs on a separate commerce host, configure cross-domain measurement first or the client_id changes at the hop.

Send purchase from the commerce layer with the order number as transaction_id, the order value and currency, and the session_id if you captured it, because Measurement Protocol does not start a session and an event without one tends to lose its campaign source. Timing matters with enterprise batch jobs: Measurement Protocol only accepts timestamps up to 72 hours in the past, so a weekly order export cannot be replayed into GA4. Refunds go back as a refund event with the same transaction_id.

The failure we see most on AEM: a purchase tag still firing on the confirmation page through Adobe Tags while the server also sends one. Pick one source for purchase. Then expect GA4 and Adobe Analytics to disagree on counts; different identity, consent handling and bot filtering make that normal.

AEM → GA4 · what breaks

Why this join usually fails — AEM → GA4

  1. 01

    The GA4 client_id never reaches AEM

    Dispatcher caching in front of AEM serves stored output, the Adobe data layer has its own conventions that may not carry your identifier, and enterprise release cycles slow every iteration.

  2. 02

    Three systems that will never agree

    Adobe Analytics, your commerce system and your ad platforms each measure differently. The useful work is deciding which answers which question, not forcing them to match.

  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.

AEM → GA4 · the fix

What working looks like — AEM → GA4

  • The GA4 client_id on every order

  • 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

    Adobe Experience Manager's own records are the reference, not either dashboard.

AEM → GA4 · architecture

How AEM and GA4 actually connect — AEM → GA4

  1. 1

    Adobe Experience Manager holds the truth

    In most AEM deployments the commerce engine is separate, and Adobe Analytics reports on its own model with its own attribution. None of those three will agree by default and that is expected rather than broken.

  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 commerce order behind AEM.

  4. 4

    The event source decides reliability

    Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.

  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.

AEM → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the order

    Visible on the record itself in Adobe Experience Manager, not merely captured somewhere on the site.

  • Sent from your commerce system's order event

  • 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

    GA4's count and Adobe Experience Manager's records agree within a few percent over a closed window.

Actually broken

  • The GA4 client_id missing on most records

    Dispatcher caching in front of AEM serves stored output, the Adobe data layer has its own conventions that may not carry your identifier, and enterprise release cycles slow every iteration.

  • Sent from the browser

    Adobe Analytics, your commerce system and your ad platforms each measure differently. The useful work is deciding which answers which question, not forcing them to match.

  • 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

    The dashboard shows a number and no one has compared it to Adobe Experience Manager.

AEM → GA4 · diagnose

Diagnostic order — AEM → GA4

  1. 01

    Count orders carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Map which system answers which question before building

    In an Adobe stack this framing saves more time than any implementation detail.

  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.

AEM → GA4 · prove

How it gets proven — AEM → GA4

Against Adobe Experience Manager's own records, not against either platform's dashboard.

Source of truth

Your commerce system — AEM manages experiences, not transactions.

  • The GA4 client_id confirmed present on a live order.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Conversions confirmed sourced from the commerce system, with the Adobe Analytics difference explained rather than reconciled.

AEM → GA4 · free audit

What we check in the free audit

  • Count orders carrying the GA4 client_id
  • Follow one real conversion end to end
  • Map which system answers which question before building
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your commerce system — AEM manages experiences, not transactions.

Get my free conversion tracking audit

Free30 minutesNo obligation

AEM → GA4 · when not to buy

When you don't need this — AEM → GA4

  • If GA4 already reports conversions that reconcile against Adobe Experience Manager's records within a few percent, this join is working and there is nothing to buy.
  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GA4 client_id.
  • If Adobe Analytics already answers your reporting needs, the remaining work is only feeding ad platforms — a much smaller scope.
  • 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.

AEM → GA4 · what we deliver

What gets built — AEM → GA4

  • Identifier capture into AEM

    Capture the identifier server-side and persist it to the commerce order, and if you use the Adobe client data layer, add the identifier explicitly rather than assuming it propagates.

  • Event source: your commerce system's order event

    Send from the commerce layer, server-side. Dispatcher caching makes any per-request template logic unreliable.

  • 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

    Handled at the commerce layer.

Written guarantee

95%+ tracking accuracy

Measured against Your commerce system — AEM manages experiences, not transactions.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

AEM → GA4 questions, answered

Usually not. Adobe Analytics keeps answering on-site experience questions, while GA4 earns its place by feeding Google Ads audiences and conversions, so run both and assign each a job.

Free · 30 min

Get AEM and GA4 joined properly

Free30 minutesNo obligation