Skip to main content
LeadDyno → GA4Integration guide

Connecting LeadDyno to GA4

LeadDyno targets smaller businesses running their first affiliate programme, where the most common outcome is paying commission on customers who would have bought anyway. 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 LeadDyno referral 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

LeadDyno to GA4: separating affiliate sales from paid channels

GA4 and LeadDyno will credit the same order differently. Send purchase from the order record through Measurement Protocol with the original client_id, plus custom dimensions for the LeadDyno affiliate ID and new-versus-existing status from your order system, and commission as a separate parameter. Keep affiliate parameters on landing URLs; precedence belongs in server logic.

In GA4, a LeadDyno affiliate visit lands as a referral or under whatever UTMs the affiliate link carries, and a later paid click starts a new session with its own source. Which channel gets the purchase depends on GA4's attribution model, not on who LeadDyno pays commission to, so the two reports will disagree on the same order and both can be right.

Send purchase from the order record via Measurement Protocol with the original client_id, and add two event parameters registered as custom dimensions: the LeadDyno affiliate ID (or a plain affiliate flag), and new-versus-existing customer status taken from your order system. GA4's own new-user metric only knows about cookies, not purchase history. With both parameters, an exploration can show affiliate orders from existing customers by original source, which is the leak the commission rule needs to fix.

Report value two ways: purchase value as GA4 expects it, and commission as a separate parameter, so net revenue per channel is a calculated metric rather than a guess. Don't strip affiliate parameters from the landing URL to protect a stored paid identifier; GA4 needs to see them, and precedence belongs in your server logic.

LeadDyno → GA4 · what breaks

Why this join usually fails — LeadDyno → GA4

  1. 01

    The GA4 client_id never reaches LeadDyno

    Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored.

  2. 02

    Paying commission on existing customers

    First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.

  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.

LeadDyno → GA4 · the fix

What working looks like — LeadDyno → GA4

  • The GA4 client_id on every referral

  • 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

LeadDyno → GA4 · architecture

How LeadDyno and GA4 actually connect

  1. 1

    LeadDyno holds the truth

    New programmes frequently recruit existing customers as affiliates, who then refer themselves or their own repeat purchases. That is commission on revenue you already had.

  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 LeadDyno referral.

  4. 4

    The event source decides reliability

    Send orders net of commission, with new-versus-existing customer status recorded.

  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.

LeadDyno → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the referral

  • Sent from your order record with affiliate attribution

  • 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

    Affiliate links land on your store carrying parameters that may overwrite a paid identifier already stored.

  • Sent from the browser

    First affiliate programmes almost always leak this way. Without a new-customer condition on the commission rule, you are paying a percentage on repeat purchases you would have received for nothing.

  • 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

LeadDyno → GA4 · diagnose

Diagnostic order — LeadDyno → GA4

  1. 01

    Count referrals carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Count affiliate-attributed orders from customers who already existed

    If the share is high, the fix is the commission rule rather than the tracking.

  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.

LeadDyno → GA4 · prove

How it gets proven — LeadDyno → GA4

Source of truth

Orders flagged by affiliate, with the customer's prior relationship recorded.

  • The GA4 client_id confirmed present on a live referral.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Affiliate orders reconciled net of commission, split by new versus existing customer.

LeadDyno → GA4 · free audit

What we check in the free audit

  • Count referrals carrying the GA4 client_id
  • Follow one real conversion end to end
  • Count affiliate-attributed orders from customers who already existed
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Orders flagged by affiliate, with the customer's prior relationship recorded.

Get my free conversion tracking audit

Free30 minutesNo obligation

LeadDyno → GA4 · when not to buy

When you don't need this — LeadDyno → GA4

  • Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the GA4 client_id.
  • Programmes already restricted to new customers do not have this leak.
  • 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.

LeadDyno → GA4 · what we deliver

What gets built — LeadDyno → GA4

  • Identifier capture into LeadDyno

    Set precedence explicitly and record whether the referred customer was already known to you.

  • Event source: your order record with affiliate attribution

    Send orders net of commission, with new-versus-existing customer status recorded.

  • 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 reverse and reclaim commission.

Written guarantee

95%+ tracking accuracy

Measured against Orders flagged by affiliate, with the customer's prior relationship recorded.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LeadDyno → GA4 questions, answered

GA4 attributes across sessions by its own model, while LeadDyno credits the affiliate referral. Send the affiliate ID with the purchase so you can see both on the same order.

Free · 30 min

Get LeadDyno and GA4 joined properly

Free30 minutesNo obligation