How do I track forms without a confirmation page in Google Tag Manager?

Google Tag Manager is the reference tool for tracking visits to your website and automatically accounting for conversions.

Conversion is any significant action by a prospect that you have identified and want to measure. For example, a conversion could take the form of registering for a webinar, a trial version, or submitting a contact form.

Tags and Triggers in Google Tag Manager

GTM consists of tags and triggers in order to track all types of interactions:

  • A tag (or Tag) is a script that is started when it is called by a trigger,
  • A trigger (or trigger) is a condition in which GTM orders a tag to execute.

For example, if you want to measure all conversions from forms in Google Analytics or Appvizer, you will need to create a Google Analytics tag and an Appvizer tag and then connect them to a trigger for submitting forms.

Avoid, but in some cases, the form is not followed by a redirection to a confirmation page (different URL). This case makes tracking conversions more hard but not impossible and we will see how to do it.

Google Tag Manager “Form Submission” trigger

Reminder: This method should only be used if the form does not have a confirmation page.

Google Tag Manager is able to detect the validation of AJAX forms, the most common technology for web forms.

Enable built-in variables

In “Variables” and then “Configure”, you can enable or disable built-in variables that are useful for tracking visits and conversions to your site.

It is recommended to check all variables related to Pages, Clicks, and Forms. These variables allow you to choose the variables related to the pages, clicks, forms that you want to track.

For example, you can ask GTM to activate a trigger on all forms located on the /contact page (form url contains /contact).

image

Create a trigger related to form validation in Tag Manager

In GTM, a trigger is an action for which you want a tag to be sent. This corresponds, for example, to sending a contact form or creating a trial account.

  • Click on Trigger then Nouveau to create a GTM trigger.
  • Select the Trigger Type: Form Submission (in the User Engagement section). Name it “Submitting all forms.”
GTM-types-de-déclencheurs
  • Only check the “Verify validation” box and select “All forms” as below.
GTM-envoi-de-formulaire-event-listener2
  • Optionally specify on which pages or which path you want GTM to monitor the submission of forms.
  • For example “Page URL” — Contains — /Contact will only trigger conversion capture on pages whose URL contains “/contact”.
  • Don't forget to save and publish your container!

Verify the triggering of a GTM tag

  • To check that the tag is actually triggered on an event, you must use the Google Chrome inspector (Ctrl/Shift/I).
  • Then search for “External Event” then the type of event (visit, conversion) as visible in this image.
gtm-tracking-vérification

In this specific case, a “visit” event triggers an Appvizer tag when the page is visited.