Create a HubSpot CRM account if you don't have one already.
Note Do not publish the plugin until all steps are completed
Open the HubSpot Plugin configuration
Configure the Feature Specific Settings to determine whether Contacts, Companies or both should be synchronised from HubSpot.
Save and close, then edit the plugin to configure the field mapping.
It is checked by default. If you uncheck it, the plugin will not push contacts to Hubspot CRM any more.
Configure the field mapping.
Save the plugin configuration.
Set up the cron job if you have not already configured it.
Script to configure in your cron job:
php $PATH_TO_MAUTIC_DIRECTORY/bin/console mautic:integration:fetchleads --integration=Hubspot --fetch-all
Follow these steps to test the integration.
If the contact has not been created, ensure the email address you tested with is valid. Hubspot will only create a new contact when the email address is valid.
--fetch-all flag, the Hubspot API endpoints used in Mautic primarily leverage the following endpoints:
If you intend to do a full sync of your hubspot contacts/leads, you will need to modify an attribute of each of them so that they appear in Hubspot's recent/modified endpoints. By default, these endpoints just pull contects that have been modified in the last 30 days resulting in an incomplete sync if you are connecting to a long living Hubspot instance. source
This plugin had been developed by @gpassarelli.