Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cookie banner #115

Merged
merged 5 commits into from
Mar 27, 2024
Merged

Add cookie banner #115

merged 5 commits into from
Mar 27, 2024

Conversation

carlinmack
Copy link
Contributor

@carlinmack carlinmack commented Mar 13, 2024

Close zenodo/zenodo-rdm#759

Currently the Matomo tracking code is repeated in individual templates (base-about.html, base-blog.html, base-help.html etc)

This PR refactors these repeated code blocks into a macro which passes the site ID for the analytics and introduces tracking to the pages which had been forgotten.

Additionally the cookie banner from zenodo/zenodo-rdm#766 is introduced. As we don't have Semantic UI, I have imported the minimal set of styles to make it look okay and adjusted the Javascript to not use Semanic UI's .fade. Finally we set the cookie on .zenodo.org rather than / so that the cookie works across domains.

Note: do we need to link to cookie policy on https://developers.zenodo.org/? I believe we don't use tracking cookies here

image

@slint slint merged commit fda5c1d into zenodo:master Mar 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cookie policy banner
3 participants