I would like to know if managing consent set by users in the code side is possible. Let say that all cookies are allowed and we want to change status of the analytical cookies to false. Can we do that without using cookie consent banner? If yes how?
I've tried to figure this out from cookie consent banner API documentation. All I found was that you can read the status of the consents but I could not find solution how to change the status of specific cookies.
Why I ask this is because I try manage Hubspot cookies with Piwik banner. I've stored Piwik's consents to cookie. I would like to take information from that cookie and according to it make changes to Hubspot's consent status.
Thanks for the answer @Jaycee_Lewis ! What does this text in documentation mean? I understood that it would be possible.
"Using a combination of CSS and JavaScript to hide HubSpot's banner from the visitor, then configuring the third-party banner's button clicks to correspond with HubSpot banner button clicks. This would enable you to automatically set HubSpot consent banner preferences through your third-party banner without displaying both to visitors."
Hi, @RSalmi👋 Welcome to our community! Thanks for your question.
HubSpot does not support programmatically changing consent status for cookies, due to the requirement for explicit consent by the user. Managing cookie consents and preferences must be done in a way that allows users to give their explicit consent, typically through a consent banner or similar user interface directly interacted with by the user. We'll leave this open in case other community members have any additional insight to offer.