Reports

How to install your HubSpot tracking code on an external website with Marketing Free and Starter

Last updated: November 21, 2016

Available For:

Marketing: Free, Starter
Sales: N/A

The tracking code included with your HubSpot Marketing Free or Starter account is what allows HubSpot to gather correct information into Collected Forms and Lead Flows. 

To get your HubSpot tracking code:
  • From your HubSpot Marketing Free or Starter account, navigate to Settings.
  • Click Installation from the left side menu. Under the Tracking Code installation section, choose Copy to copy the embed code displayed to your computer's clipboard.

  • Navigate into your external system where you want to place this embed code and paste directly before the </body> tag in the HTML of your website.

Depending upon your website platform, most systems have a global area to add code that will install it on all of your website pages. If you're unsure about where to paste the code, it's advised that you contact your company's webmaster for additional setup assistance.

Below is a list of widely used CMS platforms with instructions to guide you in installing your HubSpot tracking code. 

Learn how to install your tracking code in:

WordPress

Wix

Unbounce

  • Full instructions from Unbounce can be found in this article.

Magento

  • Full instructions from Magento can be found in their Design User Guide available here.

Squarespace

  • Full instructions included in this article. (Only follow instructions that navigate you around Squarespace.)

Google Tag Manager

Drupal

Blogger

  • Head over to your Blogger account Settings, look for Template inside the menu.
  • Inside Template you'll see an Edit HTML button.
  • Inside the Edit HTML menu will be the HTML for your template, search for the </body> tag and past your Embed Code just above this tag. 

GoDaddy

  • Log into your Website Builder and click Edit Site.
  • In the top right corner, click the '3 bar icon' & select Edit Site Settings.
  • Click the tab Site-wide Code and paste the Embed Code.
  • Click OK to saved changes.

Joomla

Weebly

  • Log into Weebly and navigate to Settings.
  • Navigate to SEO.
  • Pasted the Embed Code into the Footer Code box.
  • Click Save (bottom right).
  • Click Publish (top right).

Placester

  • At this time, it is not possible to install the HubSpot tracking code on a Placester site, as this platform does not support the ability to add custom JavaScript (like the HubSpot tracking code) to the body section of a website.