+ 2

How to make a GDPR popup once when any part of your website is loaded?

I have searched SL and do not see it. I am asking this question for the SL badge too. I would appreciate any guidance in making the one time popup that talks about cookies and GDPR compliancy. My site is in php and not on SL. I do use separate header and footer php files that get pulled in by the "require" protocol in php, so I suspect, I'd put the code in either the header or footer file. Yes, I could google, but I'm asking for the SL badge and I want to see if anyone has direct experience of implementing a cookie policy popup. Thanks for reading.

13th Nov 2019, 9:16 AM
Xyenia 🦉
Xyenia 🦉 - avatar
1 Antwort
+ 3
I'm not really into php, but it's general question, so you could just set cookie ^^ at beginning you check if cookie let's say "acceptedGdpr" is set to true, if not -> show pop up, if yes then don't show it that could be bad only if someone cleared cookies. if you wanna be sure it won't happen even then, you could save this information to database
13th Nov 2019, 2:52 PM
Jakub Stasiak
Jakub Stasiak - avatar