How to Track Form Submission in Google Analytics 4
Tracking form submissions in Google Analytics 4 is a critical step in turning your website from a simple brochure into a lead-generation tool. By measuring these interactions, you can clearly see which marketing efforts are turning visitors into potential customers. This guide will walk you through setting up form tracking, from the simplest 'flip-a-switch' method to a more robust approach using Google Tag Manager.
Why Track Form Submissions in the First Place?
Forms are often the final step a user takes before becoming a lead. They might be signing up for a newsletter, requesting a quote, scheduling a demo, or simply getting in touch. Tracking submissions allows you to:
- Measure Marketing ROI: Understand which channels (like social media, paid ads, or organic search) drive the most valuable conversions, not just traffic.
- Optimize Your Acquisition Funnel: Identify pages where users are successfully converting and which ones might be causing them to drop off.
- Attribute Value to Actions: Connect user actions directly to tangible business outcomes, like generating a new sales qualified lead (SQL) or adding a subscriber to your email list.
Without this tracking, you're driving blind, unsure of what’s truly working. You can see traffic, but you can't see impact.
The Two Main Ways to Track Forms in GA4
Google Analytics offers two primary methods for tracking form submissions. While both can get the job done, they serve different needs.
- Enhanced Measurement in GA4: This is a built-in feature that can automatically detect form submissions. It's incredibly easy to enable but lacks reliability and flexibility for anything but the simplest websites.
- Google Tag Manager (GTM): A free tool from Google that gives you precise control over your tracking. GTM is more involved to set up, but it is vastly more reliable and powerful. This is the recommended method for most businesses.
Method 1: Quick and Easy Tracking with GA4's Enhanced Measurement
If you have a very basic website with standard HTML forms, GA4’s built-in form tracking might be all you need. It’s designed to be a straightforward solution without needing additional tools.
How it Works
Enhanced Measurement automatically listens for specific user interactions, including form submissions. When enabled, it generates a form_submit event whenever it believes a form has been sent. The key word here is "believes" - it's not always right.
Step-by-Step Instructions
First, you need to make sure the feature is turned on.
- Navigate to the Admin section in GA4 (the gear icon in the bottom-left).
- Under the Property column, click on Data Streams.
- Select your website's data stream.
- In the Events section, look for Enhanced Measurement. Click the gear icon on the right to configure it.
- Make sure Form interactions is toggled on. If it's not, turn it on and click Save.
That's it! GA4 will now attempt to automatically track all form submissions on your site.
Turning the "form_submit" Event into a Conversion
Just tracking an event isn't enough, you need to tell GA4 that this specific event is a key business objective. To do this, you mark it as a conversion.
- Go to Admin > Events (under the Property column).
- Once your forms start getting submitted, you should see
form_submitappear in the event list (this can take 24-48 hours to show up). - Once it appears, simply find
form_submitand toggle the "Mark as conversion" switch on its right.
Now, every form_submit event will be counted as a conversion in your GA4 reports.
Pros and Cons of This Method
- Pros: Effortless to set up. You just flip a switch and you're done.
- Cons: Highly unreliable. It often fails with forms that use JavaScript for submission (common in modern web design) or don't trigger a page reload. It also offers no way to differentiate between multiple forms on your site, like a "Contact Us" form versus a "Newsletter Signup."
Method 2: Using Google Tag Manager (The Recommended Approach)
For accurate, reliable, and detailed form measurement, Google Tag Manager is the way to go. It may seem intimidating at first, but following these steps will give you a professional-grade setup that you can trust.
The process in GTM follows three core steps: enabling variables, creating a trigger, and creating a tag.
Step 1: Enable Built-in Form Variables
Variables are bits of information GTM can use to understand the context of an event. You need to enable the ones related to forms first.
- Inside your GTM container, go to the Variables section in the left menu.
- Under the Built-In Variables section, click Configure.
- Scroll down to the "Forms" section and check the boxes for all form-related variables (like Form ID, Form Classes, and Form URL).
Step 2: Create a Trigger
The trigger tells GTM when to act. In this case, we want it to act when a specific form is submitted.
- Go to Triggers in the left menu and click New.
- Give your trigger a clear name, like "Trigger - Contact Form Submission".
- Click on Trigger Configuration and choose Form Submission as the trigger type.
- Leave "Wait for Tags," and "Check Validation" alone for now.
- Select the radio option for Some Forms.
- This is the most important part: you need to provide a unique condition so GTM knows which form to track. For reliability, the best option is to use the form's ID.
To find your form's ID, go to the page with your form, right-click on a form field, and select "Inspect." Look a few lines up in the code for the <form> tag and find its id attribute.
In the example above, the ID is wf-form-Contact-Form. Now go back to GTM.
- Set the firing condition to: Form ID | equals | your-form-id (e.g.,
wf-form-Contact-Form).
If your form doesn't have an ID, you can use Page URL contains /contact-us/ if the form only exists on one page.
Step 3: Create the GA4 Event Tag
The tag tells GTM what to do when the trigger condition is met. Here, we want it to send an event to GA4.
- Go to Tags and click New.
- Name the tag something descriptive, like "GA4 Event - Contact Form Submitted".
- Click Tag Configuration and choose Google Analytics: GA4 Event.
- For Configuration Tag, select your main GA4 configuration tag (you should already have this if GTM is properly installed).
- In the Event Name field, enter a name for your event. Use an SEO-friendly
snake_caseformat. A recommended name isgenerate_lead, which is perfect for most contact forms. - Now click the Triggering box at the bottom. Select the trigger you just created ("Trigger - Contact Form Submission").
- Click Save.
Step 4: Test in Preview Mode (do not skip)
Testing ensures everything works before you publish changes to your live site.
- In the top-right corner of GTM, click Preview.
- Enter your website's URL and click Connect. A new tab with your website will open.
- On your website, fill out your form and click the submit button.
- Go back to the Tag Assistant window (the previous tab) and look at the event list on the left. You should see a Form Submit event.
Click on the Form Submit event. In the main window, you will see if your GA4 Event - Contact Form Submitted tag fired. If you see a green check and a "Fired" check, success! If not, review your trigger conditions - there's likely a typo in the Form ID.
Step 5: Publish Your Container
Once you’ve confirmed that it's working, it's time to make those changes live.
- Go back to the main GTM interface and click the Submit button in the top-right corner.
- Give your version a name, such as "Added Contact Form Tracking", and click "Publish".
Troubleshooting Common Issues
Sometimes, things don’t go as planned.
- My Form Submission Isn’t Triggering: If your form is not a standard HTML form, it might be using JavaScript or AJAX. In this case, consider using:
Final Thoughts
Tracking form submissions in GA4 is an important part of understanding your website’s performance and the value it brings. While the Enhanced Measurement method is a simple and quick setup, using Google Tag Manager provides detailed control and reliability, which is often necessary for complex sites.
Related Articles
What SEO Tools Work with Google Analytics?
Discover which SEO tools integrate seamlessly with Google Analytics to provide a comprehensive view of your site's performance. Optimize your SEO strategy now!
Looker Studio vs Metabase: Which BI Tool Actually Fits Your Team?
Looker Studio and Metabase both help you turn raw data into dashboards, but they take completely different approaches. This guide breaks down where each tool fits, what they are good at, and which one matches your actual workflow.
How to Create a Photo Album in Meta Business Suite
How to create a photo album in Meta Business Suite — step-by-step guide to organizing Facebook and Instagram photos into albums for your business page.