Connecting VWO to GA4
VWO runs tests on marketing pages specifically, which puts it directly in the paid traffic path and makes the interaction between testing and attribution unavoidable. 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 VWO variation 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
VWO and GA4: variation on the conversion, not just the pageview
Use VWO's GA4 integration for the page view side. Store the _ga client_id and session_id, captured before VWO runs, plus the VWO campaign and variation IDs on each lead or order. Then send generate_lead or purchase through Measurement Protocol with the variation as an event parameter registered as a custom dimension. Split URL redirects must keep query parameters.
VWO can send experiment and variation data to GA4 through its own integration; check whether it is enabled and what events it creates in your property. That covers the page view side. The conversion side, a qualified lead or a settled order, usually comes later from your CRM or store through Measurement Protocol, and it needs the original client_id and the variation the visitor saw to be useful.
Store both on the lead or order record: the _ga client_id and session_id captured in the document head before VWO's code runs, and the VWO campaign and variation IDs read once the test has rendered. Send the variation as an event parameter on the server-side generate_lead or purchase, registered as a custom dimension. Then you can compare downstream conversion rate by variation and by source in one exploration.
Expect VWO's own goal count, GA4's key events and your CRM to disagree. VWO counts its visitors in its own window; GA4 counts events tied to sessions; the CRM counts people. For split URL tests, confirm the redirect keeps every query parameter, because a redirect that drops utm_ or gclid parameters files the variant's traffic under (direct) in GA4.
VWO → GA4 · what breaks
Why this join usually fails — VWO → GA4
- 01
The GA4 client_id never reaches VWO
Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.
- 02
Three tools reporting three different conversion counts
VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.
- 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.
VWO → GA4 · the fix
What working looks like — VWO → GA4
The GA4 client_id on every variation
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
VWO → GA4 · architecture
How VWO and GA4 actually connect — VWO → GA4
- 1
VWO holds the truth
VWO's own goal conversion is measured on its terms, in its window, against its visitor definition. It will not match your ad platform's figure and it is not supposed to.
- 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 VWO variation.
- 4
The event source decides reliability
Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.
- 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.
VWO → GA4 · normal or broken
Working vs. broken, side by side — VWO → GA4
Normal, not a fault
The GA4 client_id present on the variation
Sent from your lead or order system
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
Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be.
Sent from the browser
VWO, the ad platform and the CRM will each produce a different number for the same week, because each defines a visitor, a conversion and a window differently. Reconciling them requires one source of truth, and it is not the testing tool.
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
VWO → GA4 · diagnose
Diagnostic order — VWO → GA4
- 01
Count variations carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Check the load order of the testing library against identifier capture
If the test renders first, some share of identifiers is being lost on slower connections, and that share is not random across variations.
- 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.
VWO → GA4 · prove
How it gets proven — VWO → GA4
Source of truth
Your lead or order system, joined to the variation the visitor saw.
- The GA4 client_id confirmed present on a live variation.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Downstream outcomes reconciled per variation against imported conversions.
VWO → GA4 · free audit
What we check in the free audit
- Count variations carrying the GA4 client_id
- Follow one real conversion end to end
- Check the load order of the testing library against identifier capture
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Your lead or order system, joined to the variation the visitor saw.
Free30 minutesNo obligation
VWO → GA4 · when not to buy
When you don't need this — VWO → GA4
- Measure identifier coverage yourself first — pull your last hundred variations and count how many carry the GA4 client_id.
- Not testing paid landing pages means no interaction, and no reason to integrate the two systems.
- 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.
VWO → GA4 · what we deliver
What gets built — VWO → GA4
Identifier capture into VWO
Capture the identifier in the document head, before any testing library runs. This is the fix and it is a five-minute change.
Event source: your lead or order system
Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.
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
Disqualified leads and refunds reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your lead or order system, joined to the variation the visitor saw.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
VWO → GA4 questions, answered
They measure different things in different windows. VWO counts its visitors against its goals; GA4 counts events. Use your CRM or store as the reference.
Send the variation as a parameter on the conversion event and register it as a custom dimension.
Almost always because the GA4 client_id never reached the VWO variation. Synchronous test rendering can delay page load; asynchronous rendering causes flicker. Both push the identifier-capture script later in the sequence than it should be. 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 lead or order system. Send the downstream outcome — a qualified lead or a settled order — with the variation attached, rather than the on-page goal VWO records.
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 VWO → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where VWO → GA4 fits in the rest of your tracking
- mParticle → GA4Connecting mParticle to GA4
- Dynamic Yield → GA4Connecting Dynamic Yield to GA4
- Tealium → GA4Connecting Tealium to GA4
- VWO → MixpanelConnecting VWO to Mixpanel
- VWO → PostHogConnecting VWO to PostHog
- B2BConversion tracking for B2B, from first touch to closed-won
- RudderStack → GA4Connecting RudderStack to GA4
- Optimizely → GA4Connecting Optimizely to GA4
