Google Tag Manager
intermediate
8 min read3 steps724 views

How to Track Form Submissions with GTM

Three methods: GTM Form Submission trigger (enable Form Variables, create trigger with Form ID or Form Action filter — works for standard HTML forms), custom Data Layer event (your form handler pushes dataLayer.push({event: 'form_submit'}) on success — most reliable), or thank-you page trigger (fire

Event Trackingtrack form submissions gtm

Quick Summary

Three methods: GTM Form Submission trigger (enable Form Variables, create trigger with Form ID or Form Action filter — works for standard HTML forms), custom Data Layer event (your form handler pushes dataLayer.push({event: 'form_submit'}) on success — most reliable), or thank-you page trigger (fire tag when URL contains '/thank-you'). The Data Layer method is best because it only fires on successful submissions, not failed validations. Create GA4 Event and platform conversion tags triggered by the form event.

Overview

Three methods: GTM Form Submission trigger (enable Form Variables, create trigger with Form ID or Form Action filter — works for standard HTML forms), custom Data Layer event (your form handler pushes dataLayer.push({event: 'form_submit'}) on success — most reliable), or thank-you page trigger (fire tag when URL contains '/thank-you'). The Data Layer method is best because it only fires on successful submissions, not failed validations. Create GA4 Event and platform conversion tags triggered by the form event.

See our complete guide library for detailed coverage of setup, tracking, analysis, and optimisation across all platforms.

Process Flow

Interactive diagram — drag to pan, scroll to zoom

Step-by-Step Guide

Follow these 3 steps to complete this guide

1

Step-by-Step Setup

Access your account or platform. Navigate to the relevant section. Complete each configuration step, testing along the way. Verify your setup using built-in diagnostic tools before relying on the data for decisions.
2

Best Practices

Start with recommended defaults and optimise based on data. Review performance regularly. Make incremental changes. Document your configuration.
3

Common Issues and Solutions

Check the platform's help centre for troubleshooting. Allow 24-48 hours for data to populate. Ensure correct permissions. Verify all integrations are active and properly configured.

Frequently Asked Questions

Common questions about this topic

Was this guide helpful?

Your feedback helps us improve our guides