Customisable Google Tag Manager Template for HubSpot


Awesome! You’ve taken the first step to connecting HubSpot & Google Analytics.

Step 1: Download & Install the Template Container

Import GTM.png

Step 2: Update the variables

To make the container work you need to update two Variables.

HubSpot Account ID

To update the HubSpot ID Variable you’ll need to first navigate to the variable section of GTM. You can find this under Variables in the side navigation.

HubSpot ID.png

Once you’ve located the variable update it to match your HubSpot ID.

Replace the Temporary Google Analytics ID

To Update the temporary Google Analytics ID you’ll need to do two things.

  1. Replace it with your Google Analytics ID on the “UA - Event - HubSpot Form Success” tag

  2. Delete the Variable “Replace this UAID”

Step 3: Publish

If you just want to generally track HubSpot and HubSpot forms then you’re done.

Publish away. If you’re interested in more specific form tracking, read on.

Tracking HubSpot Forms

If you’re interested in tracking HubSpot forms specifically into Google Analytics and/or Facebook you can see this handy guide we made previously. The good news is that this template already includes the tags, triggers and variables needed.

Tracking Non-HubSpot Forms into HubSpot

If you’re interested in tracking non-HubSpot forms into HubSpot we can help with that, but it depends on your CMS.

Just get in touch.


Any issues please get in touch and we’ll be more than happy to help out.