Add HubSpot tracking code to GTM
A quick process on adding HubSpot tracking to the Google Tag Manager (GTM).
- Click the settings ⚙️ icon in the main navigation bar
- Navigate to Tracking & Analytics > Tracking Code
- Copy the tracking code from the Embed code section
![HubSpot Tracking Code](https://www.xenkb.com/hs-fs/hubfs/xen-solar/images/kb/hubspot-tracking-code.png?width=688&name=hubspot-tracking-code.png)
- Login to GTM and navigate to Workspace > Tags > New
![GTM Tag New](https://www.xenkb.com/hs-fs/hubfs/xen-solar/images/kb/new-gtm-tag-1.png?width=688&name=new-gtm-tag-1.png)
- Rename the tag to 'HubSpot'
- Choose Custom HTML as the tag type
- Paste the HubSpot tracking code into the HTML section of the tag configuration
- Add triggering to All Pages
![HubSpot Tag All Pages](https://www.xenkb.com/hs-fs/hubfs/xen-solar/images/kb/hubspot-trigger-tag.png?width=688&name=hubspot-trigger-tag.png)
- Click Save, then submit.