Tracking form submissions on your website with Google Analytics 4 (GA4) and Google Tag Manager (GTM).

Article - 899973121

16:00, 27 October 2025

This document provides instructions on tracking form submissions from a Webdadi website using Google Tag Manager and Google Analytics 4.

  • Two tracking options are available: a straightforward method using the form_submit event and a more advanced method using custom submission success message selectors.

  • Setting up Google Tag Manager and Google Analytics 4 accounts is necessary before proceeding with either tracking method.

  • The form_submit event method involves creating a tag and trigger in Google Tag Manager to track form submissions with the Form_Context parameter.

  • The custom submission success method requires creating specific event names and CSS selectors for different form types to track successful submissions.

  • It may take up to 24 hours for custom events to appear in GA4, but real-time reports can be used for immediate testing.

Before proceeding please ensure:

Option 1 - How to use the form_submit event in Google Tag Manager (GTM)

On a successful form submission on your website, your site will trigger a form_submit event with the custom event parameter of Form_Context (case sensitive). This parameter gives some extra detail as to the type of form that was submitted to help differentiate between forms if you have multiple forms on a page for example.

The instructions below assume that you have set up a GA4 Google Analytics account and have added the data-stream measurement id to the Configuration section of VIA. This code will be in the form of G-********** or similar.

How to set up tracking for the form_submit event

Option 2 - How to set up tracking for custom submission success message selectors

Keywords: How to setup Google Tracking, GTM Tracking, Google Tag Manager Tracking, Form Tracking, Tracking Form Submissions, Website Form Tracking, Website Form Analytics,



Article ID: 899973121
Link: https://webdadi.atlassian.net/wiki/spaces/PKB/pages/899973121