Sub topic 3
Form interactions: form_start and form_submit
This chapter assumes you have a GA4 web data stream with the Google tag installed, enhanced measurement turned on, and access to the GA4 Admin interface. You should also be comfortable with basic HTML forms and JavaScript.
What the form events record
Enhanced measurement sends two form events. form_start fires the first time a visitor interacts with a form on a page. form_submit fires when that form is submitted. Both are controlled by the Form interactions setting in the data stream, so no code is needed when the setting is on.
The events carry parameters that identify the form, such as form_id, form_name, and form_destination (the URL that receives the data). Google changes parameter names from time to time, so confirm the current list in the GA4 Help Center.
form_submit is reliable for forms that load a new page after submission. Forms that send data in the background with JavaScript may not trigger it, so test those forms directly.
Verifying the events
Add debug_mode to your Google tag so events appear in DebugView:
gtag('config', 'G-XXXXXXXXXX', { debug_mode: true });Open DebugView in GA4, submit a test form, and confirm that form_start and then form_submit appear. Tag Assistant preview shows the same events in its event list.
Using the events in reports
Register form_id or form_name as event-scoped custom dimensions so they appear in standard reports. Mark form_submit as a key event if it represents a conversion.
Limitations and pitfalls
Watch for these issues:
- Duplicates: If Google Tag Manager also sends form events, each submission may count twice.
- Background submissions: Forms that do not navigate may miss
form_submit. - Unnamed forms: Forms without an
idornameproduce events you cannot tell apart.
When to replace enhanced measurement
Use a custom event when enhanced measurement misses a form or when you need a clear event name. This example sends a named event on submit:
document.querySelectorAll('form[data-track="signup"]').forEach((form) => {
form.addEventListener('submit', () => {
gtag('event', 'signup_submit', { form_name: form.id });
});
});Exercise
A signup form submits with JavaScript and never reloads the page. Why might form_submit be missing, and what should you do?
Show answer
Enhanced measurement detects form_submit mainly when a page navigates after submission, so a background submit may not trigger it. Add a custom event on the form's submit listener, as shown above, and verify it in DebugView.