How to filter out traffic from your website analytics

Last updated: March 2, 2018

Available For:

Marketing: Basic, Pro, Enterprise
Sales: N/A
It's important to exclude your own traffic from your website analytics. Otherwise, any visit from a member of your own team will be counted in your HubSpot analytics. 

Why should I filter out my own traffic?

You should exclude your own web traffic so that you don't skew your HubSpot analytics data by the simple act of visiting your own site. Also, it is important to do this in the beginning because adding an IP address to filter out later will not retroactively remove historical internal traffic.

HubSpot makes it easy to exclude your own traffic by supplying your IP address.

Your IP address may be a:

  • Static IP address - This is one IP address that always stays the same.
  • Dynamic IP address - A range of IP addresses that change every time you access the internet.

What type of data will this filter?

When you exclude your own web traffic from being captured by HubSpot analytics, you can expect the following data to be filtered:

  • CTA views/clicks
  • Page views/visits
  • Form submissions
  • Clicked event graphs
  • Social clicks

Navigate to your account settings

In your HubSpot account, click your photo or avatar in the top right-hand corner, then click Settings.
On the left, select Install Code & Tracking. Then click the Advanced Tracking tab.
HubSpot Help article screenshot

Exclude traffic from IP addresses

Scroll down to the Exclude traffic section. You'll see that your IP address will be automatically populated. Enter additional IP addresses or IP ranges, using commas to separate different IP addresses and dashes to represent entire ranges of IP addresses. For example, use 63.139.127.5, 63.139.127.23 for separate IP addresses or 64.159.127.0 - 64.159.127.255 for different ranges. If you make changes to your network or have employees who visit the site from new networks, you can add additional IPs over time.

Both IPv4 and IPv6 addresses and ranges are accepted in this field.

Please note: once an IP address has been added to your list of traffic filters, no visits, page views, submissions, or events data originating from that IP address will be recorded in your HubSpot account. Adding IP address to your traffic filters does not retroactively remove historical internal traffic.

Need help finding an IP address?

You can discover IP address(es) in a number of different ways:

  • Go to http://whatismyip.com or http://ip4.me/. Your IP address will display at the top of the screen. Please note that if you are working remotely, this could change frequently.
  • Ask your IT department.
  • Call your internet provider and ask them what your IP range is.
  • Find out if your internet provider can provide you with a static IP for your corporate office or home network and use that instead.

Exclude traffic from referral domains

In From these referrers, enter referrer domains you'd like to exclude traffic from. This setting can help block unwanted (or spam) traffic. To learn more about how this feature works, check out this article.

HubSpot Help article screenshot
Please note: if you want to block traffic from your own external domains, check out this article instead.

Filter internet bot activity

Just above the Exclude Traffic section, you'll see a Bot filtering setting. Toggle the switch ON to enable bot filtering.

The Bot filtering option will prevent known bots (e.g., specific Amazon Web Services IPs) from counting towards and skewing your traffic analytics data. 

HubSpot Help article screenshot

Click Save at the bottom to take all your changes live.

HubSpot Help article screenshot

Was this article helpful?

Previous article:

Next article: