Skip to main content

Hubspot tracking code

The hubspot Tracking code enables conversion tracking and optimization easier by enabling the tracking of contacts between hubspot and other pages.

Written by Jennifer
Updated this week

The connection with WebinarGeek means we’ll automatically place the Hubspot tracking code on all your public pages.

All information on Hubspot about installing the code on your website can be ignored. We’ll automatically do this for you when you set up the tracking code.

Finding the tracking code

In your HubSpot account, click the settings ‘settings icon’ in the top navigation bar.

Navigate to your 'Tracking & Analytics' settings:

1. In accounts that only have access to MarketingStarter or HubSpot’s free tools, navigate to ‘Tracking Code’ in the left sidebar menu.

2. For all other subscriptions, navigate to ‘Tracking & Analytics’ and then ‘Tracking code’ in the left sidebar menu.

You should then see the tracking code in its entirety. What you need is just the numbers as shown in the screenshot

Connect with WebinarGeek

When you’ve found the tracking code you can enter it by navigating to the following area.

  1. In WebinarGeek, click 'Account' in the top right

  2. Click on 'Integrations'

  3. Choose 'Hubspot tracking code'

  4. Fill in the numbers of the code as your ‘Portal-ID’.

That’s it! Easy, right? When the connection is made you’re ready to start testing/using it.

Set up in Hubspot

After installation, set up tracking for the right domains and subdomains inside HubSpot so analytics are grouped properly. HubSpot specifically recommends reviewing:

  • Tracked domains/subdomains

  • Bot filtering

  • Internal traffic filtering

  • Cookie consent banner settings

This matters because otherwise your reports can be noisy or incomplete.

Using the tracking code

The tracking code starts by tracking anonymous visitors. HubSpot can later associate page views with a contact in certain cases, such as when someone clicks from a tracked HubSpot marketing email to a page that has the tracking code installed.

That means the tracking code becomes much more valuable when you combine it with:

  • HubSpot forms

  • Marketing emails

  • Tracked links

  • Lead capture flows

Open the main traffic reports

To view the data, go to:

  1. In the top navigation bar, click on the ‘Reporting tab’.

  2. Select ‘Reports’ from the dropdown menu.

  3. Click the ‘Analytics Tools icon’ (or link) in the upper right.

  4. Select ‘Traffic Analytics’ to open the main traffic dashboard.

In this area, HubSpot lets you analyze traffic by things like:

  • Source

  • Page

  • Device type

  • Country

  • Topic cluster

This is where most of your day-to-day insight gathering happens.

Did this answer your question?