|
| 1 | +--- |
| 2 | +title: Connect HubSpot to Segment Profiles |
| 3 | +plan: unify |
| 4 | +redirect_from: |
| 5 | + - '/unify/hubspot-unify' |
| 6 | +--- |
| 7 | + |
| 8 | +This guide explains how to set up HubSpot as a source and connect it to Segment Profiles. |
| 9 | + |
| 10 | +Once configured, this integration lets you send HubSpot data directly to Segment Profiles, eliminating the need for a data warehouse and enabling faster data synchronization and profile enrichment. |
| 11 | + |
| 12 | +> info "Sync date and collections" |
| 13 | +> - Changing the start date after the first sync has no effect unless you initiate a full manual sync. |
| 14 | +> - Changes to synced collections apply only to future syncs. Data already synced from removed collections remains in the warehouse. |
| 15 | +
|
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +Before you begin, make sure that you have the following: |
| 19 | + |
| 20 | +- A Segment workspace with [Unify](/docs/unify/) enabled and [Identity Resolution](/docs/unify/identity-resolution/) configured. |
| 21 | +- Administrator access to your HubSpot account. |
| 22 | + |
| 23 | +## Integration steps |
| 24 | + |
| 25 | +Follow these steps to connect HubSpot to Segment Profiles. |
| 26 | + |
| 27 | +### 1. Add HubSpot as a source |
| 28 | + |
| 29 | +To start syncing HubSpot data, first add it as a source: |
| 30 | + |
| 31 | +1. From your Segment workspace, go to **Connections > Catalog** and search for **HubSpot**. |
| 32 | +2. Select **HubSpot**, then click **Add Source**. |
| 33 | +3. Enter a name for your HubSpot source and add an optional label. |
| 34 | +4. Log in to HubSpot and choose the account you want to sync data from. |
| 35 | +5. Once you've authenticated, return to Segment and click **Next**. |
| 36 | +6. Verify the **Schema name**, then click **Next**. |
| 37 | +7. In the **Selective Sync** settings: |
| 38 | + - Set a start date for the initial sync (or leave it blank for a full historical sync). |
| 39 | + - Keep the default sync frequency (every three hours) or adjust it. |
| 40 | + - Choose the collections to sync. |
| 41 | + |
| 42 | +After adding the source, go to **Settings > Basic settings** and toggle **Enable source**. The first sync begins immediately. |
| 43 | + |
| 44 | +### 2. Add a Segment Profiles destination |
| 45 | + |
| 46 | +Next, add a Segment Profiles destination: |
| 47 | + |
| 48 | +1. From your HubSpot source, go to the **Models** tab and click **Add destination**. |
| 49 | +2. Select **Segment Profiles**, then click **Add destination**. |
| 50 | +3. Enter a name for the destination, then click **Create destination**. |
| 51 | + |
| 52 | +### 3. Create a data model |
| 53 | + |
| 54 | +A data model defines how HubSpot data maps to Segment Profiles. |
| 55 | + |
| 56 | +1. In the HubSpot source, go to the **Models** tab and click **Create Model**. |
| 57 | +2. Select the collections and columns to sync. |
| 58 | +3. Preview the data in real time and validate the schema. |
| 59 | +4. Name the model and click **Next** to save it. |
| 60 | + |
| 61 | +### 4. Map HubSpot data to Segment Profiles |
| 62 | + |
| 63 | +Now, configure mappings to determine how HubSpot data updates Segment Profiles. |
| 64 | + |
| 65 | +1. In the **Models** tab of your HubSpot source, click **Add mapping**. |
| 66 | +2. Segment redirects you to the Segment Profiles destination. Click **Add mapping**. |
| 67 | +3. Select your data model and define the mapping rules: |
| 68 | + - Choose the Profile Space to update. |
| 69 | + - Map HubSpot fields to Segment Profile fields. |
| 70 | + - **You must map either a User ID, Anonymous ID, or Group ID.** |
| 71 | +4. Test the mapping with real HubSpot data. |
| 72 | +5. Save the configuration. |
| 73 | + |
| 74 | + |
| 75 | +### 5. Enable destination mapping and finish setup |
| 76 | + |
| 77 | +Finish by enabling the destination mapping: |
| 78 | + |
| 79 | +1. From the **Overview** tab of the Segment Profiles destination, toggle **Mapping Status** to **Enabled**. |
| 80 | +2. Return to your HubSpot source and verify that **Settings > Basic settings** is enabled. |
| 81 | + |
| 82 | +Once complete, HubSpot data syncs to Segment Profiles automatically. |
| 83 | + |
| 84 | +## Data synchronization |
| 85 | + |
| 86 | +After connecting HubSpot to the Segment Profiles destination, the integration begins syncing data: |
| 87 | + |
| 88 | +- New or updated records in HubSpot get sent to Segment Profiles based on your mapping configuration. |
| 89 | +- The first sync includes historical data based on your selected start date. |
| 90 | +- Future syncs run at the default interval of every three hours. |
| 91 | + |
| 92 | +## Best practices |
| 93 | + |
| 94 | +Keep the following in mind when working with the HubSpot/Segment Profiles integration: |
| 95 | + |
| 96 | +- Start with a small dataset to validate mappings before expanding to all HubSpot objects. |
| 97 | +- Regularly review your mappings to make sure they reflect any schema changes in HubSpot or Segment Profiles. |
| 98 | +- Monitor both your HubSpot source and Segment Profiles destination for errors and data discrepancies. |
| 99 | + |
| 100 | +Each data model supports mapping from one HubSpot collection at a time. For complex use cases requiring multiple collections, create separate data models and mappings. |
0 commit comments