Docs Data Hubspot

HubSpot integration

Mantle provides an integration with HubSpot to streamline your company and contact management. This integration offers a few useful features:

  • Enriching HubSpot companies with data from Mantle
  • Creating HubSpot companies and contacts when the customer already exists or is created in Mantle
  • Creating Mantle customers and contacts when a company or contact already exists or is created in HubSpot
  • Emitting real-time events based on customer activity and subscription behavior

All of these features can be used independently of each other.

Connect to Hubspot

  1. Go to Settings > Integrations, and look for the Hubspot section.
  2. Click the Connect button adjacent to the Hubspot icon.
  3. When the modal appears, click Connect to Hubspot.
  4. You will then be asked to authenticate with your Hubspot account.

You’ll then be redirected to configure your connection settings:

Hubspot settings

Customer mapping

Customer mapping is the process of matching a Mantle customers with Hubspot Company and Contact objects by common fields such as email, domain, or myshopify domain. Once a mapping between a customer and a company or contact is made, this integration uses that mapping instead of inferring or creating the correct company or contact. Properly configuring customer mapping allows as much data as possible to be sent to HubSpot, and prevents duplicate records from being created. We recommend setting up and using customer mapping, especially in scenarios where the /identify endpoint is not utilized. Both the company enriching and event emitting features benefit from having a robust customer mapping to provide data to as many HubSpot records as possible.

The default customer mapping configuration provides some default HubSpot fields, but we highly recommend finding the specific fields your HubSpot may be using for myshopify domain or domain. Note that if you only have one of the fields on a company, the mapping will still work.

Use the dropdown in the Hubspot integration settings to search and select the fields you would like to use for the mapping. All fields for the company or contact record are fetched and displayed in the dropdown.

Hubspot contact mapping

Mantle automatically matches new HubSpot companies and contacts as they are created or updated, and will periodically search for new contacts in HubSpot that match with Mantle customers, ensuring your data remains synchronized.

If changes are made to the contact mapping settings at a later point in time, such as adding a new field, it’s recommended to recreate the contact mappings by clicking the Delete existing mappings button and then clicking on the Refresh mappings button.

Matching can take multiple hours if there are hundreds of thousands of companies or contacts in HubSpot.

Settings to note:

  • The Delete existing mappings button deletes all current mappings. This action is advisable when there have been changes to the contact mapping settings that necessitate their reconfiguration.
  • The Refresh mappings button conducts a comprehensive review of all HubSpot contacts, not merely the new additions, in search of further mappings. This is particularly useful for identifying contacts that may have acquired a .myshopify domain or domain subsequent to the initial synchronization.

Enriching companies

This integration provides the ability to enrich HubSpot companies with customer, app, and custom field data from Mantle and is compatible with all HubSpot plans. Enable this feature by checking the Enrich HubSpot companies with Mantle data option in Mantle’s HubSpot integration settings.

Once this feature is enabled, HubSpot companies should have data populated into these fields within minutes. To view these new fields and the associated data in HubSpot, open up a company, then in the left column, click on View all properties, and expand the Mantle section.

Example use cases:

  • Show Average Monthly Revenue on the Contact page.
  • Build a list of your highest LTV customers.
  • Determine which contacts are on a specific plan.

The following fields are automatically created on the company record, and is refreshed as the data is updated in Mantle:

LabelDescription
Mantle Customer IDMantle internal ID for a customer
Mantle Customer URLURL to Mantle customer page
Customer NameCustomer Name
Lifetime ValueLifetime Value
Average Monthly RevenueAverage Monthly Revenue
Last 30 Days RevenueLast 30 Days Revenue
Shopify Plan NameShopify Plan Name
Shopify Shop IDShopify Shop ID
Myshopify DomainMyshopify Domain
Installed AppsInstalled Apps
App Plan NameApp name and plan subscription names
Customer NotesCustomer Notes
Customer DescriptionCustomer Description
Customer TagsCustomer Tags
Customer IndustryCustomer Industry
Customer Reviewed App DateDate of when the customer reviewed by app
Customer Reviewed App RatingA 1 to 5 rating of the app the customer reviewed
Customer StatusThe status of the customer (Installed, Uninstalled, On trial, Subscribed, Frozen, Lost, Canceled, Lead, Purchased, Signed up)

Custom fields

From the Hubspot integration settings, you can also add custom fields to the company record. Only customer custom fields are supported. Note that a custom field with All Apps will create a field in Hubspot for each active app.

Selecting custom fields

Emitting events

Mantle provides an integration with HubSpot to populate your companies with real-time activity and subscription event data from Mantle.

Events such as install, uninstall, subscribe, etc. can all be sent to and acted upon within your Hubspot with workflows and other automations.

This feature utilizes HubSpot custom events to send and associate this event data with a company.

Example use cases:

  • Automatically send a retention email from hubspot whenever a customer uninstalls an app.
  • Build a list of your highest LTV customers.
  • Enrich your HubSpot contacts by populating them with event data.

On enabling this feature, a new HubSpot custom event on the company object called Mantle Customer Event (Company).

This single event contains fields such as:

FieldDescription
Mantle event typeinstalled, uninstalled, subscribed, etc.
App nameThe name of your app.
App lifetime valueThe lifetime value from this customer just from this app.
App plan nameThe name of the plan the customer is subscribed to.
Customer nameThe customer’s name.
Customer domainThe domain of the customer. E.g., example.com.
Customer Shopify domainThe Shopify myshopify domain.
Customer Shopify IDThe Shopify shop ID of the customer.
Customer lifetime valueThe total lifetime value of the customer across all apps.

Prerequisites

  • Your HubSpot plan must have the Enterprise plan for any one of the marketing, sales, service, operations, or cms hubs. This is necessary as the HubSpot custom events feature is used to get event data into HubSpot.
  • Hubspot companies revolve around the domain being the single identifier, therefore this integration works best when you’re also using Mantle’s /identify endpoint to grab the customer domain. This enables creating new companies in HubSpot, and being able to track every single event.

Setup

To turn on the event emitting feature, check the Send events to HubSpot box in Mantle’s HubSpot settings page. Select which apps you would like to trigger notifications for, and check the specific activity and subscription events you would like to be sent to HubSpot. After enabling this feature, it’s recommended to follow the testing steps in the next section to see how the integration works. Only events that occur after this feature is enabled will be sent to HubSpot.

Testing sending events

We suggest utilizing a test shop to initiate an event. Once you’ve completed the setup steps, proceed by installing an app, uninstalling an app, switching the plan currently utilized by the customer, among other actions, to cause multiple events to send. Make sure the specific event you’re testing is enabled in Mantle’s HubSpot settings page.

Please note - it may take up to ten minutes for the event to reflect in HubSpot. For guidance on where to find the triggered event, refer to the following section.

Viewing and using your events

The data provided by this custom event can be used to build powerful reporting, infinitely customizable workflows, customer journey analytics and lists.

Within the HubSpot platform, you have the capability to view all events generated by the Mantle integration. To do so, in the left sidebar in HubSpot, navigate to Data management > Custom events:

Hubspot custom events

In the list, locate and select the Mantle Customer Event (Company) to inspect the specific events. You may need to change the Date range to Today to see current events.

To leverage this event, click on the Use In dropdown menu and choose any of the listed options to incorporate the event into your workflows or analyses.