Connecting Duda to GA4
Duda is a hosted website builder sold largely through agencies and resellers, which caps what any individual site owner can change. 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 Duda store order or form submission 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
Duda to GA4: form leads with the client_id attached
Send generate_lead to GA4 from the Duda form through Measurement Protocol, with the client_id read from the _ga cookie into a hidden field via Duda's custom code injection so the form webhook carries it. Pick one sender, since a browser generate_lead plus a server event doubles every lead. First check which GA4 property is installed and who owns it.
Many Duda sites already carry GA4, either through a measurement ID in the site settings or a tag the agency added, so the first job is an inventory: which GA4 property is actually on the site, who owns it, and whether the client has admin access. On agency-built Duda sites it is common to find the agency's property collecting data the client cannot see.
Since most Duda sites are lead generation, the event is generate_lead from the form, and GA4 is where you see which landing pages and channels produce it. To send it server-side through Measurement Protocol, read the client_id from the _ga cookie into a hidden form field using Duda's custom code injection, so the form webhook carries it. Without it, the server event becomes a new user under (direct)/(none).
Pick one sender. If a thank-you page or a form-submit tag already fires generate_lead in the browser, adding a Measurement Protocol event doubles every lead, and GA4 will not deduplicate. Leads qualified later in the client's CRM can follow as a separate event with the same client_id, sent when qualification happens, since Measurement Protocol backdates only about 72 hours.
Duda → GA4 · what breaks
Why this join usually fails — Duda → GA4
- 01
The GA4 client_id never reaches Duda
Duda controls the page lifecycle and limits custom code injection, and agency-managed sites often have restricted access. What is possible depends on the plan and on who holds the account.
- 02
Platform and access limits together
Duda restricts custom code and the account is frequently held by an agency. Both have to be resolved before any build, and the second is usually slower.
- 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.
Duda → GA4 · the fix
What working looks like — Duda → 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
Duda → GA4 · architecture
How Duda and GA4 actually connect
- 1
Duda holds the truth
Most Duda sites are lead-generation rather than commerce, so the conversion is usually a form submission and the money lives entirely offline in the client's own system.
- 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 Duda store order or form submission.
- 4
The event source decides reliability
Send from the webhook rather than a thank-you page, given how much of the page lifecycle Duda manages.
- 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.
Duda → GA4 · normal or broken
Working vs. broken, side by side — Duda → GA4
Normal, not a fault
The GA4 client_id present on the conversion
Sent from the Duda form webhook or store order event
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
Duda controls the page lifecycle and limits custom code injection, and agency-managed sites often have restricted access. What is possible depends on the plan and on who holds the account.
Sent from the browser
Duda restricts custom code and the account is frequently held by an agency. Both have to be resolved before any build, and the second is usually slower.
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
Duda → GA4 · diagnose
Diagnostic order — Duda → GA4
- 01
Count conversions carrying the GA4 client_id
- 02
Follow one real conversion end to end
- 03
Establish plan-level code access and who controls the account
These decide feasibility before any technical question does.
- 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.
Duda → GA4 · prove
How it gets proven — Duda → GA4
Source of truth
Duda's store orders or form submissions for the same window.
- 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.
- A form submission or order confirmed to carry the identifier.
Duda → GA4 · free audit
What we check in the free audit
- Count conversions carrying the GA4 client_id
- Follow one real conversion end to end
- Establish plan-level code access and who controls the account
- Check whether server events carry a session and a source
- Read the match rate, not the success message
Checked against
Duda's store orders or form submissions for the same window.
Free30 minutesNo obligation
Duda → GA4 · when not to buy
When you don't need this — Duda → GA4
- Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the GA4 client_id.
- If the site is lead-gen only and the client's CRM holds the money, build there instead — Duda is just the front door.
- 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.
Duda → GA4 · what we deliver
What gets built — Duda → GA4
Identifier capture into Duda
Capture the identifier through Duda's supported custom code injection into a hidden form field, and verify it lands on a real submission.
Event source: the Duda form webhook or store order event
Send from the webhook rather than a thank-you page, given how much of the page lifecycle Duda manages.
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
For store orders, refunds. For lead forms, nothing — qualification has to happen before the send.
Written guarantee
95%+ tracking accuracy
Measured against Duda's store orders or form submissions for the same window.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Duda → GA4 questions, answered
Check the site settings for a Google Analytics field; many plans accept a measurement ID there. Server-side form events still need custom code to capture the client_id.
Usually both a browser tag and a server event send generate_lead. GA4 has no deduplication for Measurement Protocol, so remove one sender.
Almost always because the GA4 client_id never reached the Duda store order or form submission. Duda controls the page lifecycle and limits custom code injection, and agency-managed sites often have restricted access. What is possible depends on the plan and on who holds the account. 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 Duda form webhook or store order event. Send from the webhook rather than a thank-you page, given how much of the page lifecycle Duda manages.
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 Duda → GA4
- Stripe → GA4Connecting Stripe to GA4
- PayPal → GA4Connecting PayPal to GA4
- HubSpot → GA4Connecting HubSpot to GA4
RELATED GUIDES
Where Duda → GA4 fits in the rest of your tracking
- Craft → GA4Connecting Craft CMS to GA4
- Sitecore → GA4Connecting Sitecore to GA4
- Statamic → GA4Connecting Statamic to GA4
- Duda → PostHogConnecting Duda to PostHog
- Duda → MixpanelConnecting Duda to Mixpanel
- Local servicesConversion tracking for local businesses, where most conversions bypass the website
- Concrete CMS → GA4Connecting Concrete CMS to GA4
- Umbraco → GA4Connecting Umbraco to GA4
