mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 02:57: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:
@@ -19,10 +19,7 @@
|
|||||||
|
|
||||||
function enabled() {
|
function enabled() {
|
||||||
if (global.AndroidCastCookieConsent && !global.AndroidCastCookieConsent.allowsAnalytics()) {
|
if (global.AndroidCastCookieConsent && !global.AndroidCastCookieConsent.allowsAnalytics()) {
|
||||||
var choice = global.AndroidCastCookieConsent.getChoice && global.AndroidCastCookieConsent.getChoice();
|
return false;
|
||||||
if (choice && choice !== 'all') {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return measurementId.length > 0 && /^G-[A-Z0-9]+$/i.test(measurementId);
|
return measurementId.length > 0 && /^G-[A-Z0-9]+$/i.test(measurementId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user