src/API/GoogleAPI.php
public function isAnalyticsEnabled()
    {
        $enabled = SiteConfig::current_site_config()->GoogleAnalyticsEnabled;
        
        if (!$enabled) {
            $enabled = self::config()->analytics_enabled;
        }
        
        return (boolean) $enabled;
    }
public function isAnalyticsEnabled()
    {
        $enabled = SiteConfig::current_site_config()->GoogleAnalyticsEnabled;
        
        if (!$enabled) {
            $enabled = self::config()->analytics_enabled;
        }
        
        return (boolean) $enabled;
    }
public function isAnalyticsEnabled ( ) { $ enabled = SiteConfig :: current_site_config ( ) -> GoogleAnalyticsEnabled ; if ( ! $ enabled ) { $ enabled = self :: config ( ) -> analytics_enabled ; } return ( boolean ) $ enabled ; }
Answers true if analytics is enabled for the site.

@return boolean
Answers true if analytics is enabled for the site .