How To Track Hubspot Form Submissions In Ga4

How To Articles

Hi there! In this post, I will discuss my personal encounter and thoughts on monitoring HubSpot form submissions through Google Analytics 4 (GA4). As a marketer who frequently utilizes both HubSpot and GA4, I am aware of the significance of precisely tracking and evaluating the effectiveness of your forms.

Before we dive into the details, let me give you a brief overview of HubSpot and GA4. HubSpot is a leading marketing automation platform that allows you to create and manage your forms, while GA4 is the latest version of Google Analytics that provides advanced tracking and analysis capabilities.

So, let’s get started with the steps to track HubSpot form submissions in GA4:

Step 1: Set up Google Analytics 4

First things first, you need to have Google Analytics 4 set up for your website. If you haven’t done this yet, don’t worry! HubSpot has a seamless integration with GA4, and you can find step-by-step instructions in the HubSpot documentation on how to set it up.

Step 2: Enable Form Tracking in GA4

Once you have GA4 set up, the next step is to enable form tracking. To do this, you’ll need to create a custom event in GA4 that captures the form submissions. Here’s how you can do it:

  1. Login to your GA4 property and go to the Admin section.
  2. Under “Data Streams,” select the appropriate web stream for your website.
  3. Click on “Tagging” and then “Tag Configuration.”
  4. Click on “Create Tag” and select “Event” as the tag type.
  5. Enter a name for your event, for example, “Form Submission.”
  6. Under “Event Parameters,” add the necessary parameters for the form fields you want to track, such as “Form ID” or “Form Name.”
  7. Save the tag configuration.

Step 3: Implement the Tracking Code on Your HubSpot Forms

Now that you have the event set up in GA4, it’s time to implement the tracking code on your HubSpot forms. Here’s how you can do it:

  1. In your HubSpot account, go to “Marketing” and select “Lead Capture” from the dropdown menu.
  2. Select the form you want to track and click on “More” > “Edit Form.”
  3. In the form editor, click on the “Settings” tab.
  4. Scroll down to the “Form Submission Actions” section and click on “Add a new action.”
  5. Select “JavaScript” as the action type.
  6. Paste the GA4 tracking code you generated earlier into the “Action Code” field.
  7. Save the changes to your form.

Step 4: Test and Verify the Tracking

After implementing the tracking code, it’s crucial to test and verify if the form submissions are being tracked correctly. You can do this by filling out the form on your website and checking the events in the GA4 real-time reporting section. Make sure that the custom event you created earlier is firing when the form is submitted.

Remember to give it some time for the data to populate in GA4 before analyzing the results. Once you have sufficient data, you can explore GA4’s powerful reporting capabilities to gain insights into your form conversions, including the number of submissions, conversion rates, and more.


Tracking HubSpot form submissions in GA4 is a valuable practice to understand your form’s performance and make data-driven decisions to optimize your lead capture efforts. By following the steps outlined in this article, you can ensure accurate tracking and gather insightful data to improve your marketing strategy. So, what are you waiting for? Start tracking your form submissions in GA4 today and unlock the full potential of your marketing efforts!