Connecting Refersion to GA4
Refersion runs affiliate and influencer programmes on Shopify stores, which puts a commission-earning third party directly alongside your paid media on the same orders. 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 Refersion conversion 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
Refersion in GA4: see where paid sessions meet affiliate codes
Add UTM tags with medium set to affiliate to Refersion links, because GA4 ignores the rfsn parameter and custom channel groups cannot read it. Pass the coupon code on the purchase event, then explore paid-session purchases using affiliate codes to see overlap. Send affiliate IDs later via Measurement Protocol as a separate event, never a second purchase.
GA4 is where the Refersion overlap becomes visible rather than a place it causes harm, since GA4 drives no bidding. Affiliate links usually carry Refersion's own parameter (typically rfsn; check your link format), which GA4 ignores, so affiliate traffic lands as referral from the creator's site or as direct from apps. GA4's custom channel groups cannot read page URL parameters, so the practical fix is UTM tags on affiliate links, with medium set to affiliate, so those sessions get their own channel.
Coupon-code orders are the bigger gap. A customer who clicks your paid ad, then goes looking for a code and types an influencer's at checkout, generates a purchase GA4 files under the paid session. Make sure the purchase event carries the coupon parameter with the code used. Then one exploration (purchases where session source is a paid channel and the coupon belongs to an affiliate) shows the overlap: orders your ads produced and an affiliate is also being paid for.
Refersion assigns attribution after the order is placed, so it is rarely available to the browser purchase event. If you want an affiliate ID dimension in GA4, send it later through Measurement Protocol as a separate custom event keyed on transaction_id, rather than a second purchase that would double the revenue.
Refersion → GA4 · what breaks
Why this join usually fails — Refersion → GA4
- 01
The GA4 client_id never reaches Refersion
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
- 02
Influencer codes claiming paid traffic's orders
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
- 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.
Refersion → GA4 · the fix
What working looks like — Refersion → GA4
The GA4 client_id on every conversion
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
Refersion → GA4 · architecture
How Refersion and GA4 actually connect
- 1
Refersion holds the truth
An affiliate order costs you a commission on top of whatever the ad click cost. If both systems claim it, the order is being paid for twice and neither report mentions the other.
- 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 Refersion conversion.
- 4
The event source decides reliability
Send orders net of affiliate commission, with the affiliate-sourced share marked.
- 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.
Refersion → GA4 · normal or broken
Working vs. broken, side by side — Refersion → GA4
Normal, not a fault
The GA4 client_id present on the conversion
Sent from the store order record with Refersion attribution 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
Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored.
Sent from the browser
A customer sees your ad, searches for a discount code, finds an influencer's, and orders. The influencer earns a commission on a sale your advertising produced, and your paid reporting counts it too.
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
Refersion → GA4 · diagnose
Diagnostic order — Refersion → GA4
- 01
Count conversions carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Count orders appearing in both paid conversions and Refersion
The overlap is the double payment. One query, rarely run.
- 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.
Refersion → GA4 · prove
How it gets proven — Refersion → GA4
Source of truth
Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.
- The GA4 client_id confirmed present on a live conversion.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Non-affiliate orders reconciled against imported conversions, with the overlap measured and stated.
Refersion → GA4 · free audit
What we check in the free audit
- Count conversions carrying the GA4 client_id
- Follow one real conversion end to end
- Count orders appearing in both paid conversions and Refersion
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.
Free30 minutesNo obligation
Refersion → GA4 · when not to buy
When you don't need this — Refersion → GA4
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the GA4 client_id.
- No affiliate programme means no conflict and this reduces to an ordinary store integration.
- 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.
Refersion → GA4 · what we deliver
What gets built — Refersion → GA4
Identifier capture into Refersion
Set an explicit precedence rule between affiliate and paid parameters rather than letting last-write-wins decide, and record both on the order.
Event source: the store order record with Refersion attribution attached
Send orders net of affiliate commission, with the affiliate-sourced share marked.
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 should claw back the commission.
Written guarantee
95%+ tracking accuracy
Measured against Store orders flagged by whether an affiliate link or code produced them, with the commission recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Refersion → GA4 questions, answered
Add UTM parameters with an affiliate medium to Refersion links so those sessions get their own channel, and send the coupon code on every purchase so code-only affiliate orders are visible too.
The customer arrived from your ad and typed an affiliate's code at checkout. GA4 credits the session; Refersion credits the code. Report by coupon to measure the overlap.
Almost always because the GA4 client_id never reached the Refersion conversion. Affiliate links carry their own parameters and land on your store, frequently overwriting or colliding with a paid identifier already stored. 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.
The store order record with Refersion attribution attached. Send orders net of affiliate commission, with the affiliate-sourced share marked.
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 Refersion → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where Refersion → GA4 fits in the rest of your tracking
- FirstPromoter → GA4Connecting FirstPromoter to GA4
- Tapfiliate → GA4Connecting Tapfiliate to GA4
- Rewardful → GA4Connecting Rewardful to GA4
- Refersion → MixpanelConnecting Refersion to Mixpanel
- Refersion → MatomoConnecting Refersion to Matomo
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- ShareASale → GA4Connecting ShareASale to GA4
- Everflow → GA4Connecting Everflow to GA4
Free · 30 min
Get Refersion and GA4 joined properly
Free30 minutesNo obligation
