To connect your HubSpot account, you will need the following:
A HubSpot API key.
Note: The HubSpot lists that will be used in the Email Opt-in module should be all Static List
Get the required Data
Log in to your HubSpot account.
Click on the Profile link at the top right corner.
Choose the Profile & Preferences option.
From the left sidebar, choose Integration.
Choose Private Apps and create a private app by clicking the Create a private app button.
Choose the Scopes Tab, and for the CRM option, ensure that everything is selected.
Click the top right Create app button.
Confirm the Warning Message, and copy the API key to your clipboard.
Connect HubSpot with Divi's Email Opt-in module
Open the Email Opt-in module Settings modal window.
Go to the Content Tab → Email Account.
Select the HubSpot from the provider's list.
Click on the Add button.
Fill in the following fields:
Name - It can be anything you want. For example, you can use
my-hubspot
API Key - Paste the HubSpot API key.
Click on the Submit button.
Choose the HubSpot list you want to use.