Skip to main content
mParticle → GA4Integration guide

Connecting mParticle to GA4

mParticle is built around mobile identity resolution, which is the hard case — an app install severs the browser cookie, and stitching the two sides is the entire value proposition. 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 mParticle user event 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

mParticle to GA4: web client_id vs app_instance_id

mParticle web events sent to GA4 need the _ga client_id, while app events need app_instance_id and firebase_app_id. Send purchases from settled transactions with transaction_id, value, currency and platform, using mParticle's resolved customer ID as user_id on both sides. Choose one connection per event type, send refunds with the same transaction_id, and forward at least daily, given the 72-hour limit.

GA4 splits web and app at the protocol level, and mParticle sits right on that split. Web events sent through Measurement Protocol need the client_id from the _ga cookie; app events for a Firebase stream need the app_instance_id and firebase_app_id instead, and a purchase sent with the wrong one lands on a user GA4 has never seen. Check how mParticle's GA4 integration maps these for each input before turning it on.

The web-to-app journey is where GA4 loses the thread. A user arrives from a paid search ad on the web, installs, and buys in the app; GA4 treats the app user as a different person unless you send a user_id on both sides and report with user_id in the reporting identity. mParticle's resolved customer ID is the natural user_id, provided your identity priority does not merge two people into one, because GA4 inherits that mistake.

Send purchase from settled transactions with transaction_id, value, currency and a platform parameter. If mParticle forwards a purchase client-side from the web SDK and the server feed forwards the same one, GA4 counts both; choose one connection per event type in mParticle. Refunds go as refund events with the same transaction_id. Measurement Protocol cannot backdate beyond 72 hours, so do not route GA4 through a batch that runs less often than daily.

mParticle → GA4 · what breaks

Why this join usually fails — mParticle → GA4

  1. 01

    The GA4 client_id never reaches mParticle

    The web-to-app transition. A user clicks an ad in a browser, installs the app and converts inside it, and nothing carries across without deliberate deferred-deep-link handling.

  2. 02

    Identity merge rules quietly setting your conversion count

    Merge too aggressively and two people become one customer. Merge too conservatively and one customer becomes three conversions. Neither failure announces itself and both change the number your bidding runs on.

  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.

mParticle → GA4 · the fix

What working looks like — mParticle → GA4

  • The GA4 client_id on every event

  • 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

mParticle → GA4 · architecture

How mParticle and GA4 actually connect

  1. 1

    mParticle holds the truth

    Identity resolution decides which events belong to which person, and the merge rules you configure directly determine your conversion counts. Get them wrong and you either duplicate people or collapse strangers together.

  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 mParticle user event.

  4. 4

    The event source decides reliability

    Send settled transactions from the resolved profile, with platform noted, so web and app performance stay distinguishable.

  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.

mParticle → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the event

  • Sent from the mParticle server-side feed

  • 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 web-to-app transition. A user clicks an ad in a browser, installs the app and converts inside it, and nothing carries across without deliberate deferred-deep-link handling.

  • Sent from the browser

    Merge too aggressively and two people become one customer. Merge too conservatively and one customer becomes three conversions. Neither failure announces itself and both change the number your bidding runs on.

  • 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

mParticle → GA4 · diagnose

Diagnostic order — mParticle → GA4

  1. 01

    Count events carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Audit the identity priority order

    Read the configured hierarchy and test it against known duplicate accounts before trusting any downstream count.

  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.

mParticle → GA4 · prove

How it gets proven — mParticle → GA4

Source of truth

The resolved user profile, joined to your billing or order system.

  • The GA4 client_id confirmed present on a live event.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Distinct paying customers in billing reconciled against resolved profiles reporting a purchase.

mParticle → GA4 · free audit

What we check in the free audit

  • Count events carrying the GA4 client_id
  • Follow one real conversion end to end
  • Audit the identity priority order
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

The resolved user profile, joined to your billing or order system.

Get my free conversion tracking audit

Free30 minutesNo obligation

mParticle → GA4 · when not to buy

When you don't need this — mParticle → GA4

  • Measure identifier coverage yourself first — pull your last hundred events and count how many carry the GA4 client_id.
  • Web-only businesses rarely need this. The mobile identity problem is what justifies the complexity, and without an app you are paying for a solution to a problem you do not have.
  • 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.

mParticle → GA4 · what we deliver

What gets built — mParticle → GA4

  • Identifier capture into mParticle

    Capture the identifier on the web, pass it through the install attribution flow, and set it as a user attribute on the app-side profile so the eventual purchase can still name its origin.

  • Event source: the mParticle server-side feed

    Send settled transactions from the resolved profile, with platform noted, so web and app performance stay distinguishable.

  • 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 subscription cancellations reverse against the same profile.

Written guarantee

95%+ tracking accuracy

Measured against The resolved user profile, joined to your billing or order system.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

mParticle → GA4 questions, answered

App events need the app_instance_id for the Firebase stream, not a web client_id, and the web session before the install is a different GA4 user unless user_id joins them.

Free · 30 min

Get mParticle and GA4 joined properly

Free30 minutesNo obligation