# Exclude Subdomains from Website Traffic Reporting

**URL:** <https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250>\
**Category:** Reporting & Analytics\
**Tags:** analytics-tools, reports, dashboards\
**Created:** [July 15, 2025, 12:15pm UTC](https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250 "2025-07-15T12:15:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![02092](https://avatars.discourse-cdn.com/v4/letter/0/7c8e57/32.png) [@02092](https://community.hubspot.com/u/02092)\
**Post date:** [July 15, 2025, 12:15pm UTC](https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250/1 "2025-07-15T12:15:45Z")

</div>

I’m encountering an issue with excluding certain subdomains from my website’s traffic reports on Hubspot.  
We have several apps in use, and the traffic from these apps shows up as “direct” traffic, even though they are already part of our contacts and shouldn’t be counted in the website metrics.

The specific subdomain I want to exclude is [solution.app.domain.com](http://solution.app.domain.com). However, it seems that HubSpot doesn’t allow blocking a subdomain if it’s part of the same root domain. For example, if [domain.com](http://domain.com) is set as a site domain, [app.domain.com](http://app.domain.com) cannot be excluded.

I want to exclude the app’s traffic specifically without affecting the entire domain.  
How to address this? Any assistance would be appreciated.

---

<div class="post-metadata">

**Author:** ![ArisudanTiwari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/arisudantiwari/32/93919_2.png) [@ArisudanTiwari](https://community.hubspot.com/u/ArisudanTiwari)\
**Post date:** [July 15, 2025, 8:14pm UTC](https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250/2 "2025-07-15T20:14:27Z")

</div>

Hi @02092 ,

Have you tried using **“Limit tracking to these domains”** under your HubSpot tracking settings?

You can configure this by going to:

> **Settings → Tracking & Analytics → Tracking Code → Advanced Tracking**  
> Then enable the toggle for **“Limit tracking to these domains”**

Here’s the official help doc for reference: [Set up site tracking in HubSpot](https://knowledge.hubspot.com/reports/set-up-sources-tracking)

Alternative Option: If your internal app traffic comes from fixed or known IPs (e.g., your team, office, or servers), you can also try this - Go to: Settings → Reports → Tracking Code → Advanced Tracking → Exclude traffic from these IP addresses

Then enter your internal IP ranges.  
This will exclude analytics data from those IPs across all domains and subdomains.  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![02092](https://avatars.discourse-cdn.com/v4/letter/0/7c8e57/32.png) [@02092](https://community.hubspot.com/u/02092)\
**Post date:** [July 17, 2025, 10:56am UTC](https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250/3 "2025-07-17T10:56:28Z")

</div>

Thanks for your input.

1. “Exclude traffic from these IP addresses.” does not work for us since not only internal.  
2. With Hubspots “Limit tracking to these domains” will it still not track it because

[app.domain.com](http://app.domain.com) still falls under the umbrella of [domain.com](http://domain.com)?

HubSpots custom reports I have found to be quite limiting regarding this. I cannot exclude entrance URLs from the reports.

---

<div class="post-metadata">

**Author:** ![Wesimplifi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wesimplifi/32/26662_2.png) [@Wesimplifi](https://community.hubspot.com/u/Wesimplifi)\
**Post date:** [July 16, 2025, 12:04pm UTC](https://community.hubspot.com/t/exclude-subdomains-from-website-traffic-reporting/136250/4 "2025-07-16T12:04:22Z")

</div>

Hi @02092  
HubSpot doesn’t have native way to exclude subdomain traffic

If the traffic from `solution.app.domain.com` is internal or predictable (like coming from your team, clients, or partners), you can block that traffic using IP filters in your HubSpot settings. Just go to Settings \> Reports & Analytics \> Tracking Code \> Advanced Tracking and add those IPs under “Exclude traffic from these IP addresses.”

In GTM, you can set up triggers to block HubSpot’s tracking script from firing on that subdomain. This way, no tracking request goes to HubSpot at all from the app.

if you’re using custom reports or external tools like GA4, you can filter traffic by hostname or landing page URL patterns and then create views that exclude anything with `app.domain.com`.
