Skip to main content
Webflow → GA4Integration guide

Connecting Webflow to GA4

Webflow is a hosted visual builder whose forms submit over AJAX without a page navigation, which is the single behaviour that breaks most tracking on it. 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 Webflow form submission or order 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

Webflow to GA4: generate_lead without a thank-you page

Embed hidden inputs for client_id and session_id inside the Webflow form, filled from the _ga cookies at page load. The form submission webhook delivers them, and your server sends generate_lead through Measurement Protocol, so the lead attaches to its session. Send from one side only. For Webflow Ecommerce, send purchase from the order webhook with the order ID as transaction_id.

Webflow's site settings include a Google Analytics field that loads the GA4 tag, and that is all it does: page views and enhanced measurement, no `generate_lead`. GA4's enhanced measurement form interactions may log a `form_submit` on Webflow forms, but it fires on the attempt and does not know whether the submission succeeded. GTM's form submission trigger often misses entirely, because Webflow handles the submit itself. The common browser workaround is an element visibility trigger on the `.w-form-done` success message, which works until the visitor leaves first.

The dependable route is server-side. Add a custom code embed inside the form with hidden inputs for `client_id` and `session_id`, filled from the `_ga` cookies at page load. Webflow's form submission webhook then delivers them with the lead, and your server sends `generate_lead` through the Measurement Protocol with both, so the lead attaches to the session that produced it.

Send it from one side only. If the server sends `generate_lead`, remove any browser trigger for it and do not mark enhanced measurement's `form_submit` as a key event. For Webflow Ecommerce, send `purchase` from the order webhook with the Webflow order ID as `transaction_id`, after carrying the `client_id` through checkout.

Webflow → GA4 · what breaks

Why this join usually fails — Webflow → GA4

  1. 01

    The GA4 client_id never reaches Webflow

    Webflow forms submit via AJAX and show a success state without navigating, so anything expecting a thank-you page load never fires. Its hosted checkout adds a second boundary where cookies do not cross.

  2. 02

    AJAX form submission with no page load

    The form succeeds, the page never navigates, and a conversion tag waiting for a thank-you page load simply never fires. This is the defining Webflow tracking failure.

  3. 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.

  4. 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.

Webflow → GA4 · the fix

What working looks like — Webflow → 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

Webflow → GA4 · architecture

How Webflow and GA4 actually connect

  1. 1

    Webflow holds the truth

    Most Webflow sites are lead generation with the real commercial record in a CRM. Where Webflow Ecommerce is used, its order list is authoritative for the store.

  2. 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. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the Webflow form submission or order.

  4. 4

    The event source decides reliability

    Fire from the webhook rather than the AJAX success state, which depends on the visitor's browser completing the request and staying put.

  5. 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.

Webflow → GA4 · normal or broken

Working vs. broken, side by side — Webflow → GA4

Normal, not a fault

  • The GA4 client_id present on the conversion

  • Sent from the Webflow form webhook or order webhook

  • 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

    Webflow forms submit via AJAX and show a success state without navigating, so anything expecting a thank-you page load never fires. Its hosted checkout adds a second boundary where cookies do not cross.

  • Sent from the browser

    The form succeeds, the page never navigates, and a conversion tag waiting for a thank-you page load simply never fires. This is the defining Webflow tracking failure.

  • 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

Webflow → GA4 · diagnose

Diagnostic order — Webflow → GA4

  1. 01

    Count conversions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Submit a test form and watch whether anything fires

    If your setup expects a page load, it will not — and the site will look like it is working perfectly.

  4. 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.

  5. 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.

Webflow → GA4 · prove

How it gets proven — Webflow → GA4

Source of truth

Your CRM for lead forms, or Webflow Ecommerce orders where you sell directly.

  • 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 confirmed to report from the webhook rather than depending on the AJAX success state.

Webflow → GA4 · free audit

What we check in the free audit

  • Count conversions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Submit a test form and watch whether anything fires
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Your CRM for lead forms, or Webflow Ecommerce orders where you sell directly.

Get my free conversion tracking audit

Free30 minutesNo obligation

Webflow → GA4 · when not to buy

When you don't need this — Webflow → GA4

  • Measure identifier coverage yourself first — pull your last hundred conversions and count how many carry the GA4 client_id.
  • If your Webflow site hands off to a separate booking or commerce system, that system is where the conversion should come from.
  • 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.

Webflow → GA4 · what we deliver

What gets built — Webflow → GA4

  • Identifier capture into Webflow

    Capture the identifier into a hidden form field on the page, and for Ecommerce carry it through the checkout so it lands on the order.

  • Event source: the Webflow form webhook or order webhook

    Fire from the webhook rather than the AJAX success state, which depends on the visitor's browser completing the request and staying put.

  • 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 for Ecommerce orders; qualification before the send for lead forms.

Written guarantee

95%+ tracking accuracy

Measured against Your CRM for lead forms, or Webflow Ecommerce orders where you sell directly.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Webflow → GA4 questions, answered

Webflow submits forms without loading a new page, so a thank-you page trigger never fires. Use the success state as a stopgap or, better, the form webhook with the client_id in a hidden input.

Free · 30 min

Get Webflow and GA4 joined properly

Free30 minutesNo obligation