elleracompany / craft-cookie-consent

GDPR-Compliant cookie consent banner for Craft CMS
Other
6 stars 5 forks source link

window object to read in JavaScript #65

Closed kevinmu17 closed 2 years ago

kevinmu17 commented 3 years ago

It would be nice to have a window.ccc object which contains all the choices for a consent or denial. So we can communicate outside a site (eq Google events)

For example:

if(window.ccc.default-marketing === 1){
       // communication to a service
}
knynkwl commented 3 years ago

+1

kevinmu17 commented 3 years ago

Any update on this guys?

sieir commented 3 years ago

Sorry for the lack of response; spring's been/is very hectic for us. This shouldn't be that big of a feature to implement, however our current lack of time unfortunately pushes this more towards the summer at the earliest.

If you needed this yesterday, we are more than happy to accept a pull request (given it works well and doesn't break anything), but between that (and a kudos in the release notes) I unfortunately can't promise anything or you an ETA at this time.