Disabled Web Visitor tracking on some domains

We use Hubspot on our marketing and saas for web visitor tracking, chat bot, CTA,s the usual.

What I don’t want happening is every page view from within our saas appearing in HubSpot, I only want web visitor tracking on the marketing site, but I still need CTA and CHatbot integration.

I am doing this on my page before the embed script loads but it doesn’t seem to be working as I’d hoped

```

var _hsp = (window._hsp = window._hsp || []);

_hsp.push([“setHubSpotConsent”, {

analytics: false,

functionality: true,

advertisement: false

}]);

_hsp.push([

‘identify’,

{

email: ‘john@exampled.com’,

id: '123,

},

]);

```

Is there any way to do this? Having every page load and interaction being sent and pinged to our sales team is way too noisy.

Hello @dombarnes,

Welcome to the Community!

From my understanding it sounds like you’d like to block page analytics, but be able to keep HubSpot assets like chat widgets, CTAs etc. functional on your site. Is that correct?
If so, you can limit tracking as seen in our documentation on the matter, and this community post. However, if your current roadblock is that you need your assets to function without tracking page views, then I’d like to loop in some additional resources to assist you.

I’d like to tag in some of our Top Contributors to see if they have any experience with this! @RubenBurdin, @SteveHTM, @MichaelMa

-- Do you have any suggestions for @dombarnes?
Thank you!

Sam, Community Manager

Hi Sam

I’d initially added our whole domain, as well as our marketing subdomain, to the Additional Site Domains list as it wasn’t entirely clear if/how this would affect the other parts of HubSpot. I’ve removed this so will see if that helps matters.

Hi @dombarnes , great to hear you’ve removed the full domain and marketing subdomain from the Additional Site Domains list. That’s a solid first step, as adding them there enables tracking across those areas. The Limit tracking to these domains setting in HubSpot’s Advanced Tracking should now help confine analytics to only your specified marketing site, reducing noise from SaaS page views while preserving chatbots and CTAs.

Client-Side Consent Approach

Your _hsp.push([“setHubSpotConsent”, { analytics: false, functionality: true, advertisement: false }]) code is on the right track for disabling analytics tracking per-page before the embed script loads. However, test it thoroughly on SaaS pages: functionality consent keeps interactive elements like CTAs and chat active, but ensure no page views still leak through by monitoring your Traffic Analytics tool over a few days.

Account-Level Settings

Navigate to Settings > Tracking & Analytics > Tracking Code > Advanced Tracking and toggle on Limit tracking to these domains, listing only your marketing subdomain (e.g., marketing.yoursite.com). Pair this with Limit cookies to subdomains if needed to isolate cookies further, preventing cross-subdomain pollution. This account-wide filter overrides broader domain additions and should minimize sales team pings from SaaS interactions.

Testing and Verification

After changes, use HubSpot’s Traffic Analytics to confirm SaaS page views drop off while chat/CTA events persist (e.g., via form submissions or widget interactions). If issues remain, exclude specific IP ranges or bot activity in the same Advanced Tracking tab for extra filtering. Let me know how the tests go!
Did my answer help? Please mark it as a solution to help others find it too.