public function renderGoogleAnalytics() { if (($gaKey = dmConfig::get('ga_key')) && !$this->getService('user')->can('admin') && !dmOs::isLocalhost()) { return $this->getGoogleAnalyticsCode($gaKey); } return ''; }