HubSpot Integration
Connect HubSpot to AnyTrack on any plan. AnyTrack attributes HubSpot forms, contacts, meetings, and deals to their original traffic source.
What is the HubSpot Integration?
Section titled “What is the HubSpot Integration?”The HubSpot integration connects your HubSpot CRM with AnyTrack’s attribution platform. This native integration automatically tracks form submissions, contact creation, meeting bookings, and deal progression without requiring third-party tools like Zapier.
Key capabilities:
- Track HubSpot form submissions as conversion events
- Monitor contact lifecycle stages and deal progression
- Attribute conversions to specific ad campaigns and traffic sources
- Pass first-party data between platforms for improved targeting
Why Use This Integration?
Section titled “Why Use This Integration?”Improve Attribution Accuracy Connect customer actions in HubSpot directly to your advertising campaigns. See which ads, keywords, and channels drive actual leads and customers.
Simplify Data Flow Eliminate manual data exports and imports. Customer interactions flow automatically from HubSpot to your advertising platforms for better targeting and optimization.
Optimize Marketing Spend Make data-driven decisions about budget allocation by understanding which campaigns generate the highest-value leads and customers.
How to Set Up the Integration
Section titled “How to Set Up the Integration”Step 1: Install AnyTrack Tracking
Section titled “Step 1: Install AnyTrack Tracking”Before connecting HubSpot, install the AnyTrack tracking tag (a JavaScript code snippet that collects visitor data) on your website.
- Copy your tracking tag from the AnyTrack dashboard
- Add the tracking tag to HubSpot pages
- In HubSpot, go to Settings > Tools > Content > Pages
- Paste the AnyTrack tracking tag in the header section
- Click Save
Step 2: Connect HubSpot to AnyTrack
Section titled “Step 2: Connect HubSpot to AnyTrack”- Navigate to the Integration catalog in your AnyTrack dashboard

- Search for HubSpot and click the HubSpot card

- Click Install Integration

- Select your AnyTrack property (the website/domain you’re tracking) and click Next

- Click Connect HubSpot to authenticate your account

- Select your HubSpot account and click Choose Account

- Review the permissions AnyTrack needs and click Connect App

- Click Save to complete the connection
Step 3: Add the AnyTrack Click ID to Your Forms
Section titled “Step 3: Add the AnyTrack Click ID to Your Forms”AnyTrack recommends the Click ID but does not require it. With the Click ID, AnyTrack matches the form submission to the exact visit and ad click. Without the Click ID, AnyTrack uses the email address to match the contact to the visit.
When a form with the AnyTrack Click ID field loads, the Tracking Tag fills in the Click ID automatically. The HubSpot editor that built the form decides who adds the field:
| HubSpot form editor | Who adds the field | What you do |
|---|---|---|
| Legacy form editor (forms v3) | AnyTrack adds the field to your existing forms through the HubSpot API | Nothing |
| Updated form editor (forms v4) | You add the field. The HubSpot API does not support these forms yet | Add the AnyTrack Click ID as a hidden field (steps below) |
To add the AnyTrack Click ID to a form built in the updated form editor:
- In HubSpot, open the form in the form editor.

- Add the AnyTrack Click ID property to the form.
- Enable Hidden field, so visitors do not see the field.

- Click Review and update to publish the change.

