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