Form Submission Setup

What is form submission?

Some solutions are very general convergent actions on the website. It can be used for registering for an event, or submitting a contact request. These conversions are the usual key goal of social media and other digital marketing campaigns.

Tracking form submission is a very crucial part of any digital measuring strategy. If your form has a unique feature of the Thank you page, then Google analytics could be in for you to evaluate form completions. The situation gets complicated if the submission of the form is done on the unique URL or if it is submitted to the external side which is unable for you to track. In

such types of cases, it becomes necessary for you to track the actual submission of the form. Google tag manager has the ability to recognize form submissions and trigger analytics tags as a result.

How to track submission of standard forms:

1. Make a form trigger:

First, you have to choose the ‘Form submission’ type.

Then you have to enable ‘Wait for tags’ and ‘Check validation’ if you want. ‘Wait for tags’ helps the tracking tags to have sufficient time to fire before the form submission forwards the user to the next page. The ‘Check validation’ will restrict your tags to fire on invalid submit events. Then enable the trigger on the page which have the form. If you would like to enable the trigger on all pages, you can use {{Page path}}. Then choose ‘All forms’ under the option ‘This trigger fires on’. You can select some forms and put a condition based on the ‘Form ID’ or another identifying attribute. If you are using from ID in some forms then you need to enable the built-in {{Form ID}} variable.

2. Then make a Google Analytics tag and turn it to fire on that form trigger that you made in the previous step. If you are using the built-in form ID variable to recognize the form. Then you have to make the changes in the ‘Tag Type’ which are in ‘Category’ to ‘Forms’, ‘Action’ to ‘Successful Submission’, ‘Label’ to ‘ {{Form ID}}.

3. Now check your configuration with the google manager’s preview mode. Then you will observe a ‘gtm. form submit event after you submit the form. Your Google analytics tag should fire on this event. If you are sent to another page by the form then you may have less than a second to see the Form submit before the page reloads.

4. Once you set everything as you needed, then you can issue your updated google tag manager container.

You should remember this thing the form taker will only function for forms that have standard ‘Submit’ browser event. If it has any custom code that restraint the standard ‘Submit’ from happening, then the Google tag manager built-in trigger will not be able to find out the interaction.