Connecting CJ Affiliate to GA4
CJ operates at enterprise scale with sophisticated commissioning rules, which means the same publisher can be paid differently by product, by customer status or by placement — and getting those inputs wrong pays real money incorrectly. 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 CJ transaction 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
CJ Affiliate and GA4: why the two never agree, and how to join them
Store the cjevent from the landing URL with the order, alongside the GA4 client_id, and add custom parameters such as affiliate_publisher and customer_status to the purchase event, registered as custom dimensions. Make sure CJ links carry UTM parameters, keep purchase in one place, and send refunds with the same transaction_id.
GA4 and CJ will always disagree about affiliate revenue, and that is expected: CJ pays on its own lookback window and commissioning rules, while GA4 credits sessions with its own attribution model. The goal is to make the disagreement explainable. Check whether your CJ tracking links append UTM parameters; if they do not, CJ clicks arrive after a hop through CJ's redirect domains and show in GA4 as referrals or (direct), which buries affiliate sessions inside other channels.
Store the cjevent value from the landing URL with the order, alongside the GA4 client_id, and add custom parameters such as affiliate_publisher and customer_status to the purchase event. Registered as custom dimensions, they let GA4 show revenue on CJ-claimed orders by publisher and by new versus returning buyer, which are the inputs CJ's commissioning rules run on. That turns GA4 into a check on CJ: if a publisher's orders are mostly returning customers in GA4 while CJ paid them the new-customer rate, the status flag is broken.
Keep purchase in one place. If the browser already sends it from the thank-you page, do not add a Measurement Protocol copy for the same order; if you move it server-side, send the stored client_id and session_id or the affiliate session that produced the sale is replaced by a new user. Send refund events with the same transaction_id so GA4 revenue follows the commissions CJ reverses.
CJ → GA4 · what breaks
Why this join usually fails — CJ → GA4
- 01
The GA4 client_id never reaches CJ
The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.
- 02
Commissioning rules fed the wrong inputs
A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.
- 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.
CJ → GA4 · the fix
What working looks like — CJ → 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
CJ Affiliate's own records are the reference, not either dashboard.
CJ → GA4 · architecture
How CJ and GA4 actually connect — CJ → GA4
- 1
CJ Affiliate holds the truth
Rules commonly commission new customers differently from returning ones. If your order does not carry customer status correctly, publishers are paid the wrong rate systematically and neither side notices for months.
- 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 CJ transaction.
- 4
The event source decides reliability
Send orders net of commission, carrying the fields the commissioning rules depend on.
- 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.
CJ → GA4 · normal or broken
Working vs. broken, side by side — CJ → GA4
Normal, not a fault
The GA4 client_id present on the conversion
Visible on the record itself in CJ Affiliate, not merely captured somewhere on the site.
Sent from your order record with CJ 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
GA4's count and CJ Affiliate's records agree within a few percent over a closed window.
Actually broken
The GA4 client_id missing on most records
The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths.
Sent from the browser
A new-customer rate applied to returning customers because the status flag was never wired is a direct overpayment on every affected order, compounding quietly until somebody audits the programme.
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
The dashboard shows a number and no one has compared it to CJ Affiliate.
CJ → GA4 · diagnose
Diagnostic order — CJ → GA4
- 01
Count conversions carrying the GA4 client_id
- 02
Follow one real conversion end to end
From the ad click through CJ and into GA4.
- 03
Verify that new-versus-returning status reaches CJ correctly
Sample recent transactions and compare against your own customer records. Mismatches are money.
- 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.
CJ → GA4 · prove
How it gets proven — CJ → GA4
Against CJ Affiliate's own records, not against either platform's dashboard.
Source of truth
Orders flagged by publisher, with the commissioning inputs recorded on the order.
- The GA4 client_id confirmed present on a live conversion.
- A real conversion followed from click through CJ to GA4.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Transactions reconciled per order with commissioning inputs verified against your own customer data.
CJ → GA4 · free audit
What we check in the free audit
- Count conversions carrying the GA4 client_id
- Follow one real conversion end to end
- Verify that new-versus-returning status reaches CJ correctly
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Orders flagged by publisher, with the commissioning inputs recorded on the order.
Free30 minutesNo obligation
CJ → GA4 · when not to buy
When you don't need this — CJ → GA4
- If GA4 already reports conversions that reconcile against CJ Affiliate's records within a few percent, this join is working and there is nothing to buy.
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the GA4 client_id.
- Simple flat-rate programmes have no commissioning inputs to get wrong.
- 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.
CJ → GA4 · what we deliver
What gets built — CJ → GA4
Identifier capture into CJ
Capture the identifier and the customer status on the order, and verify both across every checkout path you operate.
Event source: your order record with CJ attribution
Send orders net of commission, carrying the fields the commissioning rules depend on.
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 reverse the commission.
Written guarantee
95%+ tracking accuracy
Measured against Orders flagged by publisher, with the commissioning inputs recorded on the order.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
CJ → GA4 questions, answered
CJ credits on its own window and publisher rules, while GA4 credits sessions, often to a paid or direct visit that came later. Compare per order using the stored CJ identifier rather than comparing totals.
Send the publisher and customer status as parameters on the purchase event and register them as custom dimensions. UTM tags on CJ links help the sessions, but the order-level parameter is what makes the report trustworthy.
Almost always because the GA4 client_id never reached the CJ transaction. The publisher click identifier must survive to checkout, and enterprise stores frequently have several checkout paths. 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 record with CJ attribution. Send orders net of commission, carrying the fields the commissioning rules depend on.
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 CJ → GA4
- CJ → Google AdsConnecting CJ Affiliate to Google Ads
- CJ → MetaConnecting CJ Affiliate to Meta Conversions API
- CJ → HubSpotConnecting CJ Affiliate to HubSpot
RELATED GUIDES
Where CJ → GA4 fits in the rest of your tracking
- FirstPromoter → GA4Connecting FirstPromoter to GA4
- Rewardful → GA4Connecting Rewardful to GA4
- Everflow → GA4Connecting Everflow to GA4
- CJ → MatomoConnecting CJ Affiliate to Matomo
- CJ → AmplitudeConnecting CJ Affiliate to Amplitude
- SaaSConversion tracking for SaaS, from signup through to the payment that matters
- LeadDyno → GA4Connecting LeadDyno to GA4
- Tapfiliate → GA4Connecting Tapfiliate to GA4
