Skip to content

HubSpot Integration

Connect HubSpot to AnyTrack on any plan. AnyTrack attributes HubSpot forms, contacts, meetings, and deals to their original traffic source.

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

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.

Before connecting HubSpot, install the AnyTrack tracking tag (a JavaScript code snippet that collects visitor data) on your website.

  1. Copy your tracking tag from the AnyTrack dashboard
AnyTrack documentation screenshot
  1. Add the tracking tag to HubSpot pages
  • In HubSpot, go to Settings > Tools > Content > Pages
  • Paste the AnyTrack tracking tag in the header section
AnyTrack documentation screenshot
  • Click Save
  1. Navigate to the Integration catalog in your AnyTrack dashboard

  1. Search for HubSpot and click the HubSpot card

  1. Click Install Integration

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

  1. Click Connect HubSpot to authenticate your account

  1. Select your HubSpot account and click Choose Account

  1. Review the permissions AnyTrack needs and click Connect App

  1. 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 editorWho adds the fieldWhat you do
Legacy form editor (forms v3)AnyTrack adds the field to your existing forms through the HubSpot APINothing
Updated form editor (forms v4)You add the field. The HubSpot API does not support these forms yetAdd 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:

  1. In HubSpot, open the form in the form editor.

  1. Add the AnyTrack Click ID property to the form.
HubSpot property search for anyt. The Conversion information group shows AnyTrack Click ID and AnyTrack Server Set ID.
Search for AnyTrack. Select AnyTrack Click ID.
  1. Enable Hidden field, so visitors do not see the field.

  1. Click Review and update to publish the change.

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.

HubSpot Integration Events section in AnyTrack, with the Deals (standards) group open.
The Deals (standards) group is open. In this example, Deal stage: Won maps to Purchase.

The first three rows are always visible:

  • Form Submitted: the Tracking Tag sends a FormSubmit event 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:

  1. Open the group of the event.
  2. Select the checkbox of the event. To stop tracking an event, clear its checkbox.
  3. Click the event field. Select a standard event from the list, or enter a custom event name.
  4. 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.

  1. Open the page with your HubSpot form in a private browser window.
  2. Submit the form.
  3. In AnyTrack, open your HubSpot integration.
  4. Click the Events Log tab. The new contact shows as a Lead event.
  5. In HubSpot, create a deal for the contact, with a deal amount.
  6. In the Events Log tab, click Refresh. The DealNew event shows, with the deal amount as its value.

To read the status of each event, see Integration Event Log.

The integration tracks these HubSpot events. You can rename or disable each event in the HubSpot Integration Events section (Step 4).

HubSpot eventRow or group in the settingsDefault AnyTrack event
Form submission (from the Tracking Tag)Form SubmittedFormSubmit
New contactContact createdLead
Booked meetingMeeting bookedSchedule
Lead status changeContacts: lead statusNone
Lifecycle stage change to CustomerContacts: lifecycle stageCompleteRegistration
Lifecycle stage change to another stageContacts: lifecycle stageNone
Deal associated with a contactDeals (standards)DealNew
Deal stage change to Appointment scheduledDeals (standards)DealScheduled
Deal stage change to Qualified to buyDeals (standards)DealQualified
Deal stage change to WonDeals (standards)DealPurchase
Deal stage change to Presentation scheduled, Bought in, or Contract sentDeals (standards)None
Deal stage change to another stage, for example in a second pipelineDeals: [pipeline name]None

None means that AnyTrack does not track the event until you select its checkbox and enter an event name.

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.


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 platformClick ID parameter on the sourceDestination in HubSpot
Typeformat_click_idAnyTrack Click ID property
Unbounceclick_idAnyTrack Click ID property
Elementor_atidAnyTrack Click ID property
Calendlyutm_term or sfidAnyTrack Click ID property
ClickFunnelsclick_idAnyTrack Click ID property
LeadsHookclick_idAnyTrack Click ID property
Any standard HTML formhidden 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.



HubSpot Integration - Frequently Asked Questions

FAQ was last reviewed on 2026-10-04

What is the AnyTrack Click ID field in my HubSpot forms?
The AnyTrack Click ID is a custom contact property that AnyTrack creates automatically during installation. It stores a unique visitor identifier that links form submissions to specific website sessions, enabling accurate attribution of leads to ad campaigns and traffic sources.
Do I need to add the AnyTrack Click ID field to every form?
No. AnyTrack recommends the Click ID but does not require it. On forms built in the HubSpot legacy form editor (forms v3), AnyTrack adds the field through the HubSpot API. On forms built in the updated form editor (forms v4), add the AnyTrack Click ID as a hidden field yourself, because the HubSpot API does not support these forms yet. When the form loads, the Tracking Tag fills in the Click ID. Without the Click ID, AnyTrack uses the email address to match the contact to the visit.
Which AnyTrack plan do I need for the HubSpot integration?
Any plan, including Free. The integration is in Beta and has no additional cost. On the Free plan, HubSpot counts as your one conversion source. To send HubSpot conversions to ad platforms through the Conversion API, you need the Starter plan or higher.
Which HubSpot events does AnyTrack track?
AnyTrack tracks form submissions, new contacts, booked meetings, lead status changes, lifecycle stage changes, and deals. By default, AnyTrack tracks a new contact as 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.
Can I track deal stages and attribute them to ad campaigns?
Yes. AnyTrack tracks a deal when HubSpot associates the deal with a contact, and each time the deal stage changes. Each deal event carries the deal amount as its value. AnyTrack attributes each deal event to the original traffic source, so you see which campaigns drive deals and revenue.
An event is missing from the HubSpot Integration Events list. What do I do?
Click Sync with HubSpot in the HubSpot Integration Events section. AnyTrack reads the lead statuses, lifecycle stages, and deal pipelines from your HubSpot account, and updates the list. Then select the checkbox of the event. Enter an event name. Click Save.
Does this integration work with non-HubSpot forms or landing pages?
The native HubSpot integration tracks HubSpot forms specifically. If you use non-HubSpot forms on your website, install the AnyTrack tracking tag on those pages and use the integration for your form platform.