[docs-infra] Add Cookie Banner and Analytics Provider
Adds the init script for https://www.apollo.io/ and asks for consent from the user:
Cookie Preferences We use cookies to understand site usage and improve our content. This includes third-party analytics. [Essential only] OR [Allow analytics]
Essential only does not send data to Apollo and Google Analytics is set to analytics_storage: 'denied'.
These are the defaults Google defines
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'analytics_storage': 'denied', // we update this when the user allows it
Do we need to enable these other permissions? If so should we alter the message we display?
Netlify deploy preview
https://deploy-preview-47445--material-ui.netlify.app/
Bundle size report
| Bundle | Parsed size | Gzip size |
|---|---|---|
| @mui/material | 0B(0.00%) | 0B(0.00%) |
| @mui/lab | 0B(0.00%) | 0B(0.00%) |
| @mui/system | 0B(0.00%) | 0B(0.00%) |
| @mui/utils | 0B(0.00%) | 0B(0.00%) |
Generated by :no_entry_sign: dangerJS against d79f6b7b9e99e7ae2ea258f9b93b90981c8bee98
@noraleonte can you provide any feedback on the design side? Thank you! :) Also, let's follow https://mui.com/material-ui/react-dialog/#non-modal-dialog for the interactions.
Would probably be a good idea to try this out with X before merging. (You can just point @mui/monorepo to your fork ina PR)