Is there a "revokeCookieConsent" equivalent for the OptIn of a Cookie?
Hi,
a third party cookie should OptIn or Revoke the HubSpot Cookie.
There is a function to revoke the HS Cookie:
/*
Example code to remove the consent banner cookies
when a visitor clicks an element with the 'removeCookies' id.
*/
document.getElementById("removeCookies").onclick = function() {
_hsq.push(['revokeCookieConsent']);
};
But is there also the equivalent function to optin the cookie?
Second Problem: Because the thirdparty cookiealert will manage the setup, we need the hubspot cookie to be active, to be optin, but not to be show. But the hubspot Backend will then remove the optin option ...
Are we the first to manage this type of cookie policy?
Is there a "revokeCookieConsent" equivalent for the OptIn of a Cookie?
Is there any update on this? I'm attempting to do the same thing by providing a custom cookie manager since our site uses multiple services that set cookies, the HubSpot-provided solution is not fit for purpose in this case.
Is there a "revokeCookieConsent" equivalent for the OptIn of a Cookie?
Hi @yuri , there's no function that we have for Cookies to push the opt in status. When users accept cookies, the hubspotutk cookie is dropped into the browser. The revokeCookieConsent function simply removes the cookies from the browser. We do not recommend using a third party to manage consent. We try to make things as straightforward as we can on HubSpot, but cannot accommodate custom setups like yours. I don't see why one of the options we provide won't work for your purposes?
Is there a "revokeCookieConsent" equivalent for the OptIn of a Cookie?
Unfortunately not using a third party tool to manage consent is not an option as soon as the website contains other third party codes like google analytics or advertising. In this case a third party consent manager is necessary. Hence there should be a way to connect hubspot with the CMP (e.g. telling hubspot to disable tracking unless the CMP sends positive feedback)