GDPR; Lightbox that user can disable by clicking a button.

Hi friends, so… a question;

Due to the GDPR Compliant, I’m interested in creating a cookies notification using a lightbox pinned to the upper screen. Now, since the notification will be on each of the pages, I want to offer the user an option to agree for the privacy policy by approving and turning off the notification by clicking on a button (let’s say ‘I Agree. Don’t Show It Again’ button).

In other words, until the user clicks the ‘I Agree. Don’t Show It Again’ button, the lightbox will appear on each page and when the user does - the lightbox will be turned off. Notice, I have several languages in my website, so the code can’t restrict me to one language (meaning there has to be several lightboxes each for a different languages).

That’s it. Anyone?:slight_smile:

Best,

Lior

Hi Lior,
It’s a similar case to the example mentioned here . Basically, instead of translating the buttons and text, you should translate the text component added to the lightbox. The code should be added to the lightbox instead of the page. Moreover, you should use the openLightbox function on the onReady function of each page to assure that it is opened on each page displayed. To check if the user already checked the “Agree” checkbox, I would use the Wix Storage API .

I hope it’s clear. If not, please clarify which of the steps you were not sure about.

Good luck,
Tal.