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

Bug 1879792 - Add a cookie banner to BMO #2306

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dklawren
Copy link
Collaborator

@dklawren dklawren commented Aug 30, 2024

From bug:
We should include a Cookie Banner on BMO to reduce our exposure to legal risks from changes in EU and US privacy law of the last several years.
BMO has a number of non-essential cookies that improve the UX of the site. Even though these non-essential cookies are not used for tracking purposes, Legal have advised that a cookie banner is still warranted.

  • This pull request uses JS code written by the web team for use in Mozilla web properties that I have vendored into the codebase since we do not use webpack.
  • I updated the BMO JS to also not set keys in localStorage if cookie consent is rejected.
  • The changes also look at a special header that is already included by CloudOps which has the region code for the client. If the region is in the whitelist then it will show the banner, otherwise all works as before.
  • GoogleAnalytics code is removed completely as we do not use it anymore.
  • There is a new input in the user preferences to turn on or off cookie consent even after clicking the banner.

Let me know if you have any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant