HubSpot is a popular marketing automation platform that allows businesses to create and manage forms for lead generation. However, tracking form submissions in Google Analytics can be a bit tricky. In this article, we will explain how to track HubSpot form submissions in GA4.
Step 1: Create a Goal in Google Analytics
The first step is to create a goal in Google Analytics. A goal represents a specific action that you want your users to take on your website, such as submitting a form. To create a goal, go to the “Admin” section of Google Analytics and select “Goals” under the “Property” column.
Step 2: Create a Custom Goal
In the “Goals” section, click on the “New Goal” button to create a new goal. Select “Custom” as the goal type and give it a name that represents the HubSpot form submission. In the “Description” field, provide a brief explanation of what the goal is for.
Step 3: Define the Goal Conditions
In the “Goal Details” section, you will need to define the conditions that trigger the goal. Since we are tracking HubSpot form submissions, we can use the “Destination” condition. Enter the URL of the thank-you page that users are redirected to after submitting the form. This will ensure that the goal is triggered only when a user successfully submits the form and is redirected to the thank-you page.
Step 4: Save the Goal
Once you have defined the goal conditions, click on the “Save” button to save the goal. Google Analytics will start tracking the goal immediately, and you can see the data in the “Conversions” section of your Google Analytics dashboard.
Step 5: Create a HubSpot Form
The next step is to create a form in HubSpot. Go to the “Forms” section of HubSpot and click on the “Create Form” button. Give your form a name and select the fields that you want to include in the form.
Step 6: Customize the Form
Customize the form by adding your own branding, colors, and fonts. You can also add custom fields to collect additional information from your users.
Step 7: Embed the Form on Your Website
Once you have created the form, you will need to embed it on your website. HubSpot provides a code snippet that you can copy and paste into your website’s HTML code. Make sure to place the code in the correct location on your website so that the form is visible to your users.
Step 8: Test the Form
Before going live with the form, it’s important to test it thoroughly. Submit the form yourself and check if the thank-you page loads correctly. You can also use Google Analytics to verify that the goal is being triggered when you submit the form.
Conclusion
Tracking HubSpot form submissions in GA4 requires a bit of setup, but it’s well worth the effort. By following these steps, you can gain valuable insights into your lead generation efforts and optimize your forms for better conversion rates.