Skip to main content
HubSpot → AmplitudeIntegration guide

Connecting HubSpot to Amplitude

HubSpot knows which leads turned into money, weeks after the ad platforms have stopped paying attention. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the HubSpot contact and deal before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

HubSpot deals in Amplitude: revenue on the account, not one user

For product-led B2B, send the HubSpot Closed Won deal to Amplitude from a workflow or webhook, keyed on your app user ID stored on the HubSpot contact, not HubSpot's contact ID. Use price and quantity from the deal amount and the deal ID as insert_id, attach the company as a group if your plan allows, and correct reopened deals.

This pair matters for product-led B2B companies: people sign up for the product, use it, and a salesperson later closes a HubSpot deal for the company. Sending that deal into Amplitude lets you ask which in-product behavior precedes a paid contract, which neither system answers alone.

The catch is that a HubSpot deal belongs to a company and often several contacts, while Amplitude revenue events land on one user. Attach the closed deal to one user and the rest of the buying team looks worthless in every cohort. If your plan includes Amplitude's account-level analytics, send the deal with a group set to the company and use the HubSpot company ID or your own account ID as the group value; if not, pick a rule, such as the primary contact, and document it.

Identity is the other join. Amplitude users carry your application's user ID, not HubSpot's contact ID, so store your app user ID on the HubSpot contact when they sign up and use it when the deal closes. Fire from a workflow or webhook when the deal reaches Closed Won, with price and quantity set from the deal amount and the HubSpot deal ID as insert_id. A deal moved back out of Closed Won needs a correcting event or Amplitude keeps the revenue.

HubSpot → Amplitude · what breaks

Why this join usually fails — HubSpot → Amplitude

  1. 01

    The user ID and device ID pair never reaches HubSpot

    The identifier has to be captured on the form and written to a contact property. HubSpot forms embedded in an iframe do not automatically see your page's cookies, so a hidden field has to be populated deliberately. Miss that and the contact is created clean, with nothing to join on ever again.

  2. 02

    The deal closes long after the click

    B2B sales cycles routinely run past the attribution window of every ad platform. Value uploaded on day 95 is value nobody will accept, so the timing question has to be answered before anything is built.

  3. 03

    Revenue events that carry no revenue

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  4. 04

    Nothing reconciles afterwards

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

HubSpot → Amplitude · the fix

What working looks like — HubSpot → Amplitude

  • The user ID and device ID pair on every deal

  • Conversions arriving in Amplitude

    The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.

  • Reconciled against the source

HubSpot → Amplitude · architecture

How HubSpot and Amplitude actually connect

  1. 1

    HubSpot holds the truth

    The deal carries the amount, the stage, the close date and the associated contact. That contact is where the original click identifier must live, because the deal is created much later by a salesperson who has no idea an ad was involved.

  2. 2

    Amplitude needs a click to match

    Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.

  3. 3

    The identifier is the bridge

    The user ID and device ID pair, captured at the visit and carried into the HubSpot contact and deal.

  4. 4

    The event source decides reliability

    Trigger when the deal reaches Closed Won and send the deal amount with the identifier stored on the associated contact. Sending on form submission instead means you optimize toward form fills, which is exactly the behavior that fills a pipeline with unqualified leads.

  5. 5

    Deduplication at the destination

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

HubSpot → Amplitude · normal or broken

Working vs. broken, side by side — HubSpot → Amplitude

Normal, not a fault

  • The user ID and device ID pair present on the deal

  • Sent from a HubSpot workflow or webhook on deal stage change

  • Deduplicated correctly

    Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.

  • Reconciles with the source

Actually broken

  • The user ID and device ID pair missing on most records

    The identifier has to be captured on the form and written to a contact property. HubSpot forms embedded in an iframe do not automatically see your page's cookies, so a hidden field has to be populated deliberately. Miss that and the contact is created clean, with nothing to join on ever again.

  • Sent from the browser

    B2B sales cycles routinely run past the attribution window of every ad platform. Value uploaded on day 95 is value nobody will accept, so the timing question has to be answered before anything is built.

  • Counted twice, or not at all

    Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.

  • Nobody has reconciled it

HubSpot → Amplitude · diagnose

Diagnostic order — HubSpot → Amplitude

  1. 01

    Count deals carrying the user ID and device ID pair

  2. 02

    Follow one real conversion end to end

  3. 03

    Open a Closed Won deal and follow it back to its contact

    Does that contact carry the identifier property, populated? Then check the date gap between the contact's creation and the deal's close — that gap decides whether this integration is possible at all.

  4. 04

    Check a purchase event for the price and quantity fields specifically

    Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.

  5. 05

    Read the match rate, not the success message

    Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.

HubSpot → Amplitude · prove

How it gets proven — HubSpot → Amplitude

Source of truth

HubSpot's Deals report, filtered to Closed Won for the same window, by close date.

  • The user ID and device ID pair confirmed present on a live deal.
  • Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
  • The click-to-close time distribution measured, so you know what share of deals close inside the destination's window.

HubSpot → Amplitude · free audit

What we check in the free audit

  • Count deals carrying the user ID and device ID pair
  • Follow one real conversion end to end
  • Open a Closed Won deal and follow it back to its contact
  • Check a purchase event for the price and quantity fields specifically
  • Read the match rate, not the success message

Checked against

HubSpot's Deals report, filtered to Closed Won for the same window, by close date.

Get my free conversion tracking audit

Free30 minutesNo obligation

HubSpot → Amplitude · when not to buy

When you don't need this — HubSpot → Amplitude

  • Measure identifier coverage yourself first — pull your last hundred deals and count how many carry the user ID and device ID pair.
  • If your median deal closes well past the destination's upload window, the honest answer is a different measurement strategy, not this integration. We will tell you that on the call rather than sell you a build that cannot work.
  • If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.

HubSpot → Amplitude · what we deliver

What gets built — HubSpot → Amplitude

  • Identifier capture into HubSpot

    Create a custom contact property, populate a hidden form field from the persisted first-party cookie, and confirm the property lands on the contact rather than only on the form submission.

  • Event source: a HubSpot workflow or webhook on deal stage change

    Trigger when the deal reaches Closed Won and send the deal amount with the identifier stored on the associated contact. Sending on form submission instead means you optimize toward form fills, which is exactly the behavior that fills a pipeline with unqualified leads.

  • Dispatch to Amplitude

    The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.

  • Reversals where they exist

    A deal reopened or moved out of Closed Won can be retracted where the destination supports it, though most teams accept the small error here rather than wire it.

Written guarantee

95%+ tracking accuracy

Measured against HubSpot's Deals report, filtered to Closed Won for the same window, by close date.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

HubSpot → Amplitude questions, answered

Trigger on the deal stage change, look up your app user ID stored on the associated contact, and post a revenue event with the deal ID as insert_id, ideally with the company set as an Amplitude group.

Free · 30 min

Get HubSpot and Amplitude joined properly

Free30 minutesNo obligation