material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[docs-infra] Add Cookie Banner and Analytics Provider

Open dav-is opened this issue 1 month ago • 3 comments

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?

image

Preview URL

dav-is avatar Dec 08 '25 02:12 dav-is

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%)

Details of bundle changes

Generated by :no_entry_sign: dangerJS against d79f6b7b9e99e7ae2ea258f9b93b90981c8bee98

mui-bot avatar Dec 08 '25 02:12 mui-bot

@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.

mnajdova avatar Dec 09 '25 13:12 mnajdova

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)

Janpot avatar Dec 09 '25 14:12 Janpot