1. Glossary
  2. HubSpot
  3. HubSpot Tracking Code
HubSpot

HubSpot Tracking Code

Definition

The HubSpot tracking code is a JavaScript snippet, unique to each account, that records website visits. It is included on HubSpot-hosted pages automatically and can be installed on an external site.

Key takeaways

  • It sends traffic data to HubSpot.
  • It links page views to known contacts.
  • On external sites it also loads chat widgets and can capture non-HubSpot forms.

What depends on it

Much of HubSpot's marketing reporting starts with the tracking code. If it is missing from part of your site, that traffic and those conversions are invisible to HubSpot.

  • Traffic and source reports
  • Contact page-view history
  • Chatflows and pop-up forms

Frequently asked questions

Do I need to install it on HubSpot pages?

No. Pages hosted on HubSpot include it already.

How do I check it is working?

HubSpot shows whether the code has been detected on your domains in the tracking settings.

Related service: HubSpot services from Superwork

Related terms