Documentation / Product / Integrations / HubSpot

HubSpot: Import Contacts and Activity

Import contacts and email activity from HubSpot to drive better engagement through Lytics.

Integration Details

If contacts are selected to be imported the following will be repeated until all contacts have been processed:

  1. A page of contacts will be requested from hubspot
  2. Any contacts that haven't been modified since Import Contacts Since date will be filtered out.
  3. The contacts will be ingested into Lytics profiles

If events are selected to be imported the following will be repeated until all email events have been processed:

  1. A page of email events will be requested from hubspot that have occurred after Import Email Events Since.
  2. The email events will be ingested into activity on Lytics profiles

Fields

The following fields are included in the default mapping of the hubspot_contacts stream:

Source FieldLytics User FieldDescriptionType
email(identity-profiles[0].identities[1].value)email unique idEmailstring
properties.firstname.valuefirst_nameFirst Namestring
properties.lastname.valuelast_nameLast Namestring
vidhs_vid unique idhubspot Vidint

The following fields are included in the default mapping of the hubspot_activity stream:

Source FieldLytics User FieldDescriptionType
count(type)hs_bounce_ctHubspot Hard Bounce Countint
count(type)hs_click_ctHubspot Click Countint
count(type)hs_open_ctHubspot OPEN Countint
count(type)hs_send_ctHubspot Send Countint
count(type)hs_spam_report_ctHubspot Soft Bounce Countint
durationhs_open_durationHubspot OPENs Durationstring
email(recipient)email unique idEmailstring
epochms()hs_send_tsHubspot Last Send Timedate
max(epochms())hs_last_bounce_tsHubspot Last Hard Bouncedate
max(epochms())hs_last_click_tsHubspot Last Clickdate
max(epochms())hs_last_open_tsHubspot Last OPENdate
max(epochms())hs_last_spam_report_tsHubspot Last Soft Bouncedate
max(epochms())last_active_tsLast Activedate
min(epochms())hs_first_bounce_tsHubspot First Hard Bouncedate
min(epochms())hs_first_click_tsHubspot First Clickdate
min(epochms())hs_first_open_tsHubspot First OPENdate
min(epochms())hs_first_spam_report_tsHubspot First Soft Bouncedate
urlmain(url)hs_email_urlHubspot URLstring
valuect(hash(urlmain(url)))hashedurlsHashed URLs Visitedmap[string]intsum
valuect(hourofday())hs_hourly_openHubspot Hourly typesmap[string]intsum
valuect(hourofweek())hs_hour_of_weekHubspot Hour of Week typesmap[string]intsum
valuect(type)hs_email_typeHubspot Email typesmap[string]intsum
valuect(yymm())hs_monthlyHubspot OPENs By Monthmap[string]intsum

Configuration

Follow these steps to set up and configure an import job for HubSpot in the Lytics platform. If you are new to creating jobs in Lytics, see the Jobs Dashboard documentation for more information.

  1. Select HubSpot from the list of providers.
  2. Select the import job type from the list.
  3. Select the Authorization you would like to use or create a new one.
  4. Enter a Label to identify this job you are creating in Lytics.
  5. (Optional) Enter a Description for further context on your job.
  6. Complete the configuration steps for your job. hubspot-import-config
  7. (optional) Select the Import Contacts checkbox, to import contacts from Hubspot into Lytics.
  8. (optional) In the Import Contacts Since text box, enter the date to import contacts from Hubspot that have been modified after this date; yyyy-mm-dd HH:MM:SS format. If left blank, all contacts will be imported.
  9. (optional) Select the Import Email Events checkbox, to import email events from Hubspot into Lytics.
  10. (optional) In the Import Email Events Since text box, enter the date to import email events from Hubspot that have occurred after this date; yyyy-mm-dd HH:MM:SS format. If left blank, all email events will be imported.
  11. (optional) Select the Keep Updated checkbox, to continuously import from Hubspot.
  12. (Optional) Toggle Show Advanced Options.
  13. (optional) From the Import Frequency input, select how often a repeated import should run.
  14. (optional) From the Time of Day input, select the time of day to start the import, ignore for hourly imports.
  15. (optional) From the Timezone input, select the timezone for time of day.
  16. Click the Start job button to start the job