Skip to main content
Termly → GA4Integration guide

Connecting Termly to GA4

Termly bundles consent management with policy generation, which means small businesses frequently end up with a privacy policy describing data practices they do not actually have. 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 Termly consent 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

Termly and GA4: denied analytics_storage means no client_id

When Termly leaves GA4's analytics_storage denied, there's no _ga client_id, so send Measurement Protocol purchases only for orders whose stored consent shows analytics was accepted. For declined visitors, rely on Consent Mode cookieless pings, which only work if Termly keeps the Google tag loaded in denied mode. Report the consent rate beside conversions.

With Termly in front of GA4, the decision that matters is analytics_storage. When it is denied, GA4 sets no _ga cookie, so there is no client_id to store on an order. Any Measurement Protocol purchase you send later for that visitor either has nothing to join or needs an invented ID that GA4 will file under (direct). Only send server-side purchases for orders whose stored Termly consent shows analytics was accepted.

For declined visitors, rely on Consent Mode, not workarounds. If Termly sends the Consent Mode signals and keeps the Google tag loaded in denied mode, GA4 receives cookieless pings and can model some of the missing behavior once your property meets the volume thresholds. Check whether Termly's script blocking removes the GA4 tag entirely instead. If it does, there are no pings, no modeling, and a sharp drop in recorded conversions on the day the banner went live.

Report the consent rate next to GA4 conversion counts. A conversion drop that matches a banner change is a measurement change, not a demand change. Keep a note in GA4 annotations or your reporting so nobody cuts a working campaign because of it.

Termly → GA4 · what breaks

Why this join usually fails — Termly → GA4

  1. 01

    The GA4 client_id never reaches Termly

    Default blocking configurations stop capture before consent on the first page view.

  2. 02

    A generated policy that does not match reality

    Generated policies are templates. Adding a new conversion destination without updating the policy means you are disclosing data to a partner your own published statement does not mention, which is a real exposure that no tracking configuration fixes.

  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.

Termly → GA4 · the fix

What working looks like — Termly → 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

Termly → GA4 · architecture

How Termly and GA4 actually connect

  1. 1

    Termly holds the truth

    The published policy is a statement about what you do. If it says you share data with categories of partner you do not use, or omits ones you do, the mismatch is the compliance exposure — not the banner.

  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 Termly consent record.

  4. 4

    The event source decides reliability

    Send consented conversions with the consent rate stated.

  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.

Termly → GA4 · normal or broken

Working vs. broken, side by side — Termly → 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

    Default blocking configurations stop capture before consent on the first page view.

  • Sent from the browser

    Generated policies are templates. Adding a new conversion destination without updating the policy means you are disclosing data to a partner your own published statement does not mention, which is a real exposure that no tracking configuration fixes.

  • 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

Termly → GA4 · diagnose

Diagnostic order — Termly → GA4

  1. 01

    Count consent records carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare your destination list against what the policy discloses

    Every platform you send conversions to should appear. This is a five-minute check and it is almost never done after a new integration.

  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.

Termly → GA4 · prove

How it gets proven — Termly → GA4

Source of truth

Your order system, with consent state attached.

  • 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, with the destination list verified against the published policy.

Termly → 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
  • Compare your destination list against what the policy discloses
  • 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 attached.

Get my free conversion tracking audit

Free30 minutesNo obligation

Termly → GA4 · when not to buy

When you don't need this — Termly → GA4

  • Measure identifier coverage yourself first — pull your last hundred consent records and count how many carry the GA4 client_id.
  • Before adding any new conversion destination, update the policy. That order matters, and it is cheaper than the alternative.
  • 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.

Termly → GA4 · what we deliver

What gets built — Termly → GA4

  • Identifier capture into Termly

    Capture after consent, and make sure the policy actually describes the destinations you send conversions to.

  • Event source: your order system, gated on consent

    Send consented conversions with the consent rate stated.

  • 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

    Withdrawal stops future sends.

Written guarantee

95%+ tracking accuracy

Measured against Your order system, with consent state attached.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Termly → GA4 questions, answered

Visitors who decline analytics get no _ga cookie, and if Termly blocks the tag outright no cookieless pings are sent either. Check whether the tag runs in Consent Mode's denied state.

Free · 30 min

Get Termly and GA4 joined properly

Free30 minutesNo obligation