# HubSpot CRM

Source: https://yamm.com/help/usage/crm-integrations/hubspot-crm/

YAMM integrates with HubSpot in two complementary ways: import contacts from HubSpot into your contact list spreadsheet to run a mail merge, and log YAMM campaigns back into HubSpot using a bcc address so all conversations appear under each contact's profile.

## Import contacts from HubSpot CRM

[Awesome Table Connectors](https://awesome-table.com/connectors/help/about) lets you import HubSpot data, including your contacts.

**Prerequisites**

- You have a HubSpot account.
- You have [installed](https://awesome-table.com/connectors/help/get-started/install) and [launched](https://awesome-table.com/connectors/help/get-started/launch) Awesome Table Connectors.

Info: You can log in to the HubSpot connector using your HubSpot account or with an [API key](https://awesome-table.com/connectors/help/export-to-google-sheets/hubspot/login#method-2-connect-with-an-api-key).

1. In the Awesome Table add-on **Home** screen, click **Create new request**.

   ![Launch empty home screen](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-1.png)

2. Open the **HubSpot** connector.

   ![Awesome table connector click HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-2.png)

3. On the **Connect to HubSpot** screen, click **Sign in with HubSpot**.

   ![Awesome table connector sign in to HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-3.png)

4. Select your HubSpot account and click **Choose Account**.

   ![HubSpot connecting page select team and click choose account](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-4.png)

5. Click **Connect app**.

   ![HubSpot connector click connect app](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-5.png)

6. Open the **Select data** drop-down and select **Contacts from list**.

   ![HubSpot contacts from list](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-6.png)

7. Select the list you want to import contacts from.

   ![HubSpot list selected for contact import](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-7.png)

8. (Optional) Use [Preview & Select columns](https://awesome-table.com/connectors/help/preview-select-columns/how-to) to choose the columns you need.

9. Click **Run** to start your request. The first time, you grant Awesome Table the required permissions.

Your contacts are imported into your Google spreadsheet, ready for YAMM.

![Result HubSpot Zendesk](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/how-to-import-contacts-from-hubspot-crm-8.png)

## Log YAMM campaigns into HubSpot

Record YAMM email campaigns directly in HubSpot — all Gmail conversations with your sales leads automatically save into each contact's profile.

### 1. Link your HubSpot account to your Gmail inbox

In HubSpot, click the gear icon in the top right corner. Select **General**, open the **Email** tab, and click **Connect personal email**.

![Connect personal email in the HubSpot Email settings](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-1.png)

Select **Google / Gmail** as the email provider.

![Google and Gmail selected as the email provider in HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-2.png)

Click **Continue**, select your Google account (the same one you'll use to launch your campaign with YAMM), and accept the authorizations.

![Google account selection when connecting Gmail to HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-3.png)

![Access request accepted when connecting Gmail to HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-4.png)

A confirmation pop-up opens in your HubSpot settings — close it or click **No, thanks**.

![Confirmation pop-up in the HubSpot settings, with the No thanks option](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-5.png)

Your Gmail inbox is now linked to your HubSpot account.

![Gmail inbox linked to the HubSpot account](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-6.png)

### 2. Retrieve your HubSpot bcc email address

Click the gear icon > **General** > **Email** tab > **email logging settings**. The bcc address appears under **Manual Logging**.

![Email logging settings in HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-7.png)

![bcc address under Manual Logging in HubSpot](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-8.png)

Warning: By default, HubSpot does not log emails sent to recipients from the same domain as you.

### 3. Configure your contact list spreadsheet

List all your recipients (or [import them from HubSpot](#import-contacts-from-hubspot-crm)). Paste the special bcc address under a `bcc` column.

![Contact list spreadsheet with the HubSpot bcc address in a bcc column](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-9.png)

### 4. Start your mail merge with YAMM

Run YAMM as usual: **Extensions** > **Yet Another Mail Merge: Mail Merge for Gmail** > **Start Mail Merge**.

![Start Mail Merge in the Yet Another Mail Merge submenu](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-10.png)

### 5. Check the email logs in HubSpot

If a recipient matches a HubSpot contact, the email appears in the contact's profile under **Activity**.

![HubSpot contact profile showing the email under Activity](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-11.png)

If no match, a new contact profile is created.

![New HubSpot contact profile created for an unmatched recipient](https://yamm.com/help/images/docs/usage/crm-integrations/hubspot-crm/integrating-hubspot-crm-with-gmail-email-campaigns-12.png)

Warning: It can take a few minutes to record all your emails. If you don't see them, wait a bit longer.
