Webflow tracking breaks in one place more than any other: the native form. By default a Webflow form does not redirect. It hides itself and shows a success message on the same page, so there is no thank-you URL to target and the GTM Form Submission trigger is unreliable. The fix is to fire your GA4, Google Ads and Meta conversion tags when the success message becomes visible, or to switch the form to redirect to a thank-you page.
This guide is for agencies running paid media for clients whose sites are built in Webflow. It covers installing Google Tag Manager, tracking native forms, tracking HubSpot, Typeform and Calendly embeds, the limits of Webflow Ecommerce purchase tracking, consent, passing UTMs and gclid into hidden fields, and testing without polluting your client's data.
Step 1: Install Google Tag Manager in Webflow
Webflow gives you two ways to load Google tags. One is the native integration in Site settings > Apps & Integrations, where you can paste a Google tag ID. The other is custom code. For conversion tracking across GA4, Google Ads and Meta, use GTM through custom code.
- Check the plan. Site-wide custom code needs a paid plan. The free Starter plan does not allow it. Webflow changed its plan names in 2026, so confirm the current tier on Webflow's pricing page before you promise a client a timeline.
- Open the custom code settings. In the Webflow dashboard, open the site's Site settings and go to the Custom code tab. You will see a Head code box and a Footer code box.
- Paste the GTM snippet. Put the main GTM script in Head code. Webflow has no slot directly after the opening body tag, so the
noscript iframe part of the snippet goes in Footer code or gets left out.
- Publish. Custom code only runs on the published site, not inside the Designer. Publish to both the
webflow.io staging domain and the custom domain.
- Verify. Open GTM Preview, enter the live URL and confirm Tag Assistant connects and shows the Container Loaded event. Then view the page source and search for your
GTM- ID to confirm it appears once.
Now remove the duplicates. If the client already has a Google tag ID in Apps & Integrations, or a Meta Pixel ID in the native Meta Pixel integration, and you add the same tags in GTM, every page view and event fires twice. Pick one method per tag. For an agency setup that is GTM, so clear the native fields once your GTM tags are live and tested. Google's Webflow setup article shows where the native Google tag field lives.
Step 2: Understand how Webflow native forms behave
Every Webflow form block has three states: the form itself, a success message and an error message. In the published HTML these are a wrapper with the class w-form, the form element, a success div with the class w-form-done and an error div with the class w-form-fail.
When a visitor submits, Webflow's script sends the data in the background. On success it hides the form and shows w-form-done. On failure it shows w-form-fail. The page does not reload.
The form settings also have a Redirect option with three choices: None, Page or URL. None is the default and keeps the visitor on the same page with the success message. Page or URL sends the visitor to a thank-you page after a successful submission.
Why the GTM Form Submission trigger is unreliable here
GTM's Form Submission trigger listens for the browser's submit event. Webflow handles the submit itself, so the default browser action gets stopped. That creates two bad options:
- With Check Validation on. Google says this setting makes the trigger fire only if the form is successfully sent. When a script stops the default submit, as Webflow's does, the trigger often never fires at all.
- With Check Validation off. The trigger fires on every submit attempt. That includes attempts that fail Webflow's required-field checks, spam protection or the server request. You end up counting clicks, not leads.
See Google's notes on the Form Submission trigger options for the exact behavior. Our GTM form tracking guide covers the general patterns. For Webflow, use one of the two methods below.
Step 3: Track native form submissions
Method A: redirect to a thank-you page
Set the form's Redirect to Page and choose a thank-you page. Then fire your conversion tags on a Page View trigger where Page Path equals that page.
- Pros. Simple, easy to debug, and the thank-you page shows clearly in GA4 reports.
- Cons. Anyone who lands on the thank-you page directly gets counted. Bookmarks, back-button reloads and bots all inflate conversions. Set the thank-you page to be excluded from search indexing and leave it out of the sitemap.
Method B: listen for the success message (recommended)
Keep Redirect on None and fire tags when w-form-done becomes visible. You have two ways to do it.
Option 1: Element Visibility trigger. In GTM, create a trigger of type Element Visibility. Set Selection Method to CSS Selector, Element Selector to .w-form-done, and When to fire this trigger to Once per element. Under Advanced, tick Observe DOM changes. Without that box, GTM checks visibility on page load only and misses the success message appearing later. This works with no code, but on a page with several forms it does not tell you which form fired.
Option 2: a MutationObserver that pushes a custom event. Add a Custom HTML tag in GTM that fires on DOM Ready on all pages. It watches each success div and pushes a clean event with the form name when one appears:
<script>
(function () {
var done = document.querySelectorAll('.w-form-done');
done.forEach(function (el) {
var fired = false;
var form = el.parentNode.querySelector('form');
var obs = new MutationObserver(function () {
if (!fired && el.offsetParent !== null) {
fired = true;
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'webflow_form_success',
form_name: form ? (form.getAttribute('data-name') || form.id) : 'unknown'
});
obs.disconnect();
}
});
obs.observe(el, { attributes: true, attributeFilter: ['style'] });
});
})();
</script>
Then create a Custom Event trigger for webflow_form_success and a Data Layer Variable for form_name. Use it as a condition when only the contact form should count as a lead, not the newsletter form in the footer.
Tags to fire from the success trigger
| Platform | Tag | Key settings |
| GA4 | Google Analytics: GA4 Event | Event name generate_lead, parameter form_name; mark it as a key event in GA4 |
| Google Ads | Google Ads Conversion Tracking | Conversion ID and label from the client's conversion action; a Conversion Linker tag on all pages |
| Google Ads | Enhanced conversions | User-provided data from the form's email and phone fields |
| Meta | Meta Pixel via a Custom HTML tag or a community template | Standard event Lead, with an eventID if you also send the event through the Conversions API |
If you send leads to Meta from both the browser and the server, the browser and server events need the same event ID, or Meta counts them twice. Our Conversions API deduplication guide covers how to set that up.
Step 4: Track embedded forms and booking widgets
Many Webflow sites don't use native forms for leads. They embed a HubSpot form, a Typeform or a Calendly widget with an Embed element. None of these show a Webflow success div, and GTM's built-in triggers can't see inside an iframe from another domain. Use the tool's own events instead.
- HubSpot. Forms built in HubSpot's updated forms editor dispatch global browser events. Listen for
hs-form-event:on-submission:success in a Custom HTML tag and push a dataLayer event. Legacy HubSpot forms use a different callback, so check which editor built the form before you write the listener.
- Typeform. Typeform's embed SDK supports an
onSubmit callback. Use it to push a dataLayer event. A plain iframe embed without the SDK gives you nothing to listen to.
- Calendly. The Calendly embed sends
window.postMessage events to the parent page. Listen for calendly.event_scheduled, check that the message comes from calendly.com, and push a dataLayer event. Our booking widget tracking guide has the full listener.
Turn off any GA4 or Meta tracking inside the embedded tool if you track the same conversion in GTM. Otherwise you get two leads per booking.
Step 5: Capture UTMs and gclid into hidden fields
Conversion tags don't tell the client's CRM where a lead came from. Store the click ID and UTMs with each submission, so offline conversion imports are possible later.
- Store on landing. In a Custom HTML tag on all pages, read
gclid, gbraid, wbraid, fbclid and the utm_ parameters from the URL. Save them in a first-party cookie or localStorage, so they survive when the visitor moves to the contact page.
- Add the fields. Webflow's form fields don't include a hidden input type. Add a Code Embed element inside the form block with inputs such as
<input type="hidden" name="gclid">, one per value. Code embeds also need a paid plan.
- Fill on load. A second script writes the stored values into those inputs when the form is on the page.
- Map them downstream. If submissions go to a CRM through Zapier, Make or a webhook, map each hidden field to a CRM property. Webflow's
form_submission webhook sends all form fields as key-value pairs, so the hidden values arrive with the rest.
Once gclid lands in the CRM, you can import qualified leads and closed deals back into Google Ads. Since June 15, 2026, new offline import integrations use the Data Manager API rather than the Google Ads API. Our CRM offline import guide walks through it. For the CRM side, see lead source attribution in HubSpot and GoHighLevel.
Step 6: Webflow Ecommerce purchase tracking
Webflow Ecommerce can send purchase events through its native integrations. With the Google Analytics integration in Apps & Integrations and Ecommerce enabled, Webflow says it tracks events such as viewed product, added to cart and purchased product. The native Meta Pixel integration sends similar events to Meta.
The limits matter for agencies:
- No documented data layer. Webflow does not publish a purchase data layer for GTM. You can't read order value, transaction ID or items from GTM the way you can on platforms that push a
purchase event.
- Little control. The native events don't let you add Google Ads conversion tags, enhanced conversions, consent logic or Meta event IDs for deduplication.
- Doubling risk. If you keep the native integration and add your own purchase tag in GTM, GA4 counts each order twice.
The workable options are:
- Keep native for GA4, add Ads separately. Leave the native GA4 ecommerce events in place, and fire a Google Ads conversion on the order confirmation page. Without a data layer, value and transaction ID have to be read from the page content, which breaks when the template changes. Test it after every design change.
- Go server-side. Webflow's
ecomm_new_order webhook sends order data when an order is placed. A server endpoint or server-side GTM can turn that into a GA4 Measurement Protocol purchase, a Meta Conversions API Purchase event, or a Google Ads import. It also needs the visitor's click IDs captured earlier, because the webhook doesn't carry them.
Whichever route you pick, compare a week of Webflow orders against GA4 purchases and Google Ads conversions before you trust the numbers.
Step 7: Consent and Consent Mode v2
Webflow has consent controls, but they are narrow. The tracking consent settings in Webflow's site insights settings, and the browser methods wf.allowUserTracking(), wf.denyUserTracking() and wf.getUserTrackingChoice(), apply only to Webflow Analyze and Optimize. Webflow's consent management reference states this directly. They do not control GTM, GA4, Google Ads or the Meta Pixel.
For ad and analytics tags you need a consent management platform (CMP) that supports Google Consent Mode v2. The setup on Webflow:
- Default state first. The consent default must run before any Google tag. Use the CMP's GTM template on the Consent Initialization - All Pages trigger, or place the consent default script in Head code above the GTM snippet.
- All four signals. Set
ad_storage, analytics_storage, ad_user_data and ad_personalization, then send an update when the visitor chooses.
- Meta and other non-Google tags. Consent Mode only covers Google tags. Block the Meta Pixel with a GTM trigger condition based on the CMP's consent state.
- Sync Webflow Analyze. If the client also uses Analyze, call the
wf methods from the CMP callback, so one banner controls everything.
Our Consent Mode v2 implementation guide covers the GTM side in detail.
Step 8: Test on staging without breaking reporting
Webflow publishes every site to a webflow.io staging subdomain, and usually to the client's custom domain too. Site-wide custom code runs on both.
- Staging traffic lands in production. Test leads on
webflow.io fire real GA4 key events, Google Ads conversions and Meta leads. Add a trigger exception so conversion tags only fire when Page Hostname equals the custom domain. Or point staging at a separate GA4 property using a lookup table on hostname.
- Don't add webflow.io to cross-domain. Staging and production are different domains, so a test session that moves between them looks like two sessions. Adding
webflow.io to GA4's domain list in Admin > Data streams > Configure tag settings > Configure your domains doesn't fix the test, and it links production to a domain real visitors should never see. Test on one domain at a time. Real cross-domain problems, such as a separate checkout or booking domain, are covered in our cross-domain and self-referral guide.
A full test run for each conversion:
- GTM Preview. Submit the form and confirm
webflow_form_success (or your embed's event) shows in the event list, and that each conversion tag fired on it, once.
- Failed submission. Submit with a required field empty, or force an error. No conversion tag should fire.
- GA4 DebugView. In GA4, go to Admin > Data display > DebugView and confirm
generate_lead arrives with the right form_name.
- Google Ads. In Tag Assistant, confirm the conversion tag fired with the correct ID and label.
- Meta Test Events. In Events Manager, open the client's dataset, use the Test events tab, and confirm one
Lead event per submission.
Where agencies trip up
- Native integrations left on. Google tag or Meta Pixel IDs in Apps & Integrations plus the same tags in GTM. Every event doubles.
- Form Submission trigger with validation off. Conversions look healthy, but the CRM shows far fewer leads, because every failed attempt was counted. Our fix page on GA4 form submissions not tracked covers the opposite case, where nothing fires.
- Element Visibility without Observe DOM changes. The trigger never fires, because the success div was hidden at page load.
- A redesign changes the form. A designer swaps the native form for an embed, renames a form or moves the success div, and tracking quietly stops. Recheck tracking after every major publish.
- Every form counted as a lead. Newsletter, gated download and contact forms all fire the same conversion. Filter by
form_name.
- Hidden fields that stay empty. The script fills inputs on page load, but the form loads later in a tab or modal. Fill the fields again right before submit, or when the modal opens.
Getting it fixed for a client
If a client's Webflow site reports leads that don't match the CRM, or Ecommerce purchases that don't match orders, we can check it for you. Start with a free tracking check and we will tell you what is broken and what it takes to fix it.