Reports

How do I install the HubSpot tracking code on my website?

Last updated: December 14, 2016

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A
If your website is hosted on one of the listed systems below, click on your platform for more detailed instructions about installing the HubSpot tracking code:
To install the HubSpot tracking code on any platform:
  • In your HubSpot Marketing account, navigate to Reports > Reports Settings
  • In the Tracking Code section, click Copy to clipboard.
hubspot tracking code
hubspot tracking code
  • Add the HubSpot tracking code directly before the </body> tag in the HTML of your website pages. Depending upon your website platform, you may be able to add the code globally to install it on all of your website pages or you may have to add it to the HTML of each of your pages. Contact your webmaster for additional setup assistance.

Please note: any pages built on HubSpot already have tracking code installed; you do not need to add the tracking code to these pages.