Sub topic 9
Form interactions: form_start and form_submit
Enhanced measurement can record two form events without custom code: form_start and form_submit. This chapter covers what triggers each event, which parameters they carry, and why they miss many real-world forms. It also covers how to verify them and when to replace them with custom events.
This chapter assumes you have a GA4 web data stream with the Google tag installed (gtag.js or Google Tag Manager). It also assumes you know what an event and an event parameter are, and that you can navigate the Admin interface. The code examples use basic HTML and JavaScript.
What the two events record
Both events are part of the "Form interactions" toggle in the enhanced measurement settings of a web data stream. One switch controls both events. You cannot enable form_start without form_submit.
| Event | When it fires | Fires how often |
|---|---|---|
| `form_start` | The first time a user interacts with a form in a session | Once per session |
| `form_submit` | When a user submits a form | Each submit |
The "first interaction" for form_start means the user focuses on or types into a field of a form. The tag listens for this on the page. A visitor who only scrolls past a form does not trigger it.
Parameters
The events send the standard event parameters plus a set of form-specific ones. These are collected automatically.
| Parameter | Meaning |
|---|---|
| `form_id` | The HTML `id` attribute of the form element |
| `form_name` | The HTML `name` attribute of the form element |
| `form_destination` | The URL the form submits to (its `action`) |
| `form_submit_text` | The text of the submit button, on `form_submit` |
If the form has no id, name or action, the matching parameter is empty or missing. This is the most common cause of reports full of (not set) values. Many forms are built by plugins that omit these attributes.
The following form gives the tag everything it needs:
<form id="newsletter-signup" name="newsletter" action="/subscribe" method="post">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
<button type="submit">Subscribe</button>
</form>With this markup, form_start carries form_id = newsletter-signup and form_name = newsletter. The form_submit event adds form_destination and form_submit_text = Subscribe.
How the events are detected
The Google tag attaches listeners to the page's DOM (the browser's in-memory tree of HTML elements). It looks for a native form element and watches for user interaction and for the browser's submit event.
The diagram below shows the flow for a standard form.
The important branch is the last one. Enhanced measurement depends on the browser's native submit event. A form that sends data with JavaScript (fetch or XMLHttpRequest) and never triggers a native submit may produce form_start but no form_submit.
Turning the events on and off
- In GA4, open Admin, then Data streams, and select your web stream.
- Under Enhanced measurement, confirm the toggle is on. Click the gear icon.
- Switch Form interactions on or off.
- Click Save.
The setting applies to the whole stream. You cannot restrict it to certain pages or forms in the interface. If you need that control, turn the toggle off and send custom events instead, as described later in this chapter.
Why `form_start` is not "form views"
Intermediate users often misread form_start. Three points matter:
- It records interaction, not exposure. Use a separate method (such as a scroll or visibility custom event) if you want to count how many people saw a form.
- It fires once per session per tag setup, not once per form. A user who fills in two different forms in one session may produce only one
form_start. - Autofill and password managers can count as interaction. A browser that fills a field can trigger the event before the user touches anything. This inflates
form_startslightly.
Because of the once-per-session behavior, a funnel built from form_start to form_submit can show a conversion rate above what it should, or below it, depending on how many forms a user touches. Treat the ratio as a rough indicator. It is not a precise completion rate.
Common problems
The form submits but no `form_submit` appears
Check these causes in order:
- The form submits through JavaScript without a native submit event.
- The form lives inside an iframe from another domain. The tag on the parent page cannot see into a cross-origin frame.
- The page navigates away too fast, and the request is cancelled before it is sent. GA4 normally uses a beacon transport for this, but some blockers or slow connections interfere.
- The form is a widget from a third-party tool (a booking system or payment page) hosted on its own domain.
Duplicate or doubled `form_submit` events
If you install both the Google tag with enhanced measurement and a Google Tag Manager trigger for form submissions that sends an event named form_submit, GA4 receives two events. Check for this when numbers look twice as high as the number of confirmed submissions. Either turn off the toggle, or give your custom event a different name.
`form_submit` counts failed submissions
The event fires when the browser submits the form. It does not know whether the server accepted the data. A form with validation errors on the server side still produces form_submit. Browser-side validation (such as required) usually blocks the native event, but server validation does not.
This is the main reason to prefer a custom event on a thank-you page or after a successful response for anything you count as a lead.
Parameters show `(not set)`
The form has no id or name. Fix the markup, or send a custom event with the parameters you want.
Seeing the events in DebugView
Use the debug tag from earlier chapters to confirm what fires:
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXXX', { debug_mode: true });
</script>Open the page, click into a field, and submit the form. In Admin, then DebugView, you should see form_start followed by form_submit. Select each event to check form_id, form_name, form_destination and form_submit_text. If you use Tag Assistant preview, the same events appear in the summary on the left as you interact.
Test in a fresh session. Because form_start fires once per session, a second test in the same session shows no new form_start, and you may think it is broken.
Using the events in reports
The form parameters are not available in standard reports or explorations until you register them as custom dimensions.
- Go to Admin, then Custom definitions, then Create custom dimension.
- Set the scope to Event.
- Enter a name such as
Form ID, and enter the event parameterform_id. - Repeat for
form_name,form_destinationorform_submit_textas needed.
Data appears only for events collected after the dimension is created. It can take up to a day to show in reports.
To count form submissions as conversions, mark the event as a key event. Go to Admin, then Events, and switch on Mark as key event for form_submit. Key events apply to all form_submit events on the property, so every form on the site is counted equally. If you only want one form to count, create a custom event for that form and mark that one instead. An alternative is to use an audience or an explorations filter on form_id, which does not change the key event count.
When to use custom events instead
Replace or supplement the built-in events when you need any of the following:
- Only successful submissions, confirmed by a server response or thank-you page.
- Forms submitted by JavaScript, or forms in cross-origin iframes (where the iframe owner must send the data).
- Several forms with different meanings, such as newsletter, quote request and support.
- Exact counts of how many forms users start, one per form.
The following example sends a custom event after a successful response. It uses a distinct event name, so it does not collide with the built-in event:
const form = document.querySelector('#quote-request');
form.addEventListener('submit', async (event) => {
event.preventDefault();
const response = await fetch(form.action, {
method: 'POST',
body: new FormData(form)
});
if (response.ok) {
gtag('event', 'quote_request_success', {
form_id: form.id,
form_destination: form.action
});
}
});If you send custom events and also keep enhanced measurement forms on, you will see both. Either turn off the toggle, or analyze them as separate events. Name your custom event differently from form_start and form_submit so the reports stay clean.
Summary of decision rules
| Situation | Recommendation |
|---|---|
| Simple HTML forms with `id` and `name` | Keep enhanced measurement on |
| Forms with server-side validation | Add a success-based custom event |
| JavaScript-driven forms | Custom event |
| Third-party embedded forms | Custom event from the embed's callback, or on the thank-you page |
| You already track forms in Tag Manager | Turn the toggle off to avoid duplicates |
Exercise
A marketing team marks form_submit as a key event. A week later, the lead count is 40% higher than the number of contacts in the CRM. Name two likely causes, and one fix.
Show answer
Likely causes: (1) formsubmit fires when the browser submits the form, even if the server later rejects it, so failed or invalid submissions are counted; (2) a Tag Manager trigger may also send an event named formsubmit, causing duplicates. Other valid causes are several forms on the site all counting as the same key event. A fix is to send a custom event, with a different name such as leadformsuccess, only after a successful server response or on the thank-you page, mark that as the key event, and turn off the Form interactions toggle or remove the duplicate tag.
Exercise
You test a form in DebugView. The first run shows formstart and formsubmit. On the second run, in the same browser session, you see only form_submit. Is something broken?
Show answer
No. formstart fires once per session, so a second interaction in the same session does not send it again. Start a new session (for example, by waiting for the session to time out or using a fresh browser profile) to see formstart again.