Streaming live at 10am (PST)

Problem with using Set cookie code / probleme avec Cookie template


#1

Hi guys

I’m working for a client on a website and i need to show a popup with french grpd law text only one time per session.

I have tried to implement the following example by @vincent : https://webflow.com/website/Webflow-Cookie-Template but the pop-up is always opening when i’m coming back to the home

Here is my website: https://preview.webflow.com/preview/josuat?utm_source=josuat&preview=e91aae89e7dc7bd65c426f54125fe172

Thanks in advance for the help


#2

@Emmanuel_Hourquet take a look at this one


#3

The code you use is different from the code I use on my template.

Also, this implementation is not suitable for GDPR (BTW it’s GDPR in english, RGPD in french, it’s never GRDP :wink: ) With GDPR you gotta get the consent BEFORE setting any cookie. Just saying “Hey we use cookies, you gotta be ok with it” while you have already set the cookie, isn’t making you respect GDPR at all. You gotta get the consent firstn, then set the cookie after that. You also have to offer an alternative for those who don’t want to accept your cookies or analytics. Here, not the technology nor the message used respects GDPR.


#4

Thanks i will check this plugin then


#5

Hi
Yes indeed this is a pain so i will look at the plugin mentionned before

Regarding your code i have only modified the .show() function which is doing display:block into display:flex which can be actually convenient for some people

Regarding the text in the popup this is for now a placed holder and will make sure it is 100% compliant with the eu laws


#6

Isn’t it why it doesn’t work anymore? If I apply your code to my template, it doesn’t work as well.


#7

Well it should not break anything as this is current javascript function but will check again