Step 4: Map Your HubSpot Events
Section titled “Step 4: Map Your HubSpot Events”The HubSpot Integration Events section is on the Integration tab of your HubSpot integration. Each row maps one HubSpot event to one AnyTrack event. AnyTrack uses the name of the AnyTrack event in your reports.
The first three rows are always visible:
- Form Submitted: the Tracking Tag sends a
FormSubmitevent when a visitor submits a HubSpot form. You cannot change this row. - Contact created: by default, AnyTrack tracks each new contact as
Lead. - Meeting booked: by default, AnyTrack tracks each booked meeting as
Schedule.
The other events are in groups:
- Contacts: lead status: one row for each lead status of your HubSpot account.
- Contacts: lifecycle stage: one row for each lifecycle stage of your HubSpot account.
- Deals (standards): a deal associated with a contact, and the stages of the standard HubSpot pipeline, from Appointment scheduled to Won.
- Deals: [pipeline name]: the other deal stages of your HubSpot account, with one group for each pipeline.
The default AnyTrack events are in What Events Are Tracked?.
To map a HubSpot event:
- Open the group of the event.
- Select the checkbox of the event. To stop tracking an event, clear its checkbox.
- Click the event field. Select a standard event from the list, or enter a custom event name.
- Click Save.
Won deals: by default, AnyTrack tracks Deal stage: Won as DealPurchase, a custom event. To count each won deal as a sale, map Deal stage: Won to Purchase.
If you do not see an event in the list, click Sync with HubSpot. AnyTrack reads the lead statuses, lifecycle stages, and deal pipelines from your HubSpot account, and updates the list. After a change to your HubSpot statuses, stages, or pipelines, click Sync with HubSpot.
Then map the AnyTrack events to the conversion events of each ad platform in Tracking Pixels. See Event Mapping.
Step 5: Test the Integration
Section titled “Step 5: Test the Integration”- Open the page with your HubSpot form in a private browser window.
- Submit the form.
- In AnyTrack, open your HubSpot integration.
- Click the Events Log tab. The new contact shows as a
Leadevent. - In HubSpot, create a deal for the contact, with a deal amount.
- In the Events Log tab, click Refresh. The
DealNewevent shows, with the deal amount as its value.
To read the status of each event, see Integration Event Log.
What Events Are Tracked?
Section titled “What Events Are Tracked?”The integration tracks these HubSpot events. You can rename or disable each event in the HubSpot Integration Events section (Step 4).
| HubSpot event | Row or group in the settings | Default AnyTrack event |
|---|---|---|
| Form submission (from the Tracking Tag) | Form Submitted | FormSubmit |
| New contact | Contact created | Lead |
| Booked meeting | Meeting booked | Schedule |
| Lead status change | Contacts: lead status | None |
| Lifecycle stage change to Customer | Contacts: lifecycle stage | CompleteRegistration |
| Lifecycle stage change to another stage | Contacts: lifecycle stage | None |
| Deal associated with a contact | Deals (standards) | DealNew |
| Deal stage change to Appointment scheduled | Deals (standards) | DealScheduled |
| Deal stage change to Qualified to buy | Deals (standards) | DealQualified |
| Deal stage change to Won | Deals (standards) | DealPurchase |
| Deal stage change to Presentation scheduled, Bought in, or Contract sent | Deals (standards) | None |
| Deal stage change to another stage, for example in a second pipeline | Deals: [pipeline name] | None |
None means that AnyTrack does not track the event until you select its checkbox and enter an event name.
Deal Value
Section titled “Deal Value”AnyTrack uses the HubSpot deal amount as the value of each deal event. For example, when you create a deal of $10,000, the DealNew event has a value of 10,000.00. Each later event of the same deal, such as DealQualified, also carries the deal amount. You see the value in the Events Log tab of the integration and in the Conversions Report. When AnyTrack sends a deal event to an ad platform through the Conversion API, the event includes the value.
AnyTrack tracks a deal only when the deal has an associated contact.
Where the Click ID Comes From
Section titled “Where the Click ID Comes From”AnyTrack merges the session on your website (UTM parameters, traffic source, first-party data) with the offline events HubSpot reports (contact created, meetings, lifecycle stages, deals). The merge happens through parameters that travel from the browser into HubSpot. The main parameter is the AnyTrack Click ID, which AnyTrack generates automatically for each session. HubSpot ingests it through the AnyTrack Click ID contact property, which AnyTrack creates on install. In a custom setup (your own form + HubSpot), you must tell the form to pass the value into that property.
The native integration attributes leads that HubSpot’s own forms collect. The Tracking Tag stores the Click ID in the AnyTrack Click ID property at session time. AnyTrack then matches the property back to the visit. On forms built in the updated form editor, add the field first (see Step 3).
Sometimes the lead is collected somewhere else first: an external form, or a contact pushed in through Zapier or Make. Then there is no tracked session on the HubSpot side. You have to carry the Click ID into HubSpot yourself, into that same AnyTrack Click ID property. Each source platform exposes the Click ID under its own parameter; map that value into the property:
| Source platform | Click ID parameter on the source | Destination in HubSpot |
|---|---|---|
| Typeform | at_click_id | AnyTrack Click ID property |
| Unbounce | click_id | AnyTrack Click ID property |
| Elementor | _atid | AnyTrack Click ID property |
| Calendly | utm_term or sfid | AnyTrack Click ID property |
| ClickFunnels | click_id | AnyTrack Click ID property |
| LeadsHook | click_id | AnyTrack Click ID property |
| Any standard HTML form | hidden field, value --CLICK-ID-- | AnyTrack Click ID property |
For the full external-form → CRM pattern across every platform, see Pass the Click ID from External Forms to Your CRM.
Related Resources
Section titled “Related Resources”- Pass the Click ID from External Forms to Your CRM
- Form Tracking
- Event Mapping
- Integration Event Log
- Conversions Showing as Unknown
HubSpot Integration - Frequently Asked Questions
FAQ was last reviewed on 2026-10-04
What is the AnyTrack Click ID field in my HubSpot forms?
Do I need to add the AnyTrack Click ID field to every form?
Which AnyTrack plan do I need for the HubSpot integration?
Which HubSpot events does AnyTrack track?
Lead and a booked meeting as Schedule. The Customer lifecycle stage becomes CompleteRegistration. Deals have their own default events, such as DealNew for a new deal. To track a lead status or another lifecycle stage, select its checkbox in the HubSpot Integration Events section. Then enter an event name.