Landing Pages

Exclude traffic from your site analytics

Last updated: February 10, 2021

Applies to:

All products and plans

After connecting your domain to HubSpot or installing the HubSpot tracking code on your external site, the next step is to exclude traffic from your site analytics, such as internal traffic, referrer domains, and bots. 

The bot activity and IP addresses you set will be excluded in the following data:

  • CTA views and clicks
  • Page views and sessions
  • Form submissions
  • Clicked events
  • Social post clicks

Filter bot activity

By turning this setting on, HubSpot will detect any activity from bots and remove the engagement provided from these bots from your analytics. Going forwards, this may impact the existing metrics in your marketing emails, pages, and more. 

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Tracking & AnalyticsTracking Code.
  • Click the Advanced Tracking tab.
  • Click to toggle the Bot filtering switch on to filter all activity from known internet bots.

  • In the bottom left, click Save.

Exclude traffic from IP addresses or referrers

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Tracking & analyticsTracking code.
  • Click the Advanced Tracking tab.
  • In the IP Addresses to Exclude text box, enter IP addresses or IP ranges to exclude:
    • Your current IP address appears above the text box. If you make changes to your network or have employees who visit the site from new networks, you can add additional IPs over time. If you need to find an IP address manually, try going to or, or ask your IT department or internet provider. If your IP address is dynamic, find out if your internet provider can provide you with a static IP for your corporate office or home network and use that instead. 
    • Both IPv4 and IPv6 addresses and ranges are accepted in this field.
      • An IPv4 address has the following format: x.x.x.x where x is called an octet and must be a decimal value between 0 and 255. Octets are separated by periods. An IPv4 address must contain three periods and four octets. The following examples are valid IPv4 addresses:

      • An IPv6 address can have either of the following two formats: Normal - pure IPv6 format or Dual - IPv6 plus IPv4 formats. An IPv6 (Normal) address has the following format: y:y:y:y:y:y:y:y where y is called a segment and can be any hexadecimal value between 0 and FFFF. An IPv6 (Dual) address combines an IPv6 and an IPv4 address and has the following format: y:y:y:y:y:y:x.x.x.x. The following examples are valid IPv6 addresses:

        • 2001:db8:3333:4444:5555:6666:7777:8888 (Normal)
        • 2001:db8:3333:4444:5555:6666: (Dual)
    • Use commas to separate different IP addresses (e.g.,,, and dashes to represent entire ranges of IP addresses (e.g., -
  • In the From these referrers text box, enter referrer domains or IP addresses to exclude. This is most commonly used to block unwanted or spam traffic. If you want to exclude traffic from your own external domains, learn how to track multiple domains with HubSpot.

  • In the bottom left, click Save.

    Please note:

    • Once an IP address or referrer domain has been added to your excluded traffic, no visits, page views, submissions, or events data originating from that IP address or domain will be recorded in your HubSpot analytics. Adding an IP address or referrer domain does not retroactively remove any historical traffic from those origins.
    • Excluding a subdomain does not exclude other subdomains on the same root domain, or the root domain itself. For example, if you choose to exclude, you can still analyze traffic from and