Skip to content
  • There are no suggestions because the search field is empty.

HubSpot analytics: understanding website tracking and reporting

HubSpot analytics uses the HubSpot tracking code to collect and report on website activity, traffic sources and visitor behaviour.

This information can help you measure performance across marketing, sales and service activities. Analytics reports can also be combined with dashboards and other HubSpot reporting tools to monitor performance over time.

HubSpot's analytics tools form part of the platform's wider reporting and data capabilities.

HubSpot guide:
Explore HubSpot reporting and data topics

HubSpot tracking code

The HubSpot tracking code is a JavaScript snippet added to your website that enables HubSpot to collect analytics data.

Where appropriate, HubSpot can also associate website activity with CRM records, helping connect website behaviour with information held elsewhere in the platform.

Key considerations

  • The tracking code should be consistently deployed across the relevant pages of your website
  • Multiple domains, subdomains or external platforms may require additional review
  • Cookie consent and privacy settings can limit the data that is collected

HubSpot guide:
Install the HubSpot tracking code

Target domain configuration

HubSpot analytics reports use a defined target domain to determine which website traffic should be included.

Your target domain should therefore reflect the primary public website you want HubSpot to track and report on.

Key considerations

  • The target domain should reflect your primary public website
  • Incorrect configuration can result in missing or inflated traffic data
  • Organisations using multiple domains should ensure their configuration reflects their reporting requirements

HubSpot guide:
Set your target domain for tracking

Filtering internal traffic

Visits from your own employees, agencies or other internal users can affect website analytics and potentially distort your reporting.

IP filtering can be used to exclude this traffic from HubSpot analytics.

Key considerations

  • Internal traffic can significantly affect reporting accuracy
  • IP addresses can change and should be reviewed regularly
  • Filtering applies specifically to HubSpot analytics

HubSpot guide:
Filter internal traffic from your analytics

Additional tracking considerations

Some websites may require additional consideration when implementing analytics tracking.

Examples include:

  • Single-page applications
  • Embedded forms or content
  • Subdomains
  • Third-party platforms

These should be considered when reviewing how consistently HubSpot tracking is deployed across your digital presence.

HubSpot can also be integrated with Google Analytics to provide additional cross-platform visibility.

HubSpot guide:
Connect Google Analytics to HubSpot

HubSpot Analytics vs Google Analytics

HubSpot Analytics and Google Analytics are designed for different purposes, use different tracking methodologies and can help answer different questions.

As a result, you should not expect the figures reported by the two platforms to match exactly.

HubSpot Analytics

HubSpot Analytics is particularly suited to CRM-connected reporting.

It can support areas such as:

  • Conversion and lifecycle tracking
  • Attribution connected to contacts, deals and revenue
  • Marketing, sales and service reporting
  • Understanding website activity alongside CRM information

HubSpot guide:
Understand HubSpot's analytics tools

Google Analytics

Google Analytics is particularly suited to understanding website usage and engagement.

This can include:

  • Page views
  • Sessions
  • Events
  • Media and advertising performance
  • Channel performance

Google Analytics does not natively connect website activity with HubSpot CRM records in the same way as HubSpot's own analytics tools.

HubSpot guide:
Connect Google Analytics to HubSpot

Why the numbers can differ

Differences between HubSpot Analytics and Google Analytics are expected.

They can be caused by factors including:

  • Different tracking codes and session definitions
  • Cookie consent and privacy settings
  • Different approaches to bot and internal traffic
  • Anonymous visitors compared with CRM-identified users
  • Different attribution models

Even when HubSpot and Google Analytics are integrated, they remain separate analytics systems.

Rather than expecting identical figures, each platform should be understood in the context of what it is designed to measure.

What to remember

HubSpot analytics helps connect website activity with the wider information held within your CRM.

Accurate reporting depends on your tracking code, target domain, internal traffic filters and privacy settings being configured appropriately.

HubSpot Analytics and Google Analytics can also be used alongside one another, but differences between their figures are normal because the platforms use different methodologies and serve different reporting purposes.