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
Able supports tracking of Leads captured using HubSpot Forms.
Tracking HubSpot leads allows to supplement HubSpot built-in reports and send purchase conversion to Google Analytics, Google Ads and Facebook 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 converted into paying customers.
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.
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
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.