Zaraz Consent Tool won't activate

For Workes & Pages, what is the name of the domain?

spotawheel.gr

What is the issue or error you’re encountering

Zaraz Consent Tool won’t activate

What steps have you taken to resolve the issue?

Hello.

I am currently trying to enable Zaraz Consent tool. I have enabled the ‘Enable Consent Management’ setting from the respective Consent panel and left the ‘Show consent modal’ disabled.

From the codebase I try to trigger the ‘zarazConsentAPI’ without any success.

document.addEventListener(‘zarazConsentAPIReady’, () => {
console.log(‘zarazConsentAPIReady’);
});

When I load the page I can see the Zaraz script running just fine. And the cookies associated to the tools I trigger from Zaraz. But I don’t see anything relative to the Consent tool, like the cf_consent cookie entry. Am I missing something in the Consent tool setup??

Screenshot of the error

You’re putting the event listener when the event was already fired.

Display the consent modal using zaraz.consent.modal = true and see the example in the Consent API · Cloudflare Zaraz docs to learn how to use both an event listener and zaraz.consent?.APIReady in case you need that.

I see. Thanks!