From c9a4a1e52f005ff2087e527dc0f52de6fd6b15ef Mon Sep 17 00:00:00 2001 From: 2ManyProjects Date: Sun, 6 Jul 2025 12:39:23 -0500 Subject: [PATCH] analytics --- frontend/src/services/consentService.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/services/consentService.js b/frontend/src/services/consentService.js index 44237a3..a3f9b3c 100644 --- a/frontend/src/services/consentService.js +++ b/frontend/src/services/consentService.js @@ -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'}`);