-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement handling of cookie consent and related logic #544
Conversation
✅ Deploy Preview for ami-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ami-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
const GTM_ID = 'G-EX26RXX0YT' | ||
|
||
export const Analytics = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In #351 we said to use a React lib for this, however the most popular one for Google Tag Manager did not work out of the box and after a closer look it seemed pretty outdated.
I suggest we use this custom implementation, at least until we have more advanced analytics. It's pretty much same as before, except we conditionally load the scripts depending on cookie consent status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! I am very excited about the new userPreferences
object!
Summary of changes
Fixes #350, #351 and #541
Summary of cookie dialog logic
Cookie categories
This is how we currently categorize the app's stored items.
Comments
We are awaiting response from Mila Legal on approval on both copy and logic for cookie handling. The current implementation is based on previous experiences and other sites from Mila.
Screenshots