analytics

This commit is contained in:
2ManyProjects 2025-07-06 12:39:23 -05:00
parent 835a400d2a
commit c9a4a1e52f

View file

@ -57,13 +57,13 @@ 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'}`);