HubSpot - Add HubSpot Tracking code to website
- George Apostolov
HubSpot - Add HubSpot Tracking code to website: step-by-step guide
Click on the Gear icon on the top right.
Find Tracking Code in the left pane.
You will find the Embed code over here.
You can copy the code to the clipboard or directly email it to your developer.
Paste the code before the closing </body> tag in the HTML code for each page of your site. Your developers can install the tracking code to the footer file that's referenced across all pages
Quick answer: To add the HubSpot tracking code to your website, click the gear icon in HubSpot, locate the tracking code in the left pane, and copy the embed code. Then, paste this code before the closing body tag in your site's HTML or have your developer install it in the footer file.
About this HubSpot tutorial
Install the HubSpot tracking code on your website by copying the embed code from your account settings and pasting it into your site footer HTML. This guide covers hubSpot - Add HubSpot Tracking code to website in 5 steps, starting with "Click on the Gear icon on the top right" and finishing with "Paste the code before the closing </body> tag in the HTML code for each page of your si...". The interactive demo above is a click-through copy of the real HubSpot interface, so you can rehearse each step before doing it in your own account.
Frequently asked questions
How many steps does hubSpot - Add HubSpot Tracking code to website take?
5 steps. Each one is listed in order above, and the demo highlights exactly where to click.
Can I try it without changing my own account?
Yes. Clicking through the demo doesn't touch your HubSpot data or settings. Once you know the flow, repeat it in your own workspace.
This tutorial is filed under HubSpot. Related guides: HubSpot - How to Add Lead Source, Hubspot - Add lead status and Hubspot - How to Add Someone to Your HubSpot Account. Last reviewed 05 Oct 2026.
Create your first interactive demo in minutes
No credit card required • Start building today





