Reports

Exclude traffic from your site analytics

Last updated: October 17, 2018

free

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. It's important to set this up as early as possible as historical traffic cannot be retroactively removed from your site analytics.

Data filtered from excluded traffic

The following data will be filtered from excluded traffic:

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

Filter bot activity

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to ReportsTracking 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 Reports Tracking Code.
  • Click the Advanced Tracking tab.
  • In the Exclude Traffic section, your IP address will be automatically populated.
  • In the IP Addresses to Exclude text box, enter IP addresses or IP ranges to exclude. If you make changes to your network or have employees who visit the site from new networks, you can add additional IPs over time. Learn how to find your internal IP address(es).
    • Use commas to separate different IP addresses (e.g., 63.139.127.5, 63.139.127.23), and dashes to represent entire ranges of IP addresses (e.g., 64.159.127.0 - 64.159.127.255).
    • Both IPv4 and IPv6 addresses and ranges are accepted in this field.
  • 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, refer to this article instead: 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.

Find your internal IP address(es)

There are several methods to find your internal IP address(es):

  • Go to http://whatismyip.com or http://ip4.me. Your IP address will display at the top of the screen. If you are working remotely, this may change frequently depending on your network and location.
  • Ask your IT department.
  • Call your internet provider and ask them what your IP range is.
  • 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.

Was this article helpful?

If you still need help you can get answers from the , or to contact support.