craft-cookies icon indicating copy to clipboard operation
craft-cookies copied to clipboard

Permission Sets

Open andrewfairlie opened this issue 8 years ago • 1 comments

It would be great if we could add 'permission sets' on the fly, which may aid with GDPR legislation with the opt-in and privacy by design aspects of it.

For example, if the user has said that tracking cookies are okay, it would be great if we could go.

{% if craft.cookies.permission('tracking') %}
   {!-- Facebook pixel code here --}
{% endif %}

andrewfairlie avatar Apr 11 '18 18:04 andrewfairlie

hmmmm. How would you envision these being handle? I'd assume you'd need to store the preferences on a per-use basis somewhere?

I'm not sure if it makes sense to have something like this baked in, but maybe it does -- can you outline how you think it'd work?

khalwat avatar Jul 22 '18 06:07 khalwat