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
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.
Related Guides
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
Step-by-Step Setup
Best Practices
Common Issues and Solutions
Frequently Asked Questions
Common questions about this topic
Was this guide helpful?
Your feedback helps us improve our guides