How to Track Forms in Google Analytics

Cody Schneider9 min read

Tracking form submissions is often the most important conversion goal for websites that generate leads, build email lists, or offer quotes. Knowing how many people fill out your forms - and where they come from - is the key to understanding if your marketing is actually working. This guide will show you a few reliable methods to track form submissions in Google Analytics 4, from the dead-simple to the highly-flexible.

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?

Setting up form tracking isn't just a "nice-to-have" technical task, it's fundamental to measuring your website's performance. When you track forms, you unlock a few critical insights:

  • Measure Lead Generation: The most obvious benefit. You can count exactly how many prospective customers, newsletter subscribers, or demo requests your site generates.
  • Understand Marketing ROI: You can tie form submissions directly back to their source. Did that submission come from a Google Ad, a Facebook post, an organic search, or a direct link? This tells you which channels are delivering valuable leads and where to invest your budget.
  • Identify Conversion Issues: If a specific landing page gets tons of traffic but very few form fills, you might have a problem with your form's design, length, or the page's copy. Tracking lets you spot these conversion bottlenecks.

Simply put, if you aren't tracking forms, you're flying blind, relying on gut feelings instead of data to make decisions about your marketing and website.

Choosing the Right Form Tracking Method

There are three main ways to track form submissions in Google Analytics 4. The best one for you depends on how your forms are built and how much control you need.

  1. The 'Thank You' Page Method: The easiest and often most reliable method. It works beautifully if your form redirects users to a confirmation page after they click "submit."
  2. The Google Tag Manager Method: The most powerful and flexible approach. This is the best option for forms that don't redirect (e.g., they just show an inline "success" message) or for when you need to track multiple different forms precisely.
  3. The Automatic GA4 Event Method: GA4's Enhanced Measurement can automatically detect form submissions, but it's often unreliable and lacks the specificity needed for serious reporting. It's a starting point, but not a long-term solution.

We'll walk through each of these step-by-step.

Method 1: The 'Thank You' Page Method

This is the classic technique and for good reason: it's simple to implement and very accurate. The logic is straightforward: if a user lands on your confirmation or "thank you" page, they must have successfully submitted a form. Here's how to set it up.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Step 1: Set Up Your Form to Redirect to a 'Thank You' Page

First, you need a dedicated confirmation page that users can only reach by submitting the form. This is crucial.

  • Create a new page on your website with a unique URL, like /thank-you or /contact-success.
  • In your form's settings (whether in WordPress, Webflow, Shopify, etc.), find the "Action After Submit" or "Redirect" option. Set it to send users to the URL you just created.
  • Pro Tip: To prevent this page from appearing in search engine results and messing up your data, set it to "noindex" using a meta tag or your SEO plugin's settings.

Step 2: Create a Custom Event in GA4 for Page Views of Your 'Thank You' Page

Next, you'll tell GA4 to fire a custom event every time someone visits that specific page.

  1. Log into your Google Analytics 4 property.
  2. Click on Admin in the bottom-left corner.
  3. Under the Property column, click on Events.
  4. Click the Create event button, and then click Create again.
  5. Now you’ll configure your new event. Fill in the fields like this:
  6. Click Create in the top right.

That's it! From now on, whenever a user lands on your Thank You page, GA4 will record a custom event called generate_lead.

Step 3: Mark Your Custom Event as a Conversion

To make this data even more useful, you should register this new event as an official conversion in GA4. This allows you to see it in key reports and import it into Google Ads.

  1. In the GA4 Admin section, go to Conversions.
  2. Click the New conversion event button.
  3. In the "New event name" field, paste in the exact name you used for your custom event (e.g., generate_lead). The name needs to match exactly.
  4. Click Save.

You may need to wait up to 24 hours for the new event to appear, but once someone completes the form, you'll see your generate_lead event show up with a green checkmark as a registered conversion.

Pros and Cons of This Method

Pros: Very easy for non-developers to set up, highly accurate, and doesn't require Google Tag Manager. Cons: Doesn't work for forms that show an inline success message and don't redirect. It also requires you to create an extra page on your site for every form you want to track.

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 (GTM)

Google Tag Manager is the most powerful way to track forms because it listens for the submission event itself, rather than depending on a page load. This is the go-to method for forms without a redirect (often called AJAX forms) or for tracking multiple forms on a single site.

