zenodo / zenodo-rdm

Zenodo, powered by InvenioRDM
https://zenodo.org
GNU General Public License v2.0
59 stars 28 forks source link

Cookie policy banner #759

Closed carlinmack closed 7 months ago

carlinmack commented 8 months ago

Implement a cookie consent banner on zenodo.org and all subdomains (about.zenodo.org, ...)

Image

// User require user to accept Matomo cookies before setting them 
_paq.push(['requireCookieConsent']);
{% if cookie_consent %}
// User accepted Matomo cookies
_paq.push(['setCookieConsentGiven']);
{% endif %}
carlinmack commented 8 months ago

A global template context processor should inject if the cookie consent cookie is set to true/false.

I don't believe this is necessary as Matomo handles whether cookies are set or not itself