Connecting ReferralCandy to GA4
ReferralCandy serves smaller stores where the referral programme is often the second-largest acquisition channel and is almost never measured against paid media properly. 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 ReferralCandy 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
ReferralCandy in GA4: a channel of its own, not direct
Append UTM parameters such as utm_source=referralcandy and utm_medium=referral to ReferralCandy share links if possible, so GA4 stops filing referrals under direct. Add a referral flag as a purchase parameter registered as a custom dimension, send refunds with the same transaction_id, and compare referral-flagged revenue with ReferralCandy's dashboard monthly to catch hand-typed codes.
GA4 is where ReferralCandy should appear as a channel rather than an exclusion. Shared referral links usually arrive with no campaign tags, opened from a text message or chat app, so GA4 files them under direct. Check whether ReferralCandy lets you append UTM parameters to the share link. Something like utm_source=referralcandy and utm_medium=referral gives the programme its own row in acquisition reports.
Add a referral flag as a purchase parameter, registered as a custom dimension, because GA4's attribution follows its own rules, not yours. A referred friend who later clicks a paid ad will have the purchase credited to that ad in GA4. The flag lets you report referral orders by your own precedence, whatever GA4's attribution model decided.
Send refunds as refund with the same transaction_id, which matters more here than usual: ReferralCandy reclaims rewards on refunds, and GA4 revenue should net the same orders out. Compare GA4's referral-flagged revenue with ReferralCandy's own dashboard each month. A large gap usually means the flag is not set on orders where the discount code was typed in by hand.
ReferralCandy → GA4 · what breaks
Why this join usually fails — ReferralCandy → GA4
- 01
The GA4 client_id never reaches ReferralCandy
Referral links land with their own parameters on a store that may already hold a paid identifier.
- 02
Referral and paid competing for the same orders
Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.
- 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.
- 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.
ReferralCandy → GA4 · the fix
What working looks like — ReferralCandy → 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
ReferralCandy → GA4 · architecture
How ReferralCandy and GA4 actually connect
- 1
ReferralCandy holds the truth
At small-store scale the referral programme can rival paid acquisition in volume. Pooling them means neither channel's true cost per acquisition is knowable.
- 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
The identifier is the bridge
The GA4 client_id, captured at the visit and carried into the ReferralCandy referral.
- 4
The event source decides reliability
Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.
- 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.
ReferralCandy → GA4 · normal or broken
Working vs. broken, side by side — ReferralCandy → GA4
Normal, not a fault
The GA4 client_id present on the referral
Sent from your order feed with referral 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
Referral links land with their own parameters on a store that may already hold a paid identifier.
Sent from the browser
Without a precedence rule the credit goes to whichever parameter was written last, which means your reported channel mix is an accident of browsing order.
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
ReferralCandy → GA4 · diagnose
Diagnostic order — ReferralCandy → GA4
- 01
Count referrals carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Count orders carrying both a referral and a paid parameter
It is usually a meaningful share, and every one of them is currently credited by luck.
- 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.
- 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.
ReferralCandy → GA4 · prove
How it gets proven — ReferralCandy → GA4
Source of truth
Store orders flagged by referral, net of both rewards.
- 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.
- Non-referral orders reconciled against imported conversions, with referral volume and reward cost stated.
ReferralCandy → 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 orders carrying both a referral and a paid parameter
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Store orders flagged by referral, net of both rewards.
Free30 minutesNo obligation
ReferralCandy → GA4 · when not to buy
When you don't need this — ReferralCandy → GA4
- Measure identifier coverage yourself first — pull your last hundred referrals and count how many carry the GA4 client_id.
- No referral programme, no conflict.
- 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.
ReferralCandy → GA4 · what we deliver
What gets built — ReferralCandy → GA4
Identifier capture into ReferralCandy
Set precedence explicitly and record both identifiers on the order.
Event source: your order feed with referral attribution
Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.
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 rewards.
Written guarantee
95%+ tracking accuracy
Measured against Store orders flagged by referral, net of both rewards.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
ReferralCandy → GA4 questions, answered
Shared links usually open from messaging apps with no campaign tags. Add UTM parameters to the referral link if ReferralCandy allows it.
Yes. Send a referral flag on purchase and register it as a custom dimension, then filter or compare on it.
Almost always because the GA4 client_id never reached the ReferralCandy referral. Referral links land with their own parameters on a store that may already hold a paid identifier. Measure coverage before debugging the dispatch.
The client_id, from the _ga cookie. Measurement Protocol events without it are rejected or create a brand-new user with no session and no source, which is how server events end up filed under (direct)/(none) and make paid channels look worse than they are. Send session_id alongside it so the event joins the existing session, and include engagement_time_msec or the event may not appear as expected in reports.
Your order feed with referral attribution. Send orders net of rewards, with referral orders marked and excluded from paid conversion imports.
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.
More on ReferralCandy → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where ReferralCandy → GA4 fits in the rest of your tracking
- Extole → GA4Connecting Extole to GA4
- Talkable → GA4Connecting Talkable to GA4
- Friendbuy → GA4Connecting Friendbuy to GA4
- ReferralCandy → Adobe AnalyticsConnecting ReferralCandy to Adobe Analytics
- ReferralCandy → PostHogConnecting ReferralCandy to PostHog
- Subscription boxesConversion tracking for subscription boxes, measured in retained subscribers
Free · 30 min
Get ReferralCandy and GA4 joined properly
Free30 minutesNo obligation
