Integrating Google Tag Manager into HubSpot

Here's a quick process on adding the Google Tag Manager (GTM) into HubSpot.

Before connecting GTM to HubSpot, make sure tags like Google Analytics, Facebook or LinkedIn pixels are installed in GTM.

Add Google Tag Manager (GTM) ID to HubSpot

  1. Login to your GTM account and copy your ID. It's located on the upper right corner of your account:
    GTM ID
  2. Log in to your HubSpot account, click the settings ⚙️ icon in the main navigation bar
  3. In the left sidebar menu, navigate to Website>Pages
  4. Click the Integrations tab

  5. Google Tag Manager HubSpot Integration
  6. Tick the Integrate with Google Tag Manager tickbox
  7. Paste the GTM ID you copied from step 1

Note: assuming you already have the Google Analytics tag added to GTM, you don't need to set up/tick this box in HubSpot:

google-analytics-settings-hubspot

Add the HubSpot tracking code to GTM

  1. Click the settings ⚙️ icon in the main navigation bar
  2. Navigate to Tracking & Analytics > Tracking Code
  3. Copy the tracking code from the Embed code section
    HubSpot Tracking Code
  4. Login to GTM and navigate to Workspace > Tags > New
    GTM Tag New
  5. Rename the tag to 'HubSpot'
  6. Choose Custom HTML as the tag type
  7. Paste the HubSpot tracking code into the HTML section of the tag configuration
  8. Add triggering to All Pages
    HubSpot Tag All Pages
  9. Click Save, then submit.