bancorprotocol / webapp-v2

https://beta.bancor.network
MIT License
1 stars 2 forks source link

GDPR cookie consent popup #546

Open ashachaf opened 2 years ago

ashachaf commented 2 years ago

as a user, i would like to actively opt in to cookie policy on the app/site on my visit (once in lifetime).

localstorage/cookies

since we want to remember the user's selection, we need to create the following:

  1. GDPRConsent cookie It can have 2 values: i. true ii. false

Process

user visit bancor.network or any of our subdomains (app, try, earn)

IF GDPRConsent = true, trigger google tag manager normally IF GDPRConsent = false, block google tag manager from firing ELSE, IF GDPRConsent doesnt exist -> show the cookie consent bar

cookie consent bar

https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?node-id=12143%3A353626 on click "dismiss" -> set GDPRConsent to True on click "manage settings" -> open cookie consent popup

cookie consent popup

https://www.figma.com/file/fwADI9wqDrRAdlMX8EddCw/Bancor-v3?node-id=12362%3A359438 on click "keep cookies" -> set GDPRConsent to True on click "decline cookies" -> set GDPRConsent to False