Properties
Cookie banner properties can be accessed via the window.monsidoConsentManager
object.
Name | Type | Description |
---|---|---|
cookiesConsent.cookies | string[] | Return an array of string of consented cookie categories. For example: ['essential', 'basic', 'marketing', 'analytics', 'personalisation'] |
cookiesConsent.consented | boolean | Return true if consent is given. |
Example
console.log('consented categories:', window.monsidoConsentManager.cookiesConsent.cookies);
console.log('isConsented', window.monsidoConsentManager.cookiesConsent.consented);