Add optional global gtag() exposure setting
New checkbox in General settings to conditionally expose window.gtag() for compatibility with third-party scripts (e.g. HFCM). Defaults to off, keeping only window.attCCGtag() available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -170,6 +170,7 @@ class ATT_Consent_Admin {
|
||||
true
|
||||
) ? $_POST['floating_widget'] : 'bottom-right';
|
||||
$settings['floating_widget_label'] = sanitize_text_field( $_POST['floating_widget_label'] ?? '' );
|
||||
$settings['expose_gtag_global'] = ! empty( $_POST['expose_gtag_global'] );
|
||||
break;
|
||||
|
||||
case 'appearance':
|
||||
|
||||
Reference in New Issue
Block a user