Skip to main content
LoyaltyLion → GA4Integration guide

Connecting LoyaltyLion to GA4

LoyaltyLion is built around tiers, which means a customer's discount rate changes as they spend more — and so does the margin on every subsequent order. 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 LoyaltyLion tier order 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

LoyaltyLion tiers in GA4: a user property plus net revenue

Set the LoyaltyLion tier as a GA4 user property such as loyalty_tier and as a purchase parameter, since tier at purchase matters. Send purchase value net of the tier discount, with item-level discounts so gross can be rebuilt and item prices match the event value. Send refunds with the original transaction_id.

In GA4, set the customer's LoyaltyLion tier as a user property, for example loyalty_tier, whenever a logged-in member is identified, and also send it as a parameter on the purchase event. The tier at the moment of purchase is what matters, and a user property only shows the latest value. Report purchase value net of the tier discount, and record the discount on each item with the item-level discount parameter so gross can still be reconstructed.

The failure particular to this pair is the store platform's GA4 integration sending gross order value while the tier discount is buried in line prices. GA4 revenue by first user source then shows mature, high-tier customers as just as valuable as new ones. Check that item prices and the event value follow the same rule: gross items with a net total make item revenue disagree with purchase revenue, and someone will eventually report the wrong one.

GA4 is also where the loyalty question can be answered without touching ad platforms. Compare net revenue per purchaser by tier and by first user source, and see whether paid channels bring customers who stay in the entry tier or climb. Send refund with the original transaction_id when an order is refunded; if LoyaltyLion reverses tier progress on that refund, the tier parameter on the next purchase will show it.

LoyaltyLion → GA4 · what breaks

Why this join usually fails — LoyaltyLion → GA4

  1. 01

    The GA4 client_id never reaches LoyaltyLion

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  2. 02

    Tier discounts absorbed silently into order value

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  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.

LoyaltyLion → GA4 · the fix

What working looks like — LoyaltyLion → GA4

  • The GA4 client_id on every redemption

  • 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

LoyaltyLion → GA4 · architecture

How LoyaltyLion and GA4 actually connect

  1. 1

    LoyaltyLion holds the truth

    A top-tier customer buys at a permanently lower margin. Their order value looks identical to a new customer's and is worth meaningfully less, which matters when you are deciding what a new customer is worth acquiring.

  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 LoyaltyLion tier order.

  4. 4

    The event source decides reliability

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  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.

LoyaltyLion → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the redemption

  • Sent from your order feed with tier attached

  • 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

    Tier benefits apply automatically at checkout, so the discount is inside the order rather than in a code.

  • Sent from the browser

    Unlike a coupon, a tier discount has no code. It is applied automatically and disappears into the order total, so the margin erosion from a maturing loyalty base is invisible in every marketing report.

  • 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

LoyaltyLion → GA4 · diagnose

Diagnostic order — LoyaltyLion → GA4

  1. 01

    Count redemptions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compare average margin by loyalty tier

    As the programme matures this gap widens, and it is the reason a growing loyal base can coincide with falling profitability.

  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.

LoyaltyLion → GA4 · prove

How it gets proven — LoyaltyLion → GA4

Source of truth

Store orders with the customer's loyalty tier recorded at the time of purchase.

  • The GA4 client_id confirmed present on a live redemption.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Orders reconciled net of tier discount against imported conversions, with tier recorded.

LoyaltyLion → GA4 · free audit

What we check in the free audit

  • Count redemptions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Compare average margin by loyalty tier
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Store orders with the customer's loyalty tier recorded at the time of purchase.

Get my free conversion tracking audit

Free30 minutesNo obligation

LoyaltyLion → GA4 · when not to buy

When you don't need this — LoyaltyLion → GA4

  • Measure identifier coverage yourself first — pull your last hundred redemptions and count how many carry the GA4 client_id.
  • Flat-rate loyalty programmes without tiers do not have this problem.
  • 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.

LoyaltyLion → GA4 · what we deliver

What gets built — LoyaltyLion → GA4

  • Identifier capture into LoyaltyLion

    Record the tier on the order and net tier discounts out of the reported value.

  • Event source: your order feed with tier attached

    Send orders net of tier discount, with the tier recorded so margin by cohort stays visible.

  • 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.

Written guarantee

95%+ tracking accuracy

Measured against Store orders with the customer's loyalty tier recorded at the time of purchase.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

LoyaltyLion → GA4 questions, answered

Set the tier as a user property and send it as a parameter on each purchase, both registered as custom dimensions. The event parameter keeps the tier as it was when the order was placed.

Free · 30 min

Get LoyaltyLion and GA4 joined properly

Free30 minutesNo obligation