analytics
This commit is contained in:
parent
835a400d2a
commit
c9a4a1e52f
1 changed files with 7 additions and 7 deletions
|
|
@ -57,13 +57,13 @@ export const applyConsentSettings = (level) => {
|
||||||
// Determine if analytics is allowed based on consent level
|
// Determine if analytics is allowed based on consent level
|
||||||
const allowAnalytics = level === CONSENT_LEVELS.ANALYTICS || level === CONSENT_LEVELS.ALL;
|
const allowAnalytics = level === CONSENT_LEVELS.ANALYTICS || level === CONSENT_LEVELS.ALL;
|
||||||
|
|
||||||
// if (allowAnalytics) {
|
if (allowAnalytics) {
|
||||||
// // Enable Clarity tracking
|
// Enable Clarity tracking
|
||||||
// Clarity?.consent();
|
Clarity?.consent();
|
||||||
// } else {
|
} else {
|
||||||
// // Disable Clarity tracking
|
// Disable Clarity tracking
|
||||||
// Clarity?.consent({ clarity: false });
|
Clarity?.consent({ clarity: false });
|
||||||
// }
|
}
|
||||||
Clarity?.consent({ clarity: false });
|
Clarity?.consent({ clarity: false });
|
||||||
|
|
||||||
console.log(`Applied consent level: ${level}, analytics ${allowAnalytics ? 'enabled' : 'disabled'}`);
|
console.log(`Applied consent level: ${level}, analytics ${allowAnalytics ? 'enabled' : 'disabled'}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue