1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 07:17:38 +03:00

fix(lab-seed): sync analytics.js consent gate for GA4

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-06 17:19:55 +02:00
parent d045653a7b
commit 0911d97fa9

View File

@@ -19,10 +19,7 @@
function enabled() {
if (global.AndroidCastCookieConsent && !global.AndroidCastCookieConsent.allowsAnalytics()) {
var choice = global.AndroidCastCookieConsent.getChoice && global.AndroidCastCookieConsent.getChoice();
if (choice && choice !== 'all') {
return false;
}
return false;
}
return measurementId.length > 0 && /^G-[A-Z0-9]+$/i.test(measurementId);
}