michnhokn / kirby-cookie-banner

A Cookie Consent Modal for Kirby
MIT License
67 stars 9 forks source link

cookie banner only by call #5

Closed fritzlaszlo closed 3 years ago

fritzlaszlo commented 3 years ago

Heya, thanks for the fantastic plugin! It's a lifesaver!

I realized on many smaller website projects I don't use cookies at all. The only recurring exceptions are not-so-privacy-confirm embeds from various platforms. So inspired by githubs removal of the cookie banner (https://github.blog/2020-12-17-no-cookie-for-you/) I was wandering:

Is there a way to prevent the banner plugin from popping up at all until you actually call it via a button? Maybe another variable could be introduced, that is by default true, so the regular behavior doesn't change. And only when false, it prevents the cookie modal snippet from automatically popping up, but keeps button+js call possibility.

This way the banner could be kept away from visitors until they actually stumble on some third-party content on one of the subpages, where an overlay asks them to confirm the loading process (aka triggers the cookie banner and then the rest).

michnhokn commented 3 years ago

Hey @fritzlaszlo that is an excellent idea. I will implement it as soon as possible. Thanks for the input.

michnhokn commented 3 years ago

Release 1.0.8