Custom Cookie opt-out


#1

Hi,

since the HubSpot Cookie Opt-out is just for the HubSpot Cookie some of our customers wanted to know if it's possible to trigger multiple Cookie opt-outs with the decline button.
After some research I've found this code to opt out the Google Cookie:

and the accociated Trigger

<a onclick="alert('Google Analytics wurde deaktiviert');" href="javascript&colon;gaOptout()">Google Analytics deaktivieren</a>
I would upload the script via FTP/data-manager to Hubspot and replace the decline button with the trigger or are there other ways to display multiple Cookie opt-outs?

thanks

Anton


#2

Hi @TRIALTA-Anton,

If you're using HubSpot's cookie banner, you can trigger other cookie-revoking scripts by using the 'Get privacy consent status' method: