Integrating Google Analytics GA4 with Google Tag Manager for MakeForms Event Tracking

This guide will walk you through the process of integrating Google Analytics GA4 with Google Tag Manager (GTM) to track custom events. Before beginning, ensure you have your Google Analytics Measurement ID and your Google Tag Manager Container ID ready.

Steps

1. Set Up a New Tag in GTM

  • Navigate to Google Tag Manager: Log in to your GTM account.
  • Create a New Tag: Click on ‘New Tag’.
  • Configure the Tag:
    • Tag Type: Select ‘Google Analytics: GA4 Event’.
    • Measurement ID: Enter your Google Analytics Measurement ID.
    • Event Name: Enter {{Event}} to dynamically capture event names.
  • Save Your Tag: Click ‘Save’ to store your tag configuration.

Custom Tag in GTM for MakeForms

2. Create a New Trigger in GTM

  • Access Triggers: Go to the ‘Triggers’ section in GTM.
  • Add a New Trigger: Select ‘New’.
  • Trigger Configuration:
    • Trigger Type: Choose ‘Custom Event’.
    • Event Name: Enter ^makeforms- and select the ‘Use regex matching’ option. This setup ensures the trigger listens for any event that starts with “makeforms-“.
    • Trigger Conditions: Set to fire on ‘All Custom Events’.
  • Save Your Trigger: Click ‘Save’.

3. Publish the GTM Container

  • Publish Changes: In GTM, click on ‘Submit’ to publish the latest changes to your container. This action activates your new tag and trigger.

Final Integration Steps

Enabling Event Data Capture

  • Edit Your Source: In your web application or form source, navigate to the ‘Form Page – Analytics & Pixel Tracking’ section.
  • Enter GTM Container ID: Input your Google Tag Manager Container ID here and save the changes.

With these settings, you are now prepared to capture and view real-time event data from your forms in Google Analytics GA4. This integration allows for detailed tracking and analysis of user interactions with your forms.