We have a problem with Hubspot code on a page on our client's website, which is causing some data to be sent twice when the user clicks a button and is redirected to a subdomain (subdomain.ourdomain.com)
Looking at the source code for the page in question, it appears we have some Hubspot code in the page header which is doing some kind of tracking (I don't know how or why - I don't have knowledge of how Hubspot works as such)
It's this script:
Obviously we can't just remove that script from the header template without removing it from all pages and stopping the tracking, which was put there by the client for a reason.
But can we stop it tracking this specific subdomain somehow?
What happens is that when a user goes to the subdomain (where our client have Driveworks - a third party software application - installed) Hubspot adds an extra licence to the user session which is causing problems. So we need it to "ignore" this subdomain and not track it at all. Is this possible?