Do you not have form field tracking enabled? No way, you’re going to miss out! But what is form tracking with the help of Google Tag Manager? If you’re a SaaS company, for example, you may inquire about your users’ company roles. Later on, you’d look at hundreds of your users over the course of a year to see if any patterns emerge.
Following we have explained how to set up form tracking by using Google Tag Manager:

Understanding the Tag and Trigger
A tag and a trigger are required for every interaction you want to track. If you want to use Google Analytics 4 to track all form submissions, you’ll need to establish a Google Analytics Tag and a Trigger (rule) for when the tag should fire.

Enabling the Submission Tracking
Form Submission Tracking must be enabled on your forms for this to work, so if you haven’t done so already, do so now before continuing. It should track the relevant data present on the forms.

Capturing Relevant Data from the Forms
Although we cannot submit any personally identifiable information to Google Analytics, such as a person’s name or email address. However, we can send any other information collected through this form.

Inspection of the Data Layer and Triggers Variable
The form will fill in certain variables that are automatic as a result of the trigger.
We can see that our form element, classes, ID, Target, and other variables have been filled with data if we go to the variable menu.

Pulling Out Form Field Value
Now, you should make a new user-defined variable. For your business size, this will be a data Layer variable. And, as the setups dictate, pick our data Layer variable right here.

See also  How to Start a WordPress Blog?

Working with the Google Tag Manager
Let’s take a look at Google Analytics to check if there’s a new Form Submit. If we go to the form category, we can see that Contact Us is now a medium-sized company. This is how; you can analyze the field form.

Segmentation of the Data Layer
You could always add a segment here and then make your segment that looks at the events that only have the label tiny business size, for example, if you decide to segment the data later to only look at one of the other business sizes.

Bottom Line
This is how you can segment the data layer in the form field.