{{-- Defines window.rgeLoadAnalytics() - the gate function that loads Google Analytics, called only after explicit "Analitika" consent (see banner.blade.php). Include this in
, before the banner partial, so the function exists by the time the banner checks stored consent on page load. The measurement ID comes from btdigital/settings (setting()), never hardcoded (Fejlesztesi-terv wiki, 10. pont) - if it's not configured yet, this renders nothing and rgeLoadAnalytics() is a no-op. --}} @php($gaId = setting('ga_measurement_id')) @if ($gaId) @endif