Query your HubSpot data in PostHog

Connect HubSpot to PostHog to link who your leads and customers are to how they use your product, so you can see which leads to call and which deals are going cold.

What syncs from HubSpot

PostHog syncs CRM records and the links between them, so you can join contacts, companies, and deals. Tables include:

CRM records

Contacts, companies, deals, leads, tickets, quotes, feedback submissions, and marketing campaigns.

Sales activity

Emails, meetings, calls, notes, tasks, communications, and conversation threads.

Commerce

Products, line items, invoices, orders, subscriptions, and payments.

Pipelines and teams

Pipelines, pipeline stages, owners, users, teams, and forecasts.

Choose your sync mode

Incremental

Imports everything once, then fetches only the records that changed since the last sync. Best for large portals.

Full refresh

Re-imports the whole table each time. Best for small tables.

Pick which HubSpot properties to sync for each table, including custom ones. Then pick which columns to keep.

How to connect HubSpot

Sign in to HubSpot, approve access, and pick the tables to sync. You don't need an API key. Some tables, like leads, forecasts, and marketing campaigns, need a HubSpot Professional plan or higher.

PostHog Wizard hedgehog

Questions you can answer with HubSpot and PostHog

Sales

Which leads should sales call first?

Score HubSpot contacts by what they did in your product this week. Then find the active ones nobody has contacted yet.

Read the guide

Which open deals are going cold?

Find open deals where the company stopped using your product in the last two weeks. The deal owner can follow up before it slips.

Marketing

Which campaigns bring leads who use the product?

Compare each lead's HubSpot source and campaign with what they did after signup. The campaign with the most leads may not bring the most active users.

Which pages do leads visit before a deal opens?

Join HubSpot contacts to their deals and to PostHog pageviews. See which pages prospects read in the days before each deal opened.

Customer success

Are my biggest customers my happiest ones?

Put each company's deal value next to its product engagement. Find the large accounts that barely use your product before renewal.

Read the guide

Do support tickets predict churn?

Join HubSpot tickets to product usage. Find the ticket categories that come before accounts stop using your product.

Use HubSpot data across PostHog

Once it's in PostHog, your CRM data isn't stuck in a sales report. You can use it everywhere you already work.

Session replay

Watch what a prospect did in your product before the sales call. Start the call with what they tried.

Feature flags

Turn on a beta feature for every contact at a company in an open enterprise deal. You don't need a list of email addresses.

Surveys

Ask new customers how onboarding is going in the weeks after their deal closes. Or ask lost prospects what they chose instead.

Error tracking

Rank exceptions by the value of the open deals they affect. Fix the bug a big prospect hits before the next demo.

Alerts

Get an alert when a company in an open deal stops using your product. PostHog checks each company on its own.

Do it once, reuse it everywhere

Build an “open deals” cohort once. Reuse it as a replay filter, flag target, survey audience, and alert.

Read about cohorts →

Your best leads are already smoldering

Some of your leads used your product all week. Connect HubSpot and call them first.

Turn up the heat

Not using PostHog? Sign up