How to Track Form Submission in Google Analytics 4

Cody Schneider7 min read

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.

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

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.

  1. 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.
  2. 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.
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

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.

  1. Navigate to the Admin section in GA4 (the gear icon in the bottom-left).
  2. Under the Property column, click on Data Streams.
  3. Select your website's data stream.
  4. In the Events section, look for Enhanced Measurement. Click the gear icon on the right to configure it.
  5. 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.

  1. Go to Admin > Events (under the Property column).
  2. Once your forms start getting submitted, you should see form_submit appear in the event list (this can take 24-48 hours to show up).
  3. Once it appears, simply find form_submit and 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."
GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

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.

  1. Inside your GTM container, go to the Variables section in the left menu.
  2. Under the Built-In Variables section, click Configure.
  3. 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.

  1. Go to Triggers in the left menu and click New.
  2. Give your trigger a clear name, like "Trigger - Contact Form Submission".
  3. Click on Trigger Configuration and choose Form Submission as the trigger type.
  4. Leave "Wait for Tags," and "Check Validation" alone for now.
  5. Select the radio option for Some Forms.
  6. 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.

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

GraphedGraphed

Still Building Reports Manually?

Watch how growth teams are getting answers in seconds — not days.

Watch Graphed demo video

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.

  1. Go to Tags and click New.
  2. Name the tag something descriptive, like "GA4 Event - Contact Form Submitted".
  3. Click Tag Configuration and choose Google Analytics: GA4 Event.
  4. For Configuration Tag, select your main GA4 configuration tag (you should already have this if GTM is properly installed).
  5. In the Event Name field, enter a name for your event. Use an SEO-friendly snake_case format. A recommended name is generate_lead, which is perfect for most contact forms.
  6. Now click the Triggering box at the bottom. Select the trigger you just created ("Trigger - Contact Form Submission").
  7. Click Save.

Step 4: Test in Preview Mode (do not skip)

Testing ensures everything works before you publish changes to your live site.

  1. In the top-right corner of GTM, click Preview.
  2. Enter your website's URL and click Connect. A new tab with your website will open.
  3. On your website, fill out your form and click the submit button.
  4. 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.

  1. Go back to the main GTM interface and click the Submit button in the top-right corner.
  2. 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