Google Analytics (GA4) Fluent Forms Event Tracking with Google Tag Manager


Google Analytics 4 (GA4) Event Tracking Fluent Forms via Google Tag Manager

Fluent Forms supports event tracking with Google Analytics 4 (GA4) through Google Tag Manager (GTM). With this setup, form submissions can be tracked as events in your GA4 property using the GTM container. To set up event tracking with GTM and GA4, you’ll need to have Fluent Forms and GTM installed on your website, create a form, and then configure the GA4 event tracking in GTM using a custom tag. You’ll also need to have a GA4 property and a GTM container with the GA4 tracking code set up for your website.

To Track Fluent Forms submissions using Google Tag Manager (GTM), you’ll need to create a custom tag that fires on form submissions. This tag can send information about the form submissions, such as the form ID, to your GTM data layer. From there, you can use the information in your GTM triggers and variables to track the submissions as events in Google Analytics, or pass the data to other marketing and analytics tools. To set this up, you’ll need to have both Fluent Forms and GTM installed on your website, as well as a basic understanding of how GTM works.

To push Fluent Forms submissions data to the data layer using JavaScript, you’ll need to write a custom script that retrieves the information you want to track, such as the form ID, submission date, and user inputs, and pushes it to the data layer. The data layer is a global object in the browser where you can store information that you want to pass between your website and GTM. The script should be triggered when a form is successfully submitted.

Here’s an example of what a basic script could look like:

document.addEventListener('fluentform_after_submission', function (event) {
  if (event.detail.formId === 'form-id') {
    window.dataLayer = window.dataLayer || [];
      'event': 'fluentform_submission',
      'formId': event.detail.formId,
      'submissionDate': new Date().toISOString(),
      'userInputs': event.detail.fields

Note that this is just one example, and you may need to modify the script based on your specific requirements and the data available in the Fluent Forms event object. To use the script, you’ll need to add it to your website’s HTML or JavaScript file and make sure it runs after both Fluent Forms and GTM are loaded.

Disclaimer: Google tag manager belongs to Google property 

For Contact:

I am available for Hire on Freelancer:

I am available for Hire on Upwork:

I am available for Hire on Peopleperhour:

I am available for Hire on Guru:

Leave a Reply

Your email address will not be published. Required fields are marked *