Skip to main content
Osano → GA4Integration guide

Connecting Osano to GA4

Osano handles consent alongside vendor risk and data subject requests, which means a deletion request arriving through it has consequences for data you already sent to 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 Osano consent and subject request record 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

Osano to GA4: consent on server events, deletion by client_id

GA4 deletes by client_id or user_id, so store the client_id against each customer before Osano deletion requests arrive. Measurement Protocol events must carry ad_user_data and ad_personalization matching Osano's recorded choice, and declined analytics consent means sending nothing. Choose browser or server as the purchase source, because GA4 deduplicates neither.

GA4 has the clearest deletion path of the four destinations, and it depends on something most businesses do not keep: the client_id. GA4 can delete a user's data by client_id or user_id, through the user explorer or its user deletion API, so when Osano receives a deletion request the client_id must already be stored against that customer. If you only stored the email, you cannot find the person in GA4.

Measurement Protocol events also need to carry consent. Osano can set Google Consent Mode in the browser; on server events, the Measurement Protocol consent object takes ad_user_data and ad_personalization values, which should match what Osano recorded for that customer. Declined analytics consent should mean the server sends nothing for that customer, not a purchase arriving under (direct)/(none) because the browser tag was blocked and the server event was not.

Keep the consent decision, its timestamp and the client_id in the same record, so the order system checks both before sending. Then decide whether purchase comes from the browser or the server. If the browser tag is gated by Osano and the server sends regardless, consented purchases are counted twice and declined ones are sent when they should not be; GA4 deduplicates neither.

Osano → GA4 · what breaks

Why this join usually fails — Osano → GA4

  1. 01

    The GA4 client_id never reaches Osano

    Identifier capture is gated on consent, and a later deletion request means the identifier must be removed from your own records as well.

  2. 02

    Deletion requests that stop at your database

    The data was sent onward. A subject request handled only internally leaves hashed identifiers sitting in several ad platforms, which is the part an audit asks about and the part almost nobody has built.

  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.

Osano → GA4 · the fix

What working looks like — Osano → GA4

  • The GA4 client_id on every consent record

  • 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

Osano → GA4 · architecture

How Osano and GA4 actually connect

  1. 1

    Osano holds the truth

    A subject deletion request is not just a database operation. Conversions already sent to platforms carrying hashed identifiers may need deletion requests raised there too, and most implementations never wire that path.

  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 Osano consent and subject request record.

  4. 4

    The event source decides reliability

    Send consented conversions, and raise platform-side deletion requests when a subject request is received.

  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.

Osano → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the consent record

  • Sent from your order system, gated on consent

  • 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

    Identifier capture is gated on consent, and a later deletion request means the identifier must be removed from your own records as well.

  • Sent from the browser

    The data was sent onward. A subject request handled only internally leaves hashed identifiers sitting in several ad platforms, which is the part an audit asks about and the part almost nobody has built.

  • 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

Osano → GA4 · diagnose

Diagnostic order — Osano → GA4

  1. 01

    Count consent records carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Trace where a single customer's data actually went

    List every destination that received it. That list is what a deletion request has to reach, and producing it is usually the first time anyone has.

  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.

Osano → GA4 · prove

How it gets proven — Osano → GA4

Source of truth

Your order system, with consent state and any deletion request recorded against the customer.

  • The GA4 client_id confirmed present on a live consent record.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Consented conversions reconciled, plus a demonstrated deletion path to every destination that received customer data.

Osano → GA4 · free audit

What we check in the free audit

  • Count consent records carrying the GA4 client_id
  • Follow one real conversion end to end
  • Trace where a single customer's data actually went
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your order system, with consent state and any deletion request recorded against the customer.

Get my free conversion tracking audit

Free30 minutesNo obligation

Osano → GA4 · when not to buy

When you don't need this — Osano → GA4

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the GA4 client_id.
  • If you send no customer identifiers to any platform, the deletion propagation problem does not arise — and that is worth confirming rather than assuming.
  • 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.

Osano → GA4 · what we deliver

What gets built — Osano → GA4

  • Identifier capture into Osano

    Capture after consent, store the identifier where a deletion request can reach it, and wire the downstream deletion path before you need it.

  • Event source: your order system, gated on consent

    Send consented conversions, and raise platform-side deletion requests when a subject request is received.

  • 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

    Deletion requests should propagate to every destination that received the customer's data.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with consent state and any deletion request recorded against the customer.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Osano → GA4 questions, answered

Use GA4's user deletion by client_id or user_id. That only works if the client_id was stored against the customer when it was captured.

Free · 30 min

Get Osano and GA4 joined properly

Free30 minutesNo obligation