Stop hubspot from automatically adding js-hs scripts to head section of my website
Hi,
We use hubspot for various domains. We require the live-chat/messages functionality on one of our domains. However, on that domain we want to disable the collected forms functionality.
We were able to achieve this by modifying the js-hs script and adding it in footer. But after a few days, we noticed that the js-hs script it re-added in head section of our site.
How do we stop that script from getting added? Is it something automatic or some hubspot settings have changed?
Since you have the HubSpot script loader in the header of your page (http://prntscr.com/m2l6b4), HubSpot will automatically load any scripts that you opt to use (Collected forms, messages, etc.). There unfortunately isn't a way to prevent this
Stop hubspot from automatically adding js-hs scripts to head section of my website
Hi @Connor_Barley, actually I am trying to achieve it by manually just adding the messaging part and excluding the collected forms script code in the footer of my website. This was working fine for a couple of days. The form data was not collected and even the chat bot was working all fine.
However since a week's time, we see that hubspot is automatically adding a lot of scripts in head section of that site. Just wanted to know if this is part of any new updates in hubspot recently.
Stop hubspot from automatically adding js-hs scripts to head section of my website
Hey @Helly_Panchal, there's not currently a way to disable Collected Forms on a per-domain basis while still using the tracking code for other purposes. It seems like a good feature though, so I'd recommend posting it in the Ideas forum for tracking purposes, while I reach out internally.