Step-2: Click on the ‘Admin’ link in the left-hand side reporting menu:
Step-3: Click on ‘Data Streams’ under the ‘Property’ column:
Step-4: Click on the web data stream for which you want to set up form tracking in GA4:
Step-5: Click on the gear button under ‘Enhanced measurement’ to access the settings menu:
Step-6: Make sure that the toggle button next to ‘Form Interactions’ is turned off so that it does not interfere with our form tracking:
Through the GA4 form interactions tracking feature, you can automatically track form submissions in your GA4 property without any additional code or tagging.
GA4 track form submissions even when a user does not submit the form. In the case of our website, GA4 was reporting thousands of form submissions a day which is not possible.
However, this situation is unlikely to remain the same in the near future. But for now, we keep the ‘Form Interactions’ setting disabled.
Step-7: Navigate to the form embedded on your website that you want to track. Fill out the form and submit it to see how it works.
Step-8: Ensure that a user sees the ‘thank you’ page but only when the form is successfully completed. If that is not the case, then ask your web developer to fix this issue.
Let us suppose on the successful form submission, you are not redirected to a ‘thank you’ page.
Instead, you see a confirmation message on the same page where you earlier saw the form. If that is the case, then most likely, your form is built with Ajax.
By default, GA4 and GTM can not track forms built with Ajax.
You would need to create Ajax listener (a bunch of JavaScript code) and then use it in a custom HTML tag of GTM, which is quite technical in nature.
Most form builders (like ‘Gravity Forms’) provide a feature to enable or disable Ajax submission easily:
If this feature is unavailable to you, ask your web developer to convert the Ajax form into a standard form that redirects a user to the ‘thank you’ page on successful form submission.
Step-9: Note down the URL of the ‘thank you’ page. You will need this URL later.
We will now create a new tag that fires the ‘generate_lead’ event on the ‘thank you’ page.
We are using ‘generate_lead’ event because this is the GA4 recommended event for form submission.
Step-10: Login to your Google Tag Manager account and then click on the ‘Triggers’ menu:
Step-11: Click on the ‘New’ button to create a new trigger:
Step-12: Name your trigger ‘Form Submission Thank You Page’:
Step-13: Click on the button ‘Choose a trigger type to begin setup…’:
Step-14: Click on ‘Page View’:
Step-15: Click on the radio button ’Some Page Views’:
Step-16: Select ‘Page URL’ and ‘Starts with’ from the drop-down menus:
Step-17: Enter the URL of the ‘thank you’ page you noted earlier and then click on the ‘Save’ button:
You should now see your new trigger listed under the ‘Triggers’ section:
Step-18: Click on the ‘Tags’ menu:
Step-19: Click on the ‘New’ button to create a new tag:
Step-20: Name your new tag, select ‘Google Analytics: GA4 Event’ as the tag type, select your GA4 configuration tag (from the drop-down menu) and set the event name to ‘generate_lead’:
Step-21: Scroll down and then click on ‘Choose a trigger to make this tag fire…’ button:
Step-22: Click on the trigger ‘Form Submission Thank you page’:
Step-23: Click on the ‘Save’ button to save your new tag:
How to test GA4 Form Tracking?
Now we will test whether the ‘generate_lead’ event fire on successful form submission.
Follow the steps below:
Step-1: Click on the ‘Preview’ button in your GTM account:
You should now be automatically redirected to the tag assistant window.
Step-2: Enter the URL of the web page which contains the form you want to track, and then click on the ‘connect’ button:
You should now be automatically redirected to the web page which contains the form you want to track:
Step-3: Fill out the form and then click on the ‘Submit’ button.
You should now be able to see the ‘thank you’ page.
Step-4: Navigate back to the tag assistant window and then click on the ‘continue’ button:
You should now be able to see your tag ‘Send generate_lead event to GA4 Test property’ fired under the ‘Tags Fired’ section:
Step-5: Navigate to the ‘Debug View’ report in your GA4 admin:
Step-6: Set your debug device to ‘Google’ and look for the GA4 event ‘generate_lead’:
Step-7: Click on the ‘generate_lead’ event and then click on the ‘page_location’ drop-down menu:
You should now be able to see the URL of your ‘thank you’ page.
This testing confirms that the ‘generate_lead’ event is firing on the ‘thank you’ page (aka on form submission).
Step-8: Navigate back to the tag assistant window of your GTM account and then click on the ‘cross’ button at the top left:
Step-9: Click on the ‘Stop debugging’ button:
Step-10: Navigate back to your GTM account and then click on the ‘Submit’ button:
Step-11: Give your version a name and then click on the ‘Publish’ button to publish your GTM container:
How to see the form tracking data in GA4?
There are two ways you can see the form tracking data in GA4:
Through the ‘Events’report
By creating an exploration report.
Finding form interactions data through the ‘Events’ report
Follow the steps below:
Step-1: Once you have set up form tracking in your GA4 property, wait for at least 24 hrs to gather form tracking data in your reports.
Step-2: Navigate to the ‘Events’ report (under ‘admin’):
You should now be able to see the ‘generate_lead’ event listed under ‘Existing events’:
Step-3: Mark the ‘generate_lead’ event as a conversion by turning on the toggle button next to it:
Finding form tracking data by creating an exploration report
Follow the steps below:
Step-1: Click on the ‘Explore’ link from the left-hand side navigation bar in your GA4 property:
Step-10: Search and select the following metrics one by one in the exact order as mentioned below and then click on the ‘Import‘ button:
event count
event count per user
You should now see all the imported metrics listed under the METRICS section:
Step-11: Double-click on the dimension ‘Event Name’ so that it is automatically added to the Rows section:
Step-12: Double-click on the dimension ‘First user source / medium’ so that it is automatically added to the Rows section:
Note: When you double-click on the dimensions, you won’t see any change to the canvas on the right. But the dimension has been added to the canvas. When you start adding metrics to the canvas, you will see the dimension(s) added to the canvas.
Step-13: Double-click on the following metrics one by one, starting from the very top, so that they are automatically added to the blank canvas on the right:
event count
event count per user
Step-14: Scroll all the way down under the ‘Tab Settings’ column until you see the section called ‘FILTERS’:
Step-15: Click on ‘Drop or select dimension or metric’:
Step-16: Click on the ‘Event Name’ dimension from the drop-down menu:
Step-17: Click on the ‘Select match type’ drop-down menu:
Step-18: Click on ‘Exactly Matches’:
Step-19: Click on the ‘enter expression’ text box:
Step-20: Type ‘generate_lead’ in the text box and then click on the first search result ‘generate_lead‘:
Step-21: Click on the ‘Apply’ button to apply your filter to the canvas on the right:
You should now see a screen like the one below:
That’s how you can see the form tracking data in GA4 via the exploration report.
Tracking forms via the GA4 user interface
You can also track forms via the GA4 user interface without using the Google Tag Manager.
Follow the steps below:
Step-1: Navigate to ‘Events’ report (under ‘admin’) in your GA4 property:
Step-2: Click on the ‘Create Event’ button:
Step-3: Click on the web data stream for which you want to set up the form tracking:
Step-4: Click on the ‘Create’ button to create a new event:
Step-5: Type ‘generate_lead’ in the text box below ‘Custom Event Name’:
Step-6: Set the matching conditions to Page Locationstarts with <the URL of your thank you page> and then click on the ‘Create’ button:
You should now see your new custom event listed:
Step-7: Click on the cross button:
Step-8: Once you have set up form tracking in your GA4 property, wait for at least 24 hrs to gather form tracking data in your reports.
Step-9: Navigate to the ‘Events’ report (under ‘admin’):
You should now be able to see the ‘generate_lead’ event listed under ‘Existing events’:
Step-10: Mark the ‘generate_lead’ event as a conversion by turning on the toggle button next to it:
Other articles related to GA4 (Google Analytics 4)
"How to use Digital Analytics to generate floods of new Sales and Customers without spending years figuring everything out on your own."
Here’s what we’re going to cover in this training…
#1 Why digital analytics is the key to online business success.
#2 The number 1 reason why most marketers are not able to scale their advertising and maximize sales.
#3 Why Google and Facebook ads don’t work for most businesses & how to make them work.
#4 Why you won’t get any competitive advantage in the marketplace just by knowing Google Analytics.
#5 The number 1 reason why conversion optimization is not working for your business.
#6 How to advertise on any marketing platform for FREE with an unlimited budget.
#7 How to learn and master digital analytics and conversion optimization in record time.
My best selling books on Digital Analytics and Conversion Optimization
Maths and Stats for Web Analytics and Conversion Optimization
This expert guide will teach you how to leverage the knowledge of maths and statistics in order to accurately interpret data and take actions, which can quickly improve the bottom-line of your online business.
Master the Essentials of Email Marketing Analytics
This book focuses solely on the ‘analytics’ that power your email marketing optimization program and will help you dramatically reduce your cost per acquisition and increase marketing ROI by tracking the performance of the various KPIs and metrics used for email marketing.
Attribution Modelling in Google Analytics and BeyondSECOND EDITION OUT NOW!
Attribution modelling is the process of determining the most effective marketing channels for investment. This book has been written to help you implement attribution modelling. It will teach you how to leverage the knowledge of attribution modelling in order to allocate marketing budget and understand buying behaviour.
Attribution Modelling in Google Ads and Facebook
This book has been written to help you implement attribution modelling in Google Ads (Google AdWords) and Facebook. It will teach you, how to leverage the knowledge of attribution modelling in order to understand the customer purchasing journey and determine the most effective marketing channels for investment.
About the Author
Himanshu Sharma
Founder, OptimizeSmart.com
Over 15 years of experience in digital analytics and marketing
Author of four best-selling books on digital analytics and conversion optimization
Nominated for Digital Analytics Association Awards for Excellence
Runs one of the most popular blogs in the world on digital analytics
Consultant to countless small and big businesses over the decade
Learn and Master Google Analytics 4 (GA4) - 126 pages ebook
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.