Skip to main content

Properties

Cookie banner properties can be accessed via the window.monsidoConsentManager object.

NameTypeDescription
cookiesConsent.cookiesstring[]Return an array of string of consented cookie categories. For example: ['essential', 'basic', 'marketing', 'analytics', 'personalisation']
cookiesConsent.consentedbooleanReturn true if consent is given.

Example

console.log('consented categories:', window.monsidoConsentManager.cookiesConsent.cookies);
console.log('isConsented', window.monsidoConsentManager.cookiesConsent.consented);