klaro-org / klaro-js

Klaro Privacy Manager. An open-source, privacy-friendly & compliant consent manager for your website.
https://klaro.org
Other
1.2k stars 256 forks source link

How do I enable or disable Klaro on demand with disable-by-default? #447

Open Aman-Aalam opened 2 years ago

Aman-Aalam commented 2 years ago

Hi Folks,

I need to be able to load Klaro script but not enable it right away. I want to enable it only if certain conditions are met. And since my site is a static website, I only have access to writing logic through frontend JS.

I see the function Klaro.show() perhaps enables Klaro, but can Klaro script be loaded but in a disabled state by default?

Thanks, Aman

NicolasVPC commented 2 months ago

Hello, did you manage to find a solution to this?

Aman-Aalam commented 2 months ago

Not yet, unfortunately.