Skip to content

HubSpot Integration

Fluentos connects to HubSpot with OAuth, a secure sign-in between the two apps. You do not need an API key: click Connect to HubSpot and allow the connection.

When you connect HubSpot, Fluentos asks for these permissions on your HubSpot account:

Permission Purpose
crm.objects.contacts.read Read visitor contacts for audience targeting and personalization
crm.objects.contacts.write Create or update contacts from form submissions
crm.lists.read Fetch available lists for audience targeting and mapping
crm.lists.write Add submitted contacts to selected lists
communication_preferences.read Fetch available HubSpot subscription types for consent mapping
communication_preferences.write Update contact email subscription consent status
  1. On the left, click Integrations.
  2. Click Add Integration.
  3. Enter an Integration Name, for example HubSpot Production.
  4. In Select Integration, choose HubSpot.
  5. Click Connect to HubSpot.
  6. A popup opens. Log in to HubSpot if asked, and allow the permissions.
  7. The popup closes and the button shows Connected.
  8. Optional: turn on Audience Targeting to target campaigns by HubSpot list.
  9. Click Add.

When it is on, Fluentos recognizes visitors who arrive from HubSpot email links (by the _hbs_contact_id part of the link, or the cookie) and checks which HubSpot lists they are in. You can then:

  • Show or hide campaigns by list.
  • Personalize campaign texts with contact data (email, first name) saved in the DataHub.

Required for HubSpot email audience targeting: your HubSpot link must include the contact ID merge token in the URL, for example:

?_hbs_contact_id={{contact.hs_object_id}}

  • Link parameter (default _hbs_contact_id): the part of the link that carries the HubSpot contact ID, for example ?_hbs_contact_id={{contact.hs_object_id}}.
  • Cookie name (default _hbs_contact_id): saved for 1 year and used to recognize returning visitors.

Fluentos saves these HubSpot contact fields in the DataHub, so you can use them in campaigns:

Field DataHub key Description
Contact ID {{dataHub:hubspot-contactId}} Always saved. Lets a form without an email field update the visitor’s HubSpot contact.
Email {{dataHub:hubspot-email}} Optional (Save Email to DataHub). Visitor’s email address.
First Name {{dataHub:hubspot-firstName}} Optional (Save First Name to DataHub). Visitor’s first name.

In HubSpot, both fixed audiences and dynamic segments are lists. Fluentos uses them in two ways:

For audience targeting, you can pick any list type, including active (dynamic) and static lists. A HubSpot list works like a Klaviyo segment: it tells Fluentos whether a visitor is in an audience.

When Fluentos recognizes a visitor, it asks HubSpot which lists the contact is in and compares them with the list in the campaign’s targeting rule.

For form submissions, you can pick only static and snapshot lists (MANUAL or SNAPSHOT in HubSpot). HubSpot does not let anyone add contacts to an active list, because its own rules decide who is in it. So the HubSpot List dropdown for submissions shows only static and snapshot lists.

List type in HubSpot processingType Used for audience targeting Used for form submission mapping
Static list MANUAL Yes Yes
Snapshot list SNAPSHOT Yes Yes
Active (dynamic) list DYNAMIC Yes No

When Consent Sync is on in the campaign’s HubSpot integration settings, Fluentos sets the chosen subscription status in HubSpot for every contact the campaign submits, after the contact is created or updated. Nothing changes until you pick a subscription type.

  • Consent Sync: turns consent updates on or off.
  • Subscription Type: the HubSpot subscription type to update.
  • Consent Status: Subscribed, Unsubscribed or Not Specified.
  • Legal Basis: the legal basis sent with the update. Default: CONSENT_WITH_NOTICE.
  • Legal Basis Explanation: a short note for your audit trail. Default: Contact submitted a Fluentos form.

HubSpot portals with GDPR turned on need a legal basis and an explanation to subscribe a contact. If you leave them empty, Fluentos sends the defaults.

  1. Fluentos creates or updates the contact in HubSpot.
  2. If you chose a HubSpot List, Fluentos adds the contact to it.
  3. If Consent Sync is on, a subscription type is picked and the submission has an email, Fluentos updates the contact’s subscription status for that type.

The Subscription Type dropdown lists the subscription types set up in your HubSpot account.

There are two common ways to handle consent in HubSpot:

  1. HubSpot workflow (recommended for double opt-in)

    • Keep Consent Sync off in Fluentos.
    • Let Fluentos add submitted contacts to a HubSpot list.
    • In HubSpot, build a workflow that starts when a contact joins the list, sends your own double opt-in email, and subscribes the contact only after they confirm.
    • Best when you want full control over the confirmation email and your consent rules.
  2. Fluentos Consent Sync (faster setup)

    • Turn on Consent Sync in the campaign’s HubSpot integration settings.
    • Choose the subscription type and the status to set.
    • Fluentos updates the subscription right after the submission.
    • Best when you want the subscription set at once, without a workflow.
  • Use the workflow with double opt-in for markets or brands with strict consent rules.
  • Use Consent Sync when your legal process allows subscribing the contact at the moment they submit.
  • You can combine both: sync to a separate subscription type, and still use workflows to control what you send next.

To disconnect the HubSpot integration:

  1. Open the integration.
  2. Click Disconnect.

Fluentos removes the connection on the Fluentos side. To remove the app from your HubSpot account too, do it in HubSpot. To connect again, click Connect to HubSpot.

Issue Solution
Authentication popup doesn’t open Check whether your browser blocks popups for the Fluentos dashboard.
“Not connected” message The connection may have expired. Click Connect to HubSpot to connect again.
Audience targeting not working Check that your HubSpot email links or landing pages include _hbs_contact_id and that your campaigns are published.
Audience targeting not matching from email clicks Check that HubSpot links include ?_hbs_contact_id={{contact.hs_object_id}}, so Fluentos can find the contact and check its lists.
No lists appear in the audience targeting dropdown Check that the connected HubSpot account has at least one list (static or active). A new active list may need a moment to finish processing in HubSpot.
No lists appear in the form submission mapping Only static and snapshot lists (MANUAL and SNAPSHOT) can receive submissions. Active lists are not in this dropdown.
Failed submissions Open the integration’s Delivery tab, fix the cause, then click Retry Failed Submissions. Also check that the chosen list still exists and is not locked.