If you are looking to understand how respondents interact with your form, Google Tag Manager (GTM) can help you add and manage analytics and measurement tags on your form to track events in Google Analytics when respondents view your form, click the form fields, review, save, and submit your form.
Pre-requisites
Before you configure to track events in your form,
- Create a Google Analytics account and configure a Google Analytics Property.
- Create an account at tagmanager.google.com or you can use your existing account. A new container is created by default when you create an account.
After completing the pre-requisites, you must follow the steps below to configure and deploy the Google Analytics tags on your form using Google Tag Manager.
The first step is to install Google Tag Manager in your form to deploy Google Analytics tags on your form.
Learn more about the considerations before you install Google Tag Manager.
Zoho Forms does not require you to have experience with code to install Google Tag Manager on your form. It just requires you to select the form events that you wish to track.
To install Google Tag Manager in your form,
- In your Google Tag Manager account, go to Workspace and copy the container ID (GTM-XXXXXX) on the top of the window.
- In your form builder, navigate to the Share tab > Google Tag Manager & Custom Tracking.
Click
Google Tag Manager and click
Configure.

- Paste the Container ID.
- Enter an alternate name for your form in Form Alias to identify it in Google Tag Manager.
- Under Allowed GTM Tags, you can select which GTM Tags are permitted.
- Limited Google Tags restricts you to a specific set, including Google Analytics Settings (legacy), Google tag, Google Analytics 4 Event, Google Ads Conversion Tracking Tag, Conversion Linker, Auto-Event Variable, Constant, Custom Event, URL, Lookup Table.
Under Configure Events, select the form events from the following for which you want to push the event details to Google Tag Manager:
- Form View : You can push an event when a respondent views your form.
- Page View : If you have a multiple-page form, you can push an event when a respondent visits the selected pages. Enter an alias name for the selected pages to identify them in Google Tag Manager.
- Onclick Fields : You can push an event when a respondent clicks the selected fields in your form. Enter an alias name for the selected fields to identify them in Google Tag Manager.
- Review Form : You can push an event when a respondent reviews the form.
- Save Form : You can push an event when a respondent saves your form.
- Submit Form : You can push an event when a respondent submits your form.

-
You can view the list of variables that will be pushed with each event by clicking Variables.
Click Save.
Note : Google Tag Manager is not supported if the form is embedded on your website using the HTML/CSS embed option.
Configuring Google Tag Manager
Google Tag Manager requires 3 main components to capture events:
-
Triggers
Triggers instruct the Google Tag Manager on when to fire a tag based on the events detected in your form such as field clicks or form submissions. When an event matching the trigger definition is detected, the tag associated with that trigger will fire. You must configure Custom Event Triggers in Google Tag Manager to fire the tags associated with them.
Variables
Variables are used to capture additional details related to an event. You can use variables in trigger conditions or to pass the information to the tags.
-
Tags
Tags are code snippets or tracking pixels that collect and send data from your form to Google Analytics. Any tag that you create in Google Tag Manager gets fired in response to the event trigger associated with it.
Supported Tags and Variables
The following tables list the supported Tags and Variables:
| Tags |
ID |
| Google Analytics 4 Configuration |
gaawc |
| Google Analytics 4 Event |
gaawe |
| Variables |
ID |
| Google Analytics Settings (legacy) |
gas |
| Auto-Event Variable |
v |
| Constant |
c |
| Custom Event |
e |
| URL |
u
|
Preview and Publish
Once you have configured and saved all your tags, you can click Preview in the top-right corner of Google Tag Manager to test and debug your configuration.
Compliance and Privacy
Please ensure that you comply with the data privacy laws applicable to you while enabling this tracking by providing privacy notice and obtaining consent from your visitors/users.
Refer to the links below for detailed instructions on completing your GTM setup:
- Refer to the detailed step-by-step instructions about configuring Google Tag Manager.
- If you have configured Google Tag Manager and find issues in tracking, refer to the step-by-step instructions to debug your configuration.
- Refer to the Frequently Asked Questions about Google Tag Manager for further clarification.