# HubSpot - Add HubSpot Tracking code to website

> 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.

Canonical: https://livedemo.ai/tutorials/how-to-add-hubspot-tracking-code-to-website/
Apps: HubSpot
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2e01d673bd5aa8e5fd72/preview?step=1

## Steps

1. Click on the Gear icon on the top right.
2. Find Tracking Code in the left pane.
3. You will find the Embed code over here.
4. You can copy the code to the clipboard or directly email it to your developer.
5. 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
