Compare commits

..

No commits in common. "835a400d2a6580f850103b0ea9a6fd62fd04a80d" and "933c2deb158c01f4d7b7aef66ff1713990db7431" have entirely different histories.

View file

@ -57,14 +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 });
// }
Clarity?.consent({ clarity: false });
if (allowAnalytics) {
// Enable Clarity tracking
Clarity?.consent();
} else {
// Disable Clarity tracking
Clarity?.consent({ clarity: false });
}
console.log(`Applied consent level: ${level}, analytics ${allowAnalytics ? 'enabled' : 'disabled'}`);
};