Our app is using a custom build cookie consent banner, that we've had for a while and that is heavily customised to meet our needs. We've recently integrated Hubspot and would like to:
Use our own cookie banner;
Use the Hubspot Chat Flow functionality, with essential cookies (i.e. no need for consent);
Only enable hubspot analytics / tracking / facebook pixel once user gives consent;
I.e. how do we load the chat flow bubble only and enable the rest of the tracking functionality programatically?
Hey, did you find the solution to solve this issue? I am handling the website of ym company and we are also facing the same issue. Can someone please help us out? Thanks in advance
Hello. No, we haven't found a good solution. I believe this is either:
a bug in the Hubspot JS code, that has been there for at least half a year;
a business decision to not follow the cookie, to force people into using their own cookie banner;
I really hope it's not number 2, as that would be very unethical and maybe also illegal from their side. @Ben_M , do you have any thoughts on this? In particular, second paragraph from my answer on 17th of March.
That should be enough information for your team to evaluate what you need to control the cookies based on your consent banner, and allow the chat functionality to work.
mar 17, 20214:19 AM - editado mar 17, 20214:22 AM
Membro
Disable cookies before consent
Thanks for the reply, Ben. Unfortunately, we had explored those documents before and haven't figured out the right way to make sure we postpone the tracking parts of hubspot until we enable it programatically, if we don't use Hubspot's Cookie Banner. Or maybe there's a bug or something...
For example, we've tried to programatically set the `__hs_do_not_track` and `__hs_opt_out` cookies with `yes` value, before we inject the `js.hs-scripts.com`. This works good if the cookie policy banner is enabled in the Hubspot Settings. However, if we disable the cookie policy from there (so we don't show Hubspot's banner), Hubspot's script doesn't seem to respect those values and fills in the browser with the tracking cookies. And if we keep it enabled, then how do we start tracking afterwards, without refreshing the page? Is it intended?