Have you ever wondered why you keep getting emails from a website you visited several months ago? Or why a business keeps sending you newsletters even though you have never purchased anything from them? Both these questions have the same answer: Online form submission.
Most businesses think they are tracking form submissions correctly but in reality, they are leaving too much on the table. This is costing them- lost attribution, misaligned lead scoring, and wasted ad spend.
HubSpot Forms is an online tool that helps businesses capture leads and collect data from website visitors. These forms help you gather the information and store it in your database, where you can track and analyze these submissions.
HubSpot form tracking provides you with necessary insights about your audience, helping you make strategic decisions in favor of expanding your business & enhancing your marketing efforts.
Google Tag Manager or GTM is a digital tool that allows users to easily manage and implement tags on their website without the involvement of a developer.
You can track unique tags on your website and make data-driven decisions, all without prior coding knowledge.
GTM is mostly used by businesses or websites to track website events such as clicks on CTAs, form submissions, etc. You can streamline your data collection, optimize paid ads, and gain valuable insights into user behavior by using HubSpot form tracking with GTM.
Tracking forms isn’t just about counting submissions, it’s about understanding which interactions turn into pipeline and revenue. Many businesses rely on incomplete analytics, where marketing reports conversions but sales sees poor-quality leads. This disconnect happens because your tools track different things and attribution isn’t aligned.
This incomplete form tracking leads to:
In most HubSpot accounts we audit, this gap creates misleading insights and not missing data. This is why understanding what your tracking captures (and what it misses) is critical.
Basic implementations focus on firing a form submission event but stop there. The problem is that modern analytics requires context, not just actions. Without structured data, all submissions look identical, making it impossible to differentiate high-intent leads from low-value conversions.
What a basic setup tracks:
This setup tracks submissions but not lead quality, revenue impact, or true attribution. Here’s what the advanced setups track:
Through this setup, your reports not only show activity but also their impact on your business.
Let’s take a look at how you can implement form tracking in GTM.
To implement your modifications successfully, ensure you have edit permissions in Google Analytics and publishing privileges in Google Tag Manager. Additionally, make sure that you have HubSpot forms integrated into your website.
Prerequisites:
Please make sure Clicks and Forms ‘Variables’ in GMT are on.
If you don’t know how to turn it on, follow these steps:
Go to variables in GTM
Under ‘Built-in Variables’ > click ‘Configure’.
Check all the boxes under ‘clicks’ and ‘forms’
(I.e., click an element, click classes, click ID, form URL, Form text, etc.)
The first step in enabling form tracking in GA4 is to create a custom HTML tag in Google Tag Manager. For that, you need to follow the steps mentioned below:
Go to the tag section
Click New > Tag configuration > select Custom HTML
Copy & paste the following code into the HTML section
|
<script type="text/javascript"> window.addEventListener("message", function(event) { if(event.data.type === 'hsFormCallback' && event.data.eventName === 'onFormSubmitted') { window.dataLayer.push({ 'event': 'hubspot-form-success', 'hs-form-guid': event.data.id }); } }); </script> |
Next, set the trigger to fire on all the pages
Save
This step is also quite easy to perform. Follow these steps:
Go to variables
Navigate to user-defined variables
Click on Add new
Select data-layered variable
Name it forms-hs-form=guid
Variable type: data layers variable
Variable name: hs-form-guid
Save
Creating the trigger for tracking forms in GTM takes nothing more than a few actions:
Add trigger type: Custom event
Add trigger name: Event-HubSpot-form-success
Add event name: HubSpot-form-success
Select action: Trigger fires on all custom events
Perform the following steps:
Create a new tag then select ‘Google Analytics: GA4 Event’
Name the tag: GA4_Event_Form_HS Success
Enter the GA4 measurement ID in the configuration tag field
Create a name for the event ie: Form_submit
Add event parameters (optional)
Navigate to Triggering > Select the trigger we created: Event-hubspot-form-success
Save
Submit all of your Google Tag Manager Updates (blue button at top right).
Once you are done configuring the tag and the trigger to enable form submission tracking in Google Analytics 4, you simply need to set up the conversion. To complete this process, perform the following actions:
Go to your GA4 property
Click on Under ‘admin’ > Click ‘Conversions’
Click ‘New conversion event’
Add your ‘Event Name’ (From step 4): Form_submit
Save
And that's all! You are done with the set-up. While this setup works if you only need visibility, it falls short when you're optimizing your campaigns or allocating budget.
You can enhance Step 4 by adding event parameters like form ID, page path, and lead source, so you can differentiate high-intent conversions from low-value submissions and make data-backed decisions.
Not every business needs advanced tracking but many outgrow the basic setups quickly. The difference in this requirement depends on your traffic volume, campaign complexity, and how much you rely on data for decision-making.
DIY setup works if:
You need advanced tracking if:
Because at scale, incorrect tracking doesn’t just mislead, it wastes your budget. If you’re unsure whether your setup is actually capturing accurate attribution, this is usually the point where businesses opt for a tracking audit, before scaling their campaigns further.
At MarkeStac, we’ve implemented HubSpot + Google Analytics 4 tracking across multiple industries and high-traffic portals, and this is one of the most common gaps we uncover early.
Different businesses use forms differently and that changes how tracking should be structured. A one-size-fits-all setup often fails because it doesn’t reflect how leads actually move through your funnel.
Here are a few examples of what you should track in each scenario:
1. SaaS Demo Funnels
Without this, your demo requests and blog downloads look identical, making it hard to identify high-intent leads.
2. Agency Lead Generation
Otherwise, even a simple ebook download can be counted the same as a qualified inbound lead.
3. B2B High-Ticket Forms
Without accurate tracking, you can’t tell which of the campaigns actually drive high-value deals.
Form tracking should connect marketing activity to revenue outcomes and not just record submissions. However, most setups stop at the action level and never connect data across systems.
Here’s how form tracking should actually connect across your marketing and sales funnel:
Most businesses only track the form submission step. That’s why although the analytics look complete, decisions still feel uncertain because:
By tracking the entire marketing & sales flow your tracking shifts from being “functional” to “strategic.”
Once you move beyond basic tracking, the goal shifts from visibility to decision-making accuracy. Advanced setups structure data so it can be used for attribution, optimization, and forecasting and not just reporting.
Advanced capabilities include:
Better data improves GA4’s predictive insights and ROI analysis. This is where most businesses transition from DIY to expert-led implementations.
Even when tracking is implemented, data inconsistencies are common. GA4 and HubSpot often report different numbers due to differences in attribution models, session definitions, and tracking behavior.
Common problems:
The issue isn’t tracking, it’s how your tracking is structured.
Which brings us to the final decision every team needs to make- basic setup vs. advanced form tracking.
Because the real question isn’t, “Did a form submit?” It’s, “Did this form drive revenue?”.
HubSpot form tracking isn’t just a technical setup, it’s a growth decision. If done right, it could become a revenue driver for your business, by helping you optimize your campaigns, improve your lead quality, and increase your ROI.
However, if it’s set up inefficiently, it creates false confidence. That is why you need digital marketing experts on your side. At MarkeStac, we align GTM form tracking to reflect your reality so you make informed decisions with real-time data insights. Contact us to book a simple audit because better decisions start with better data.