How to Enable Google Tag Manager on Your Form
Enable Google Tag Manager
Edit your form in FormCrafts and go to Settings -> Others and check the option Enable Google Tag Manager. Here you have to enter the Google Tag Manager Id. To find the Id look at the top-right corner of your screen on your Google Tag Manager dashboard.
In GTM you create workflows based on Tags. Each Tag has two aspects: Tag configuration and Triggers.
Tag configuration is unique to your needs, and has to be configured based on your requirements.
FormCrafts gives you certain events which can be used to create Triggers. Let us learn how to configure a form submit trigger.
When configuring a tag click on Triggering. This will take you to Choose a Trigger screen. Click on the Plus icon on the top-right to add a new trigger type.
On the next page you can enter a trigger title. This could be any text. Let's use FormCrafts form submit here. Click on Trigger Configuration. You will now see a Choose trigger type screen. Scroll down and select Custom Event.
On the next screen you have to type an Event Name. Here, type in form_submit.
We are all set. We have now configured a form submit trigger. Your tag should look like this:
Remember how we used form_submit in Event Name above? FormCrafts gives you a few other Event Names that you can use to create other trigger types:
This event is recorded when the user first interacts with the form. Contains one parameter: form_name.
This event is recorded for multi-page forms when the user cycles through form pages. Contains two parameters: form_name and form_page_name.
This event is recorded when the user successfully submits a form. Contains one parameter form_name.
This event is recorded when the user successfully submits a form that has payment integration. This event includes amount and items.