globe boss dublin logo

Track HubSpot forms with google tag manager

track hubspot forms with google tag manager


In the digital marketing landscape, understanding your audience’s interactions with your website is crucial for optimizing conversions. HubSpot is a powerful tool for managing customer relationships and streamlining marketing efforts, and its forms are instrumental in capturing leads. However, to fully leverage the insights available, integrating HubSpot forms with Google Tag Manager (GTM) can greatly enhance your tracking capabilities.

Why Use Google Tag Manager?

Google Tag Manager is a tag management system that allows you to easily update measurement codes and related code fragments on your website or mobile app. With GTM, you can deploy various tracking scripts without directly altering the source code, making it a more efficient solution for marketers.

The Importance of Tracking Forms

Tracking form submissions provides invaluable data. By monitoring these interactions, you can:

  • Assess Lead Quality: Understand which forms generate the most valuable leads.
  • Optimize User Experience: Analyze where users might drop off in the form process.
  • Refine Marketing Strategies: Use data to inform your campaigns based on actual interactions.

Steps to Track HubSpot Forms with Google Tag Manager

Follow these straightforward steps to set up tracking for HubSpot forms using GTM.

Step 1: Set Up Google Tag Manager

If you haven’t already done so, create an account on Google Tag Manager and set up a container for your website. Follow the instructions provided by GTM to integrate it within your site.

Step 2: Create a Form Submission Trigger

  1. Navigate to Triggers: In GTM, click on the “Triggers” menu.
  2. New Trigger: Click the “New” button to create a new trigger.
  3. Choose Trigger Type: Select “Form Submission” as the trigger type.
  4. Configure Trigger:

    • Set it to fire on “All Forms” or specify particular forms using their CSS selector. For HubSpot forms specifically, you can target by the form ID or other identifiers.

  5. Save your trigger.

Step 3: Create a Tag for Google Analytics

  1. Go to Tags: Click on “Tags” in the left-hand menu.
  2. New Tag: Click the “New” button to create a new tag.
  3. Choose Tag Type: Select “Google Analytics: Universal Analytics” (or GA4, depending on your setup).
  4. Choose Track Type: Set the track type to “Event.”
  5. Fill in Event Details:

    • Category: Name it something like “Form Submission.”
    • Action: Use “Submit” as the action.
    • Label: Include specifics, such as the form name or identifier.

  6. Select Trigger: Choose the trigger you created for form submissions.
  7. Save your tag.

Step 4: Test Your Setup

Before publishing your changes, it’s essential to test your setup:

  1. Preview Mode: Activate the GTM preview mode to see how your tags and triggers behave.
  2. Submit the Form: Go to your website and submit the HubSpot form.
  3. Check GTM Debug Panel: Ensure that the event fires appropriately within the debug panel.
  4. Verify in Google Analytics: Once confirmed in GTM, check the real-time reports in your Google Analytics account to verify the event is registering correctly.

Step 5: Publish Changes

Once everything is tested and running smoothly, you can publish your changes in GTM. This will make your tracking live, allowing you to gather data on HubSpot form submissions effectively.

Additional Tips

  • Filter Out Spam: Consider setting up filters in Google Analytics to exclude internal traffic or spam submissions.
  • Use Event Tracking for Multiple Forms: If you have multiple forms, create separate events for better analysis.
  • Regularly Review Analytics: Periodically review your Analytics data to glean insights and adjust marketing strategies accordingly.

By following these steps, you’ll establish a robust tracking system for HubSpot forms using Google Tag Manager, allowing for data-driven decisions that can enhance lead generation and overall marketing performance.