window.didomiOnReady = window.didomiOnReady || [];
window.didomiOnReady.push(function (Didomi) {
if (Didomi.isConsentRequired()) {
// Consent is required: your visitor is from the EU or you are an EU company
// Only enable the vendor when consent is given
Didomi.getObservableOnUserConsentStatusForVendor('vendor-id')
.subscribe(function (consentStatusForVendor) {
// The consent status for the vendor has changed
if (consentStatusForVendor === true) {
// The vendor has consent
} else if (consentStatusForVendor === false) {
// The vendor does not have consent
} else if (consentStatusForVendor === undefined) {
// The consent status for the vendor is unknown
// Consent is not required, enable your vendor immediately