GPC Message (#15508)

* feat(gpc): warn user about enabling analytics

* fix(gpc): style tweaks

* fix(privacy): local storage doesn't understand Boolean

* fix(gpc): do record if user has opted in

* fix(privacy): don't flip flop if no value changed
This commit is contained in:
Kalista Payne
2025-09-11 14:58:10 -05:00
committed by GitHub
parent 472d03f276
commit 3dec49b72c
6 changed files with 76 additions and 9 deletions

View File

@@ -19,7 +19,7 @@ let analyticsReady = false;
function _getConsentedUser () {
const store = getStore();
const user = store.state.user.data;
if (!user?.preferences?.analyticsConsent || navigator.globalPrivacyControl) {
if (!user?.preferences?.analyticsConsent) {
return false;
}
return user;