public function isAnalyticsEnabled()
    {
        $enabled = SiteConfig::current_site_config()->GoogleAnalyticsEnabled;
        
        if (!$enabled) {
            $enabled = self::config()->analytics_enabled;
        }
        
        return (boolean) $enabled;
    }