Cookie Consent component
in progress
R
Roman Stepanov
Just use this product (it's free): https://github.com/68publishers/cookie-consent
Easy use. Works out of the box with
'@docusaurus/plugin-google-tag-manager'
. The modal with Cookie Consent will automatically appear on your site without installing anything!How it works: you create a special template in Google Tag Manager console. Then, when you use that gTag on your website - Google shows a cookie modal for you.
C
Christian
Hello :-)
Any update on this topic?
We really like Docusaurus; but GDPR is very important and using some custom built stuff is not our preferred choice...
Thanks,
Christian
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.
R
Roman Stepanov
Gaetan Covelli check this out https://github.com/68publishers/cookie-consent
And see my comment above with more info
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
R
Roman Stepanov
Joshua Chen add this to docusaurus docs https://github.com/68publishers/cookie-consent
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.
Load More
→