Skip to content

HubSpot CRM + CustomerLabs

HubSpot is an easy-to-use platform that helps companies capture new leads & convert them into paying customers, with marketing automation and CRM capabilities.

Marketing teams connect HubSpot with CustomerLabs 1PD Ops to send their Company, Contacts & Deals related information to create unified customer profiles in CustomerLabs 1PD Ops and sync the enriched customer data to all their favorite tools in their tech stack.

Rather than making an API call when an event happens in a connected account, HubSpot will send an HTTP request to CustomerLabs 1PD Ops via webhook. The below steps will help you integrate HubSpot as a Source with your CustomerLabs 1PD Ops account without writing any code.


  1. Log in to CustomerLabs
  2. Navigate to Sources → Connect Source
  3. Select HubSpot
Sources screen with HubSpot selected
  1. Click Authenticate HubSpot
  2. Log in to your HubSpot account
  3. Select the account to connect
HubSpot authentication screen
  1. Allow access to:
    • Contacts
    • Companies
  2. Select the CustomerLabs account (if multiple)
Permission grant screen

Standard fields are tracked automatically. Add custom fields under Custom Field Configurations.

Custom field configuration screen

Step 5: Creation of Hidden Fields & Placing the Tracking Script

Section titled “Step 5: Creation of Hidden Fields & Placing the Tracking Script”

Create a hidden field in the form, as it is required for the tracking setup. Name the hidden field "cluid" and add the tracking code to pass the CustomerLabs user ID via query parameters. This will help with user profile unification.

Hidden field creation and tracking script placement

After integration, HubSpot sends default webhook events:

Object Types:

  • Contacts
  • Companies
  • Deals

Event Types:

  • Created
  • Deleted
  • Property Changed
  • Deleted for Privacy

Key Event Triggers:

All workflows are typically based on property change events:

  • contact.propertyChange
  • company.propertyChange
  • contact.creation
  • deal.propertyChange

Building Workflows in CustomerLabs 1PD Ops

Section titled “Building Workflows in CustomerLabs 1PD Ops”
HubSpotCustomerLabs
ContactUser
CompanyAccount

Workflows help you:

  • Filter incoming data
  • Map attributes
  • Build unified profiles
Workflow setup screen
Workflow setup screen

Workflow #1 – Send Data When a Contact is Created

Section titled “Workflow #1 – Send Data When a Contact is Created”

This workflow captures contact data from HubSpot and maps it into CustomerLabs.

  1. Provide a Workflow Name
  2. Create a test contact in HubSpot
  3. Click Choose Sample Data
Workflow setup screen
  1. Click Fetch New Data
  2. View event samples
Fetching data from HubSpot
  1. Click View Details
  2. Observe JSON format
Raw event sample showing single property
  1. Choose a relevant sample
  2. Click Select this sample → Filter
  1. Click Create Filter Criteria
  2. Set condition:
FieldValue
Event TypeContact.creation
Sample selection screen

subscriptionType text contains contact.creation in the payload.

Choose:

  • Predefined event OR
  • Custom event name
Filter criteria for contact creation

Map identifiers:

  • identify_by_email
  • hubspot_user_id (Object ID)
Event configuration screen

Map incoming data into:

  • User Traits
    Attribute mapping screen
  • Event Properties
    User identity mapping

Below are common properties sent from HubSpot:

PropertyEventCustomerLabs Mapping
ext_idcontact.propertyChangeUser External IDs
firstnamecontact.propertyChangeUser Traits
lastnamecontact.propertyChangeUser Traits
emailcontact.propertyChangeUser Traits
phonecontact.propertyChangeUser Traits
citycontact.propertyChangeUser Traits
statecontact.propertyChangeUser Traits
countrycontact.propertyChangeUser Traits
lifecyclestagecontact.propertyChangeUser Traits
jobtitlecontact.propertyChangeUser Traits

Workflow #2 – Send Data When a Lead Stage is Created

Section titled “Workflow #2 – Send Data When a Lead Stage is Created”

This workflow captures lead stages data from HubSpot and maps it into CustomerLabs.

  1. Provide a Workflow Name
  2. Create a test contact in HubSpot
  3. Click Choose Sample Data
Workflow setup screen for lead stage
  1. Click Fetch New Data
  2. View event samples
Fetching lead stage data from HubSpot
  1. Click View Details
  2. Observe JSON format
Raw event sample for lead stage
  1. Choose a relevant sample
  2. Click Select this sample → Filter
  1. Click Create Filter Criteria
  2. Set condition:

HubSpot Payload Handling for Lead/Deal Stage

Section titled “HubSpot Payload Handling for Lead/Deal Stage”

Internal Names in Payload: HubSpot will send internal field names in the payload. Example: lifecycle stage, deal stage, etc.

Sample selection screen for lead stage

Dynamic Event Configuration: In the event configuration, we will use a dynamic event setup to capture all lead/deal stage info in one configuration, rather than configuring multiple events.

Handling Missing or Invalid IDs: Sometimes, the payload may contain internal lead/deal IDs instead of stage numbers. To avoid issues:

  • We will map internal IDs to stage numbers.
  • If a lead/deal stage ID is missing or not recognized, we will exclude it from processing.

Example Cases:

  • Lifecycle stage does not contain: 157221111
  • Lifecycle stage does not contain: 188423456

In these cases, the system will ignore the missing/invalid stage IDs.

Filter criteria for lead stage with exclusion rules

Choose event name as dynamic and map it with the lead stages to capture the lead/deal stages cycle.

Dynamic event configuration for lead stages

Map identifiers:

  • identify_by_email
  • hubspot_user_id (Object ID)
User identity mapping for lead stage

Map incoming data into:

  • User Traits
  • Event Properties
Attribute mapping for lead stage

Below are common properties sent from HubSpot:

PropertyEventCustomerLabs Mapping
ext_idcontact.propertyChangeUser External IDs
firstnamecontact.propertyChangeUser Traits
lastnamecontact.propertyChangeUser Traits
emailcontact.propertyChangeUser Traits
phonecontact.propertyChangeUser Traits
citycontact.propertyChangeUser Traits
statecontact.propertyChangeUser Traits
countrycontact.propertyChangeUser Traits
lifecyclestagecontact.propertyChangeUser Traits
jobtitlecontact.propertyChangeUser Traits