/** * Render GA tracking scripts * * @return string */ protected function _toHtml() { if (!$this->_googleAnalyticsData->isGoogleAnalyticsAvailable()) { return ''; } return parent::_toHtml(); }
/** * Checks if Google Experiment is active * * @param string $store * @return bool */ public function isGoogleExperimentActive($store = null) { return $this->isGoogleExperimentEnabled($store) && $this->_analyticsHelper->isGoogleAnalyticsAvailable($store); }