Humblytics
  • Overview
    • Introduction to Humblytics
    • Features Overview
    • Frequently Asked Questions
  • How to Get Started
    • Create a New Account
    • Add Humblytics Analytics to a Custom / Self-Hosted Site
    • How to Add Humblytics Analytics to Your Weblow Site
    • How to Add Humblytics Analytics to Your Framer Site
  • Split Testing Overview
    • How Humblytics Split Testing Works - Under the Hood
    • How to Setup a Split Test
    • Creating A/B Page Variants for Split Testing
    • How to Analyze Split Test Data
    • Using the Humblytics A/B Sample‑Size Calculator
    • Deciding How Long to Run an A/B Test
  • How to Track Custom Form Submissions
    • GoHighLevel
    • Tally.so
      • Framer – How to Track Tally.so Form Submissions
      • Webflow – How to Track Tally.so Form Submissions
      • Custom/Self-Hosted – How to Track Tally.so Form Submissions
    • Typeform
      • Framer – How to Track Typeform Submissions
      • Webflow – How to Track Typeform Submissions
      • Custom/Self-Hosted – How to Track Typeform Submissions
    • Cal.com
      • Webflow – How to Track Cal.com Booking Submissions
      • Framer – How to Track Cal.com Booking Submissions
      • Custom/Self-Hosted – How to Track Cal.com Booking Submissions
    • Hubspot Forms
      • Framer – How to Track HubSpot Form Submissions
      • Custom/Self-Hosted – How to Track HubSpot Form Submissions
      • Webflow – How to Track HubSpot Form Submissions
    • Hubspot Booking Links
      • Framer – How to Track HubSpot Booking Links
      • Webflow – How to Track HubSpot Booking Links
      • Custom/Self-Hosted – How to Track HubSpot Booking Links
  • How to Track Custom Click Events
    • How to Track Click Events on Custom / Self‑Hosted Site
    • How to Add Custom Event Tracking for Webflow Sites
    • How to Add Custom Event Tracking for Framer Sites
  • Understanding Your Data
    • Understanding Site Traffic
    • Understanding Pages Data
    • Understanding Click Data
    • Understanding Forms Data
    • Understanding Heatmap
    • Understanding Funnels
  • Campaign Tracking with UTM Links
  • Frequently Asked Questions
Powered by GitBook
On this page
  • Why track HubSpot forms?
  • Prerequisites
  • Step-by-Step Setup
  • Key Benefits

Was this helpful?

  1. How to Track Custom Form Submissions
  2. Hubspot Forms

Custom/Self-Hosted – How to Track HubSpot Form Submissions

Why track HubSpot forms?

  • Measure lead-gen conversion rates directly inside Humblytics

  • Attribute submissions to campaigns, traffic sources, A/B tests

  • Preserve a cookie-free, privacy-compliant analytics stack—no banners required


Prerequisites

  • Your pages already load the global hmbl.min.js script (36 kb, async).

  • You have the standard HubSpot embed snippet for your portal & form IDs.


Step-by-Step Setup

1 · Embed the HubSpot form

Paste the HubSpot embed wherever the form should render (HTML template, CMS block, component):

htmlCopyEdit<!-- HubSpot form embed -->
<script src="//js.hsforms.net/forms/v2.js"></script>
<script>
hbspt.forms.create({
  region:  "na1",             // confirm your region
  portalId: "YOUR_PORTAL_ID",  // replace with your portal ID
  formId:   "YOUR_FORM_ID"     // replace with your form ID
});
</script>

Publish / deploy your site.


2 · Hook into the submission event

Add the onFormSubmit callback inside the same snippet (or in a new <script> block directly after it):

htmlCopyEdit<script>
hbspt.forms.create({
  region:  "na1",
  portalId:"YOUR_PORTAL_ID",
  formId:  "YOUR_FORM_ID",
  onFormSubmit: function ($form) {
    window.Humblytics.trackFormSubmission("hubspot-lead");  // rename as needed
  }
});
</script>

Use a descriptive label—e.g., "pricing-demo-request"—if you track multiple HubSpot forms.


3 · Verify in Humblytics

  1. Submit the form once on the live site.

  2. Open Dashboard → Conversions / Forms.

  3. Locate hubspot-lead (or your custom label). Data appears within ~30 s.


Key Benefits

Benefit
Detail

Cookie-free

No consent banners or CMP required

Real-time

Submissions populate dashboards instantly

Works on every plan

Lite tier and up support custom events

Zero extras

No GTM, plugins, or additional libraries


Optional Enhancements

  • Funnels: use the label as the final step to see pre-submit drop-off.

  • Experiments: set the label as your success goal to A/B-test form placement, copy, or CTA design.


For advanced use cases—multi‑step HubSpot forms, hidden UTM fields, or offline events—email support@humblytics.com and we’ll guide you through.

PreviousFramer – How to Track HubSpot Form SubmissionsNextWebflow – How to Track HubSpot Form Submissions

Last updated 1 day ago

Was this helpful?