Compare commits

..

2 commits

Author SHA1 Message Date
835a400d2a disabled analytics 2025-07-06 12:25:09 -05:00
ba25a49d86 disabled analytics 2025-07-06 12:23:45 -05:00

View file

@ -56,14 +56,15 @@ export const hasFunctionalConsent = () => {
export const applyConsentSettings = (level) => {
// Determine if analytics is allowed based on consent level
const allowAnalytics = level === CONSENT_LEVELS.ANALYTICS || level === CONSENT_LEVELS.ALL;
if (allowAnalytics) {
// Enable Clarity tracking
Clarity?.consent();
} else {
// Disable Clarity tracking
Clarity?.consent({ clarity: false });
}
// if (allowAnalytics) {
// // Enable Clarity tracking
// Clarity?.consent();
// } else {
// // Disable Clarity tracking
// Clarity?.consent({ clarity: false });
// }
Clarity?.consent({ clarity: false });
console.log(`Applied consent level: ${level}, analytics ${allowAnalytics ? 'enabled' : 'disabled'}`);
};