Compare commits
2 commits
933c2deb15
...
835a400d2a
| Author | SHA1 | Date | |
|---|---|---|---|
| 835a400d2a | |||
| ba25a49d86 |
1 changed files with 9 additions and 8 deletions
|
|
@ -57,13 +57,14 @@ 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'}`);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue