Find a guide
Menu
Analytics

How to Track Form Submissions in GA4 Without GTM

Learn how to track form submissions in GA4 directly using thank-you pages, enhanced measurement, or inline JavaScript without opening Google Tag Manager.

How to Track Form Submissions in GA4 Without GTM
Photo: Adi Goldstein
In this article
  1. Key takeaways
  2. What are your options to track forms without GTM?
  3. Method 1: How do you track form submissions using a thank-you page?
  4. Method 2: How does GA4 Enhanced Measurement track forms automatically?
  5. Method 3: How do you fire a submission event directly with gtag.js?
  6. How do you verify your form tracking actually works?
  7. What are the common mistakes to avoid?
  8. Which method should you choose?

To track form submissions in Google Analytics 4 without using Google Tag Manager, the cleanest method is redirecting users to a dedicated thank-you page and turning that URL visit into a custom conversion event inside the GA4 admin. You can also use GA4's built-in Enhanced Measurement or a one-line JavaScript snippet, but the thank-you page approach prevents false counts. The whole setup takes under ten minutes and requires zero third-party tag containers.

Key takeaways

  • The most reliable non-GTM tracking method creates a custom generate_lead event in GA4 triggered by the page_location of your confirmation URL.
  • Native Enhanced Measurement form tracking runs automatically, but it often misfires on failed form validations and empty submissions.
  • Custom events appear in your GA4 Realtime dashboard within seconds, while standard reports require up to 24 hours to display the data.
  • If your form submits via AJAX without changing the URL, a short gtag.js code snippet placed in your success callback is required.

What are your options to track forms without GTM?

You have three distinct ways to track form completions in GA4 without touching Google Tag Manager. Each method addresses a different website setup.

Method Technical Effort Accuracy Best For
Thank-You Page Event Low (Admin only) High Traditional forms that redirect to a confirmation URL
Enhanced Measurement None (Toggle switch) Low to Medium Quick checks on simple, standard HTML forms
Direct gtag.js Snippet Medium (Requires code edit) High Modern AJAX forms, single-page apps, and popup modals

For most small sites, redirecting to a thank-you page wins every time. It eliminates the technical headache of debugging complex tags while avoiding the phantom submission counts that plague automated browser trackers.


Method 1: How do you track form submissions using a thank-you page?

Setting up a thank-you page redirect is the gold standard for tracking lead forms because the destination page renders only after the backend server receives and accepts valid user input.

Step 1: Configure your form redirect

Set your form builder (such as WordPress plugins, Webflow, or Squarespace) to redirect users to a confirmation URL upon completion. For example: https://example.com/thank-you or https://example.com/contact-confirmed. Ensure this page cannot be indexed by search engines by setting its meta robots tag to noindex, so organic search visits do not inflate your conversion numbers.

Step 2: Open GA4 Events administration

Sign in to your Google Analytics property. Click the Admin gear icon in the bottom-left corner of your dashboard. Under the Data display section, click on Events.

Step 3: Create a new custom event

Click the blue Create event button located in the top-right corner of the table, then click Create again inside the drawer that opens.

Fill out the configuration fields:

  • Custom event name: Enter generate_lead (using Google's recommended standard event name) or form_submission_success.
  • Matching conditions:
    1. Parameter: event_name | Operator: equals | Value: page_view
    2. Click Add condition.
    3. Parameter: page_location | Operator: contains | Value: /thank-you

Leave the checkbox labeled Copy parameters from the source event checked. This ensures your custom event keeps default dimensions like source, medium, and campaign. Click Create to save.

Parameter:       event_name     equals    page_view
AND Parameter:   page_location  contains  /thank-you

Step 4: Mark the event as a key event

In GA4, conversions are designated as Key Events. Wait until you test the form (detailed below), or immediately go to Admin > Key events, click New key event, type your exact event name (generate_lead), and click Save. Every time someone hits that confirmation URL, GA4 records a marketing conversion.


Method 2: How does GA4 Enhanced Measurement track forms automatically?

GA4 features a native toggle called Enhanced Measurement that monitors standard web events, including form submissions, without requiring any setup on your site.

The honest catch: it is prone to false positives. Enhanced Measurement listens for the browser's native DOM submit action. If a user clicks your submit button but missed a required telephone field, the browser triggers the click, GA4 logs a form_submit event, and the user stays on the page looking at an error alert. You end up with inflated data.

If you still want to use it for basic monitoring, follow these steps:

  1. In GA4, go to Admin > Data Streams and select your primary web stream.
  2. In the Enhanced measurement panel, verify the toggle is switched on, then click the gear icon to view settings.
  3. Locate Form interactions and switch the toggle to active.
  4. Click Save.

According to official Google Analytics Help documentation, this setting automatically populates two parameters: form_id and form_destination. You can filter down to specific forms inside your reports by looking up those dimensions. If your form relies heavily on front-end validation, compare your form backend entries against the GA4 count before relying on these figures for budget allocations.

If your traffic numbers still seem disconnected from your actual customer volume, you might be dealing with untracked sharing channels. Check out our breakdown on capturing dark social traffic to see where else your leads might be hiding.


Method 3: How do you fire a submission event directly with gtag.js?

If your form uses JavaScript or AJAX to submit data without refreshing the page or changing the URL, you cannot use a simple thank-you page trigger. Instead, send the event straight to GA4 using the Google tag script already sitting in your site header.

Locate the script on your site that handles the successful submission response. Insert this single line of JavaScript into the success handler:

gtag('event', 'generate_lead', {
  'form_name': 'contact_form',
  'form_id': 'homepage_lead'
});

A basic implementation looks like this:

<script>
document.querySelector('#lead-form').addEventListener('submit', function(e) {
  // Execute after your existing validation succeeds
  if (typeof gtag === 'function') {
    gtag('event', 'generate_lead', {
      'form_name': 'consultation_request',
      'value': 1
    });
  }
});
</script>

Because this script sits inside your verified code block, it fires only when the form passes your front-end validation routines, keeping your analytics clean.


How do you verify your form tracking actually works?

Never assume your tracking works without watching the hit register in real time. Standard reports in GA4 can take 24 to 48 hours to populate, but diagnostic views update instantly.

Step 1: Open GA4 Realtime

In your GA4 property, navigate to Reports > Realtime in the left sidebar.

Step 2: Submit a test entry

Open your website in an incognito or private browsing window to bypass any active ad blockers or developer caching. Fill out your form with dummy text and submit it.

Step 3: Check the Event Count card

Switch back to your GA4 Realtime tab. Look at the Event Count by Event Name card. Within 15 to 30 seconds, you should see your custom event name (such as generate_lead or form_submit) register with a count of 1. Click on the event name inside the card to see the underlying parameters like page_location or form_name.

If you prefer a deeper diagnostic tool, turn on GA4's DebugView by installing the official Google Analytics Debugger extension from the Chrome Web Store. When enabled, your exact browser session streams its full parameter payload under Admin > DebugView.


What are the common mistakes to avoid?

Small tracking errors can quietly distort your conversion rates for months before anyone notices. Keep an eye out for these four frequent issues:

  1. Tracking the submit button click instead of submission: Tracking a button click measures user intent, not user completion. A visitor who clicks "Send" four times because their internet is slow will log four conversions if you track the button, but only one form ever reaches your CRM.
  2. Double-counting via duplicate methods: If you activate Enhanced Measurement's form interactions and simultaneously build a custom thank-you page event, GA4 will log two distinct events for every inquiry. Turn off Form interactions if you are using manual tracking methods.
  3. Leaving thank-you pages publicly crawlable: If Google crawls your /thank-you page and indexes it, web surfers finding it directly via search will trigger conversions without ever seeing your form. Add <meta name="robots" content="noindex"> to that specific confirmation page template.
  4. Case sensitivity errors: GA4 event parameter matches are case-sensitive by default unless configured otherwise. If your URL is /Thank-You and your rule matches /thank-you, the event will never fire.

Getting these mechanics right is critical when you are building out your measurement foundation. If you are growing your marketing capabilities further and considering outside assistance, review our guide on hiring your first marketer to ensure your reporting stays rock solid as you scale.


Which method should you choose?

If your form builder lets you pick a redirect URL, use Method 1 (Thank-You Page). It requires no code, resists validation bugs, and keeps maintenance simple.

If you run single-page apps or modern embedded checkout modals where URLs do not change, use Method 3 (Direct gtag.js). It demands light developer work but delivers ironclad data.

Avoid relying strictly on Method 2 (Enhanced Measurement) unless you have confirmed via real-time testing that your specific form code does not trigger the tracker on failed inputs. Clean conversion data is worth the extra five minutes of deliberate setup.

Frequently asked questions

Can you track form submissions in GA4 without Google Tag Manager?
Yes, you can track submissions by redirecting visitors to a unique thank-you page, enabling Enhanced Measurement in your data stream, or adding a gtag snippet directly into your form code.
Why is GA4 Enhanced Measurement form tracking inaccurate?
Enhanced Measurement triggers automatically on generic submit button clicks, which records an event even if form validation fails or the user leaves required fields blank.
What is the most reliable way to track form submissions without GTM?
Redirecting users to a distinct confirmation or thank-you URL after successful validation is the most accurate method because the page loads only upon actual completion.
How long does it take for custom events to appear in GA4 reports?
Custom events appear immediately in the GA4 Realtime and DebugView reports, but standard historical reports can take 24 to 48 hours to fully populate.
Do I need to write code to track form submissions without GTM?
No, if your form tool lets you redirect to a unique URL, you can configure the event entirely inside the GA4 admin interface using the Create Event feature.

Sources and further reading

  1. Google Analytics analytics.google.com
  2. Google Analytics Help documentation support.google.com

Keep reading

How to Track Newsletter Signups in GA4 with Custom Events

How to Track Newsletter Signups in GA4 with Custom Events

Analytics 7 min read
Google Search Referrers: How Traffic Headers Work

Google Search Referrers: How Traffic Headers Work

Analytics 5 min read
See Which Posts Actually Make Sales Using Analytics Hunter

See Which Posts Actually Make Sales Using Analytics Hunter

Analytics 7 min read