@php $googleNoscriptConsent = app(\App\Services\Google\GoogleConsent::class)->fromRequest(request()); // The fallback iframe cannot receive the granular Consent Mode state from // the parent page. Only render it after every optional Google purpose was // granted, so an analytics-only choice can never wake an Ads fallback tag. $googleNoscriptAllowed = $googleNoscriptConsent['analytics'] === true && $googleNoscriptConsent['ads'] === true; $googleNoscriptShopifyPrivacy = app(\App\Services\Google\GoogleTrackingSettings::class) ->shopifyCustomerPrivacyReady(); @endphp @if (($googleTrackingEnabled ?? false) && ($googleTrackingConfig['mode'] ?? null) === 'gtm' && $googleNoscriptAllowed && ! $googleNoscriptShopifyPrivacy) @endif