APIs & Integrations

Anton
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Custom Cookie opt-out

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

Anton Bujanowski Signature
0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Custom Cookie opt-out

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:

0 Upvotes