Azkali / e-make

MIT License
0 stars 0 forks source link

RGPD/CookieConsent: Ask the user for cookies #5

Open GerkinDev opened 5 years ago

GerkinDev commented 5 years ago

The front application should prompt the user to store informations in the browser.

Local Cart

This option allows the application to store the cart items of an anonymous user in the local storage, so that the cart can be retrieved when the user comes back. If it is not accepted, cart items of an the anonymous user is stored in memory, & is lost at every page refresh. Existing items in the local storage store are removed.

Note: For connected user, this authorization has no real effect

Tracking

Allows the site to use Google Analytics (& maybe other trackers) to analyse traffic. If it is accepted, the Google Analytics script is added to the page & events are bound. If it is not accepted, Google Analytics related cookies are removed.

Do not bother me

In case the user has declined both Local Cart & Tracking, the application can't know if the user have already seen the cookie consent. This option gives none of the authorizations above, but stores an item to say that the user has configured his consents. The stored item is inserted only if all above options are defined; otherwise, the stored item is removed.

Azkali commented 5 years ago

Cookie consent seems to function perfectly, however, we should open a new issue related to issue #8, to provide cookie infos intended towards final users

GerkinDev commented 5 years ago

Partially implemented: only the server cart isn't working for now