Connecting Cognito Forms to GA4
Cognito Forms supports conditional logic and payments, which means one form can be a survey, a registration and a checkout depending on which branch the visitor takes. 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 Cognito Forms entry 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
Cognito Forms to GA4: one event per branch, not one per submit
Use Cognito Forms' post-on-submit webhook to feed GA4 Measurement Protocol, with the visitor's client_id and session_id prefilled into hidden fields from the _ga cookie. Send free enquiries as generate_lead and confirmed paid registrations as purchase with value, currency and the entry number as transaction_id. Remove any GTM form-submit trigger that would double count.
Depending on the embed method, a Cognito form runs either in your page or in an iframe, so a GA4 tag listening for the submit may or may not see it. The steadier source is Cognito's post-on-submit webhook (check that your plan includes posting entry data to a URL) feeding a Measurement Protocol event. Put the visitor's GA4 client_id and session_id into hidden fields: read the _ga cookie on the host page and prefill the fields, checking which prefill method your embed type supports.
Map branches to different GA4 events. A free enquiry becomes generate_lead; a paid registration becomes purchase with value, currency and the Cognito entry number as transaction_id. When the payment step hands off to a processor, send the purchase only after the payment is confirmed, not on submit, or abandoned payments read as revenue.
GA4 will not deduplicate a browser generate_lead against your server event, so decide which side owns each event. The common Cognito mistake is a GTM form-submit trigger left running on every branch alongside the new server events, which doubles leads and turns paid entries into lead-plus-purchase. Refunds go back as a GA4 refund event with the entry's transaction_id.
Cognito Forms → GA4 · what breaks
Why this join usually fails — Cognito Forms → GA4
- 01
The GA4 client_id never reaches Cognito Forms
Forms are embedded and payments may hand off to a processor, breaking the session twice.
- 02
One form, several outcomes, one conversion action
Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.
- 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.
Cognito Forms → GA4 · the fix
What working looks like — Cognito Forms → GA4
The GA4 client_id on every submission
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
Cognito Forms → GA4 · architecture
How Cognito Forms and GA4 actually connect
- 1
Cognito Forms holds the truth
A form that sometimes takes payment and sometimes does not produces two completely different conversions from one submission event.
- 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 Cognito Forms entry.
- 4
The event source decides reliability
Send paid submissions at their amount and unpaid ones as a separate lower-value action.
- 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.
Cognito Forms → GA4 · normal or broken
Working vs. broken, side by side — Cognito Forms → GA4
Normal, not a fault
The GA4 client_id present on the submission
Sent from your CRM or payment record
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
Forms are embedded and payments may hand off to a processor, breaking the session twice.
Sent from the browser
Conditional logic means the same form produces a free enquiry from one visitor and a paid registration from another. A single conversion action averages them into a value that describes neither.
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
Cognito Forms → GA4 · diagnose
Diagnostic order — Cognito Forms → GA4
- 01
Count submissions carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
List the branches your form can produce and their values
Usually the first time anyone has, and it is normally the whole fix.
- 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.
Cognito Forms → GA4 · prove
How it gets proven — Cognito Forms → GA4
Source of truth
Your CRM or payment record, with the form branch recorded.
- The GA4 client_id confirmed present on a live submission.
- Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
- Submissions reconciled by branch against imported conversions.
Cognito Forms → GA4 · free audit
What we check in the free audit
- Count submissions carrying the GA4 client_id
- Follow one real conversion end to end
- List the branches your form can produce and their values
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Your CRM or payment record, with the form branch recorded.
Free30 minutesNo obligation
Cognito Forms → GA4 · when not to buy
When you don't need this — Cognito Forms → GA4
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the GA4 client_id.
- A single-path form with no payment needs one action and nothing else.
- 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.
Cognito Forms → GA4 · what we deliver
What gets built — Cognito Forms → GA4
Identifier capture into Cognito Forms
Pass the identifier into a hidden field and carry it through to the payment where one occurs.
Event source: your CRM or payment record
Send paid submissions at their amount and unpaid ones as a separate lower-value action.
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 Your CRM or payment record, with the form branch recorded.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Cognito Forms → GA4 questions, answered
Read it from the _ga cookie on the host page and prefill a hidden field. Then check live entries to confirm the field actually has values.
Usually a GTM submit trigger and a Measurement Protocol event both fire for the same entry. GA4 has no deduplication, so remove one of them.
Almost always because the GA4 client_id never reached the Cognito Forms entry. Forms are embedded and payments may hand off to a processor, breaking the session twice. 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 CRM or payment record. Send paid submissions at their amount and unpaid ones as a separate lower-value action.
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 Cognito Forms → GA4
- Gravity Forms → GA4Connecting Gravity Forms to GA4
- Cognito Forms → Google AdsConnecting Cognito Forms to Google Ads
- Cognito Forms → MetaConnecting Cognito Forms to Meta Conversions API
RELATED GUIDES
Where Cognito Forms → GA4 fits in the rest of your tracking
- Ninja Forms → GA4Connecting Ninja Forms to GA4
- Formstack → GA4Connecting Formstack to GA4
- Tally → GA4Connecting Tally to GA4
- Cognito Forms → PostHogConnecting Cognito Forms to PostHog
- Cognito Forms → AmplitudeConnecting Cognito Forms to Amplitude
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Formidable Forms → GA4Connecting Formidable Forms to GA4
- Typeform → GA4Connecting Typeform to GA4
Free · 30 min
Get Cognito Forms and GA4 joined properly
Free30 minutesNo obligation
