Google Analytics and Google Tag Manager
We recommend using Formcrafts' form engagement over GA/GTM. It is more robust and detailed. However, if you still want to use GA/GTM, here's how you can do it.
Direct link vs Embedded form
Tracking form engagement via GA/GTM behaves differently based on whether your form is embedded on your website, or being viewed via a direct form link (example app.formcrafts.com/my-form).
When your form is viewed via a direct link we will add the Google Analytics / Google Tag Manager tracking code to the form page. In this case we record the page view, along with form events. The data stream here is formcrafts.com.
When your form is embedded on your website we will send form events to your website page. This is done to ensure that the form events are tracked in the same session as the parent page. This means that you need to have Google Analytics or Google Tag Manager installed on your website to track form events. The data stream here is your website.
Enabling GA/GTM
You can enable Google Analytics via Settings → General → Enable Google Analytics. Here you have to enter your Google Analytics Tracking ID. This tracking ID is optional, and only used when your form is viewed via a direct link.
You can enable Google Tag Manager via Settings → General → Enable Google Tag Manager. Here you have to enter your Google Tag Manager ID. This tracking ID is optional, and only used when your form is viewed via a direct link.
Events
In all cases Formcrafts collects the following events:
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 when the user views a step / page in the form. Contains two parameters - form_name and form_page_name.
form_submit
: This event is recorded when the user submits the form. Contains one parameter - form_name.