hathitrust / firebird-common

Other
0 stars 0 forks source link

DEV-845: implement cookie consent banner #58

Closed carylwyatt closed 8 months ago

carylwyatt commented 8 months ago

Cookie consent logic workflow

I made a flowchart to help explain the logic sequence: https://hathitrust.atlassian.net/wiki/spaces/~633ac40a7f85f16777a16b93/whiteboard/2746384415

tl;dr

There are four cookies that we set. All are null by default, which block all associated scripts and functions. When set to true:

Testing new components

Before you begin testing, please clear your cookies: chrome://settings/content/all?searchSubpage=hathitrust

On preview.www.hathitrust.org (or any of the apps on preview):

Known issue

If a user accepts statistics tracking and later opts out of statistics tracking, the hotjar cookies remain in the browser. I need to update the hotjar scripts to remove the hotjar cookies when tracking preferences are set to false.

Changes

netlify[bot] commented 8 months ago

Deploy Preview for hathitrust-firebird-common ready!

Name Link
Latest commit 267d8301ba5692e39f9afd31ba3bdcc522e58fdd
Latest deploy log https://app.netlify.com/sites/hathitrust-firebird-common/deploys/65ea321b11b4480008548e99
Deploy Preview https://deploy-preview-58--hathitrust-firebird-common.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.