Cookie Consent component
in progress
b
bursel
This is a really great site. Thank you for your sharing. Yutulabilir Mide Balonu Fiyat https://www.obezitecerrahi.com/
G
Gaetan Covelli
Hello, any update about this? It would be awesome to have a built-in consent dialog for cookies for the GA/GTM plugins, so we would not have to use a third-party solution or build one by ourselves.
Or at least, if not possible, it would be nice to raise awareness in the documentation of those plugins that using them will make the website non-compliant with the EU ePrivacy directive and that a cookie consent banner is needed.
Actually, right now, even https://docusaurus.io/ is not compliant with the ePrivacy directive since it stores non-essential cookies on user's devices without any user consent. Meaning that it's breaking the law in EU countries like in France for example.
Edit: But thinking about it, it seems quite difficult for Docusaurus to provide such solution since it's more complex than it looks like, and it would need to be adjustable depending on the user's country / state to comply with the different regulations, and there are other requirements such as categorizing the cookies (essential / non-essential etc.), having a preference center where the users can adjust their preferences, and have a way to access these preferences easily anytime so the users can change their consent (in a link in the footer for example, or a floating cookie preferences button). And each of us would need to maintain an up to date cookie list of the cookies we are using and also be aware of what can be categorized as essential / non-essential.
So yeah not an easy task :D and that's why third-party services for this exist. I feel that gets a bit outside of the scope of Docusaurus and maybe each user should implement their own solution? I'm not sure if there are some open-source projects that could help integrate this more easily in Docusaurus.
doteage manygoalie
The General Data Protection Regulation (GDPR) does not allow for analytics to be added to a website without a permission banner. Therefore, there is no simple method to integrate Google Analytics with Docusaurus without violating GDPR and compromising user privacy. https://phrazle.co
F
Fokke Dekker
This is marked as in progress since 2 years ago. Is this still being worked on?
Joshua Chen
Fokke Dekker: Yes, it is. There's still uncertainty whether we should disable local storage usage as well, because "usage of local storage for the purpose of user experience", from my reading, is considered GDPR-compliant.
Hogan Garry
There is a significant demand from within Facebook for a cookie consent banner to be implemented.
Users should be allowed to make use of Docusaurus even if they have not given their approval. In this scenario, we shouldn't set any cookies, and we also shouldn't make use of the local storage.
Joshua Chen
Hogan Garry: Do you have sources that local storage should not be used? Last time we checked, our use of local storage is perfectly fine within the boundaries of GDPR or other legislations.
Also, AFAICT, we don't use cookies anyway.
Reece Atkinson
Joshua Chen is this complete yet?
Joshua Chen
in progress
Sébastien Lorber
planned
There is a strong internal need at Facebook to have a cookie consent banner.
Users should be able to use Docusaurus without consenting. In such case no cookie must be set and we shouldn't either use localstorage.
Joshua Chen
Sébastien Lorber: I think we can use local storage? We only use it to store data for the conveniency of the user.
Hugo van Rijswijk
I think Docusaurus should support this by default. Adding Google Analytics to a website without a consent banner is not GDPR-compliant. That means that there's no easy way to add Google Analytics to Docusaurus without breaking GDPR and disrespecting users' privacy.
The Google Analytics plugin could show a simple banner, save the consent in localStorage, and only activate Google Analytics if consent has been given
Load More
→