How to Create Form Submission Event in Google Analytics 4
Tracking form submissions in Google Analytics 4 is a non-negotiable step for understanding how your website actually contributes to your business. Whether it’s connecting with a new lead, getting a newsletter signup, or processing a support request, a submitted form is often the critical point of conversion. This tutorial will walk you through exactly how to set up form submission tracking in GA4, covering two different methods so you can get accurate data flowing quickly.
Why Bother Tracking Form Submissions?
Before diving into the “how,” let’s quickly touch on the “why.” Forms are the workhorses of most websites. They are the primary way a passive visitor becomes an active lead or customer. Tracking when these forms get filled out helps you do several important things:
- Measure Marketing ROI: You can tie form submissions directly back to the campaigns that brought users to your site (e.g., Google Ads, Facebook Ads, email newsletters), proving what's working and what isn't.
- Understand User Behavior: Which pages and blog posts lead to the most form submissions? Where in your funnel are users dropping off before converting? Tracking forms helps you answer these questions.
- Optimize Your Website: If a specific form on a landing page has a terrible submission rate, you know it might need a redesign or fewer fields. You can't improve what you don't measure.
Simply put, if you have a contact form, lead magnet signup, or any other form on your site, tracking its submission is essential for measuring your success.
The Two Main Ways to Track Form Submissions in GA4
There are two primary methods for setting up form submission tracking in GA4. Your best option depends on the complexity of your website's forms and how much control you need.
- Using GA4's Enhanced Measurement: This is an automatic, built-in feature of Google Analytics. It's easy to turn on, but it's not always reliable, especially for modern websites.
- Using Google Tag Manager (GTM): This method gives you total control and is far more accurate. It takes a little more setup but is the recommended approach for any serious tracking.
We'll cover both methods, starting with the simplest one first.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Method 1: Using GA4's Enhanced Measurement (The Easy Way)
Google Analytics 4 has a built-in feature called Enhanced Measurement that automatically tracks certain user interactions without any extra code. One of these is "Form interactions."
How to Enable Form Interaction Tracking
For many accounts, this is enabled by default. Here’s how to check and turn it on if it's not:
- Navigate to the Admin section of your GA4 property (the gear icon in the bottom-left).
- Under the 'Property' column, click on Data Streams.
- Click on the web data stream for your website.
- In the 'Events' section, you'll see a line for Enhanced measurement. Make sure it's toggled on, then click the gear icon to configure it.
- Ensure that Form interactions is checked. If you made any changes, click Save.
Once enabled, GA4 will now automatically listen for an event named <code>form_submit</code>. It will record this event whenever it detects that a user has successfully submitted a form on your site.
The Big Limitation of This Method
Setting this up sounds almost too easy, and often, it is. Enhanced Measurement is notoriously unreliable for a few key reasons:
- It Struggles with JavaScript Forms: Many modern website forms (especially in WordPress plugins or on sites built with frameworks like React) don't use the standard browser submission behavior. They often show a "Thank you" message on the same page without a full page reload. GA4's automated tracking often fails to detect these types of submissions.
- It Can’t Distinguish Between Forms: It just fires a generic
form_submitevent. You won't know if it came from your main contact form, a newsletter signup in the footer, or an internal search bar. - It May Not Track All Submissions: If your form simply redirects to a 'thank you' page, the tracking script might not have time to fire before the user is sent to the new URL, leading to missed data.
While it’s worth a try, don’t be surprised if you check your reports and find no form_submit events. If it doesn't work, or if you need more precise tracking, it's time to move on to the far more robust GTM method.
Method 2: Using Google Tag Manager (The Recommended Approach)
Google Tag Manager (GTM) is a free tool that acts as a middleman between your website and your analytics/marketing tools (like GA4). It gives you deep control over exactly what you track and when. This is the professional, reliable way to track form submissions.
We'll assume you already have a GTM container installed on your website. If not, setting one up is your first step.
Step 1: Enable Built-in Form Variables
Variables in GTM are little snippets of information it can use to define when triggers should work. We need to enable the ones related to forms.
- In your GTM container, navigate to Variables from the left-hand menu.
- In the 'Built-In Variables' section, click Configure.
- Scroll down to the 'Forms' section and check the boxes for all the form-related variables, such as Form ID, Form Classes, Form URL etc. This doesn't change anything on your site, but it gives you more tools for the next step.
Step 2: Create a Trigger for Form Submissions
The trigger tells GTM when to do something. In our case, we want it to "listen" for when a specific form is submitted.
- Go to Triggers in GTM and click New.
- Give your trigger a descriptive name, like "Trigger - Contact Form Submit".
- Click on 'Trigger Configuration' and choose the Form Submission trigger type.
- You now have two options: 'All Forms' or 'Some Forms'. While 'All Forms' seems simple, it can be problematic as it might fire on your website's search bar. It's much better to be specific. Select Some Forms.
- Now, you need to define a condition that only matches your intended form. The most reliable way is using the Form ID.
- In GTM configure your trigger to fire when Form ID contains
wpforms-form-123(using your actual form ID). Using "contains" is often safer than "equals" in case other details get added to the ID dynamically. - Click Save.
Step 3: Create the GA4 Event Tag
With our trigger ready, we need to create the tag that actually sends the form submission information over to Google Analytics 4.
- Go to Tags in GTM and click New.
- Give your tag a clear name, like "GA4 Event - Generate Lead".
- Click 'Tag Configuration' and select Google Analytics: GA4 Event.
- For 'Configuration Tag', choose your main GA4 configuration tag (the one you use for pageviews). If you don't have one, you'll need to create it by entering your GA4 Measurement ID.
- In the Event Name field, enter a custom name for your event. This is what you’ll see in your GA4 reports. Follow Google's recommended snake_case format (all lowercase with underscores instead of spaces). Good names are specific, such as
generate_lead,contact_form_submit, orsignup_newsletter. - Click on the Triggering section at the bottom, and select the form submission trigger you created earlier.
- Click Save.
Step 4: Test, Test, Test!
Never publish anything in GTM without testing it first. This is how you confirm everything is wired up correctly.
- In the top right corner of GTM, click the Preview button.
- Enter your website URL and click Connect. A new tab of your website will open with a GTM debug console connected.
- Navigate to the page with your form and fill it out exactly as a user would. Click submit.
- Go back to the GTM debug console tab. On the left-hand 'Summary' list, you should see a "Form Submit" event appear.
- Click on that "Form Submit" event. Under the 'Tags Fired' section, you should see your GA4 event tag ("GA4 Event - Generate Lead").
If your tag fired, congratulations! It's working perfectly. If it didn't, you might need to adjust your trigger conditions (e.g., use 'Form Class' instead of 'Form ID') or troubleshoot your site's form behavior. Once everything is confirmed, go back to GTM, click Submit, and then Publish your changes.
Free PDF Guide
AI for Data Analysis Crash Course
Learn how to get AI to do data analysis for you — the best tools, prompts, and workflows to go from raw data to insights without writing a single line of code.
Verifying Your Event in Google Analytics 4
After your GTM container is published, you can confirm the data is arriving in GA4 in a few places:
- Reports > Realtime: Within minutes of a submission, your new event (e.g.,
generate_lead) should appear in the 'Event count by Event name' card. - Admin > DebugView: You can see a live stream of events from your own browser for real-time troubleshooting.
- Reports > Engagement > Events: It can take 24-48 hours for your new event to show up in the standard GA4 reports, so be patient.
Bonus Step: Turn Your Event into a Conversion
Just because an event is being tracked doesn't mean GA4 treats it as a goal. You need to tell GA4 which events are important to your business by marking them as conversions.
- In your GA4 property, go to Admin.
- In the 'Property' column, click on Conversions.
- Click the New conversion event button.
- In the text field, enter the exact name of the event you created in GTM (e.g.,
generate_lead). GA4 is case-sensitive, so it must be a perfect match. - Click Save.
That's it! Within 24 hours, GA4 will now start tracking your form submissions not just as an event, but as a core conversion metric, making it easier to analyze in attribution reports and beyond.
Final Thoughts
This post walked you through two different ways to track form submissions in Google Analytics 4. While GA4's built-in feature is a quick option, setting up a custom event through Google Tag Manager offers far greater control and reliability, ensuring you capture every valuable lead and customer interaction on your site accurately.
Manually tracking and making sense of data across platforms like Google Analytics, your ad channels, and your CRM can feel like a full-time job. We built Graphed to cut through that complexity. Once you connect your data sources - a process that takes just a few clicks - we let you use simple, plain English to ask questions and build the performance dashboards you need in seconds. This allows you to spend less time wrangling data and more time focusing on what it means for your business.
Related Articles
How to Sell Mockups on Etsy: A Complete Guide for Digital Sellers
Learn how to sell mockups on Etsy — from creating your first product to pricing, listing optimization, and driving consistent sales.
The Bookmarks Market: Trends, Opportunities, and How to Win on Etsy
The bookmarks market is growing. Discover the trends, buyer personas, and strategies helping Etsy sellers win in this profitable niche.
How to Start a Bookmark Business on Etsy: A Step-by-Step Guide
Thinking of starting a bookmark business? Learn how to design, price, and sell bookmarks on Etsy for steady creative income.