Skip to main content
The widget script exposes window.KatlaConsent for programmatic access to consent state.

Prerequisites

Checking specific cookies or categories

Listening for changes

If you use Google Analytics or Google Ads and want to signal consent state via Google Consent Mode v2, use setupGoogleConsentMode() from the SDK:
This sets default consent to denied for all Google parameters, then automatically updates them when the visitor makes a consent choice. See the Google Consent Mode guide for full details.

Regulation and GPC

Properties

Methods