Docs / Integration Tutorials /  

HubSpot

HubSpot Conversion Tracking And Attribution – How To Set Up

Track leads captured using HubSpot Forms and attribute future conversions to them. Import HubSpot Deal conversions.

Contents

Track HubSpot Forms (Updated Forms Editor)

Tracking HubSpot leads with Able supplements HubSpot's built-in reports and enables you to send purchase conversion to Google AnalyticsGoogle Ads and Facebook (Meta) Ads, allowing to use their native reports to report on lead and purchase conversions, as well as to drastically improve audience optimization by letting ad platforms know what leads have been qualified and converted into paying customers.

Able CDP connects ad clicks, form submissions, and downstream revenue into a single attribution path. It captures click identifiers (such as GCLID and FBCLID) alongside the lead data. This enables server-side reporting of lead and purchase conversions to Google Ads, Meta, and other advertising platforms using deterministic identifiers without relying on enhanced conversions and sharing unnecessary PII. As leads progress and generate revenue, even outside HubSpot, Able matches those outcomes back to the original ad click and form submission, providing accurate source attribution and stronger optimization signals across the full customer lifecycle.

Note: instructions in this section are only relevant to the forms created using the updated editor. If you need to track an older form, please refer to "Track HubSpot Forms (Legacy)" section of this page.

Enable HubSpot Form Tracking

In Able Dashboard, press "Add Service Integration" and select "HubSpot".

If you’re using HubSpot’s updated forms editor, once you enable HubSpot form tracking using switch below and install the updated tracking code by pressing "Generate" button on the "Get Code" page, Able will automatically recognize your installed HubSpot form widgets and track form submission events.

Track HubSpot Deal Conversions

Able receives HubSpot Deal conversions, attributing them to source leads and website visitors.

Connect your HubSpot instance to Able.

In Able Dashboard, press "Add Service Integration" and select "HubSpot".

Select the stages of Deal conversions that should be processed.

In Able Dashboard, press "Add Service Integration" and select "HubSpot".

Able maps HubSpot stage transitions to conversion events accordingly to the configured settings. For example:

  • Event Type – Purchase
  • Pipeline – Sales Pipeline
  • Stage – Closed Won

Track HubSpot Forms (Legacy)

Able supports tracking of Leads captured using HubSpot Forms legacy editor.

Note: if your form is created using the updated forms editor, please disregard this section and refer to "Track HubSpot Forms (Updated Forms Editor)" instead.

Edit HubSpot Form Embed Code

To start tracking form submissions, HubSpot form embed code should be extended. For example, replace:

<script>
hbspt.forms.create({
  portalId: "123456",
  formId: "4afa4b6f-42c5-40b0-ae4c-0d10fc2a011a"
});
</script>

with

<script>
hbspt.forms.create({
  portalId: "123456",
  formId: "4afa4b6f-42c5-40b0-ae4c-0d10fc2a011a",
  onFormSubmit: function($form) {
   uipe('track', 'Lead', {
    keys: {
     email: $form.find('input[name="email"]').val(),
    },
    lead: {
          firstName: $form.find('input[name="firstname"]').val(),
     lastName: $form.find('input[name="lastname"]').val(),
     company: $form.find('input[name="company"]').val(),
    }
   })
  }
});
</script>

The page with a form should have the Able CDP tracking code, available in the 'Get Code' section of the Able Dashboard, installed as well.

Watch our video tutorial explaining how to track Hubspot Form Submissions and send them to Google Analytics using Google Global Site Tag, as well as to Able.

Frequently Asked Questions and Troubleshooting

How Able CDP tracks HubSpot conversions?

The setup involves two main components that work together to create end-to-end conversion attribution.

First, you'll modify your HubSpot Form embed codes to capture lead data and send it to Able CDP when forms are submitted. (Able CDP can also track other types of forms, such as forms in your CMS or third-party form widgets like Calendly.)

Second, you'll connect your HubSpot account to automatically import Deal conversions as they progress through your sales pipeline. This ensures that HubSpot conversions are tracked entirely server-side.

Able CDP then matches these purchase and qualification conversions back to the original leads and website visitors, creating complete attribution paths that can be shared with your advertising platforms for optimization.


HubSpot conversion tracking is commonly used with


This page has been written by the Able CDP Customer Success Team, formed of digital marketing practitioners and seasoned marketing data experts.
If you have any questions or suggestions, please contact us using the contact form.