How to override or how to customize the Hubspot Tracking Script?
Jun 19, 2020 10:43 AM
Hello, is there a way to override or to customize the HubSpot Tracking Script, so, the SameSite attribute will have None value (SameSite=none)? I have created an integration between a software product I am using called Ion Interactive and HubSpot to integrate custom forms made in Ion with HubSpot forms. In addition, the custom-made Ion forms can be embedded on an external site using an iframe.
The issue has become that we keep getting an error reading this on the form submissions if we embed the forms on an external page
the cookie needed to link form submissions to existing contacts isn’t being sent. You’ll need to ask your developer to update the integration for this form.
We found that the HubSpot Tracking Script is creating hubspotutk cookie. And it is this cookie, created by HubSpot, that has SameSite=Lax attribute. This means that it will be sent to HubSpot ONLY directly from Ion, not like we want to do now, as an embedded form on an external page.
In order to allow the cookie needed to link form submissions to existing contacts we will need to change the SameSite attribute to None value (SameSite=none). Any help or guidance with this will be greatly appreciated.