Consent state API
An easy way to get the current cookie consent state.
Retrieving the cookie consent state
window.legal.getCookieConsentState();
// Returns an object like:
// { analytics: true|false, marketing: true|false }Use cases
Google Tag Manager
Listening for consent-change events
Last updated