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.

Find Google Tag Manager ID
Find Google Tag Manager ID
Enable Google Tag Manager in FormCrafts
Enable Google Tag Manager in FormCrafts

Configure Triggers

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.

Google Tag Manager - Choose a Trigger
Google Tag Manager - Choose a Trigger

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.

Google Tag Manager - Choose custom trigger type
Google Tag Manager - Choose custom trigger type

On the next screen you have to type an Event Name. Here, type in form_submit.

Google Tag Manager - Choose event configuration
Google Tag Manager - Choose event configuration

We are all set. We have now configured a form submit trigger. Your tag should look like this:

Google Tag Manager - Custom form submit trigger
Google Tag Manager - Custom form submit trigger

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:

  • form_begin
    This event is recorded when the user first interacts with the form. Contains one parameter: form_name.
  • form_page_view
    This event is recorded for multi-page forms when the user cycles through form pages. Contains two parameters: form_name and form_page_name.
  • form_submit
    This event is recorded when the user successfully submits a form. Contains one parameter form_name.
  • form_purchase
    This event is recorded when the user successfully submits a form that has payment integration. This event includes amount and items.