Track HubSpot Web Forms

HubSpot is an all-in-one marketing platform that includes form builders for lead generation, registration, and contact forms. WhatConverts can track HubSpot form submissions by configuring your forms to use raw HTML mode and setting up manual tracking, which captures lead data and attributes each submission to the marketing source that drove it.

Note: The WhatConverts tracking script must be installed on your website before you can track forms.

Set Up HubSpot Form Tracking

To track HubSpot form submissions with WhatConverts, you'll need to configure your HubSpot form and then set up tracking in WhatConverts. HubSpot offers two ways to get your form as raw HTML, using the Legacy Form Editor or the current form builder's developer code.

Configure Your HubSpot Form (Legacy)

  1. In your HubSpot account, navigate to Marketing, then Forms.
  2. In the upper right, click “Create form”.
  3. Select “Legacy Form Editor” and click “Next”.
  4. Build your form as needed, then click “Style & preview” at the top.
  5. In the top left, toggle on “Set as raw HTML form”.

Configure Your HubSpot Form (New Builder)

  1. In your HubSpot account, navigate to Marketing, then Forms.
  2. Hover over a form, and click “Edit”.
  3. In the top right, click “Review and update”.
  4. In the right panel, at the bottom, click “Update”.
  5. In the dialog box, click “Get embed code”.
  6. Select the tab for “Developer Code (Advanced)”.
  7. Check the box saying you understand the risks and then copy the code from the box.

Notes: This will only apply for Standard (Regular) HubSpot forms (not pop-up Forms).

You can learn more about these methods through HubSpot’s documentation here: Create forms (Legacy Builder) and here Create forms (New Builder)

Step 2: Set Up Tracking in WhatConverts

  1. Log in to the WhatConverts profile with which you want to track your HubSpot Form.
  2. Select "Tracking" from the top menu. Select "Forms" and click "Web Forms".
  3. Track HubSpot Web Forms

  4. Click the "Add Web Form" button, and select "Manual Setup".
  5. Name your form, select Attribute Type "Class" and enter Attribute Value as hs-form.
  6. Click the "Finish" button.
  7. Track HubSpot Web Forms

Your HubSpot form is now being tracked. WhatConverts will capture all submissions from this form and create leads with full attribution data.

Test Your HubSpot Form Tracking

After setting up tracking, verify that form submissions are being captured correctly:

  1. Go to the page where your HubSpot form is located.
  2. Fill out the form with test information and submit it.
  3. Return to your WhatConverts profile and view your form leads.
  4. Find the test form submission and check its data.

If your test lead appears correctly, your HubSpot form tracking is working properly.

Related Topics

Get a FREE presentation of WhatConverts

One of our marketing experts will give you a full presentation of how WhatConverts can help you grow your business.

Schedule a Demo
ready to get marketing clarity?

Grow your business with WhatConverts

14-day free trial Easy setup Dedicated support
G2 Best Results Summer 2026 Badge
G2 Best Relationship Summer 2026 Badge
G2 Best Usability Summer 2026 Badge
G2 Most Implementable Summer 2026 Badge
G2 Momentum Leader Summer 2026 Badge