Before you begin, make sure you have Google Tag Manager installed on your website and your GA4 Configuration Tag is already set up.

Step 1: Enable Form-Related Built-In Variables

GTM needs to know what information to "listen" for when a form is submitted. You enable this by activating the built-in form variables.

  1. In your GTM container, navigate to Variables in the left menu.
  2. In the Built-In Variables section, click Configure.
  3. Scroll down to the Forms section and check the boxes for all form variables, especially Form ID, Form Classes, and Form URL.

These variables let you target specific forms later on.

Step 2: Create a Form Submission Trigger

The trigger tells GTM when to fire a tag. In this case, we want it to fire when a specific form is submitted.

  1. Go to Triggers and click New.
  2. Give your trigger a descriptive name, like "Contact Form Submission Trigger".
  3. Click inside the "Trigger Configuration" box and choose Form Submission as the trigger type.
  4. Select the Some Forms radio button. Dropping down from "All Form Submissions" might seem tempting, but this often causes fake submissions to be sent since it fires every time someone clicks on a submit button. Selecting "Some Forms" allows you to add another layer of confirmation. You also might want to consider toggling on Check Validation which causes this trigger to wait until either some action has been completed, or it reaches a timeout to start activating any tags it is connected to.
  5. Now, you need to tell GTM which form to listen to. The most reliable way is with a Form ID.
  6. Click Save.

Step 3: Create The GA4 Event Tag

The tag is what sends the information to Google Analytics.

  1. Go to Tags and click New.
  2. Name your tag something like "GA4 Event - Contact Form Submit."
  3. Click in the "Tag Configuration" box and choose Google Analytics: GA4 Event.
  4. For "Configuration Tag," select your main GA4 configuration tag.
  5. For "Event Name", enter a standardized name like contact_form_submit.
  6. Leave everything else as is for a simple submission tracking.

Step 4: Attach The Trigger

The last part of configuring the Tag is activating a "Trigger".

  1. Click in the "Triggering" section at the bottom of the tag configuration screen.
  2. Select the form submission trigger you created in the previous step (e.g., "Contact Form Submission Trigger").
  3. Click Save.

Finally, click the Submit button in the top right to publish your changes live.

GraphedGraphed

Still Building Reports Manually?

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

Watch Graphed demo video

Step 5 (CRITICAL) - Preview, Test, & Debug

Do not skip this step!

  1. Click on the Preview at the top right of the screen.
  2. A new screen will pop into a new tab asking you to fill in your URL address where your form is located.
  3. The Google Tag Manager Preview will load into your webpage and allow you to make a practice submission.
  4. Go back into the screen where the debugger is and you will notice a ton of different events going on a list to the left-hand side. If the tag has fired successfully then you will see that Form Start & Form Submit are visible in that left-hand side list. If you find yourself lost, this is usually towards the bottom. Sometimes if the configuration is slightly off, you will see tags Not being Fired on This Event. This might mean some details are wrong or maybe you need to adjust your variables back in the GTM platform.

You now also want to see that same data in your GA4 property in a special debugging feature.

  1. In GA4 admin screen select Debug Mode.
  2. Look for your contact_form_submit in the timeline if GA4 has recorded your activity correctly.
  3. As a final note, remember to mark this new event as a "Conversion" in GA4 just like you did in the first method so you can easily view your success in GA4 reports.

Pros and Cons of This Method

Pros: Works with any type of form. Extremely flexible for tracking many different types of form submissions. It is the gold standard for accurate tracking. Cons: Has a steeper learning curve. It also requires careful setup and testing to ensure you're only tracking successful submissions.

Final Thoughts

Tracking form submissions is non-negotiable for understanding how your website contributes to your business goals. Whether you use the simple redirect method or the more robust Google Tag Manager approach, the key is to get that critical conversion data flowing into Google Analytics so you can start making smarter marketing decisions.

Once this data is flowing, the next real step is to understand what it means by connecting it to the rest of your customer journey. For this exact reason, we built Graphed. Our platform allows you to combine your Google Analytics data with all your other marketing sources like Facebook Ads, Google Ads, and e-commerce platforms. Instead of trying to piece reports together, you can just ask plain English questions like, "Which campaigns are generating the most Contact form submissions this month?" to instantly view your full marketing and sales funnels.

Related Articles