예제 #1
0
 /**
  * should we include the tag manager snippet
  *
  * @return bool
  */
 public function shouldInclude()
 {
     if (parent::shouldInclude()) {
         return $this->isTagManagerEnabled() && (bool) $this->getTagManagerSnippet();
     } else {
         return false;
     }
 }
예제 #2
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('fooman/googleanalyticsplus/ajax-tracking.phtml');
 }
예제 #3
0
 /**
  * determine if we are on the order success page
  *
  * @return bool
  */
 public function isSuccessPage()
 {
     $orderIds = $this->getOrderIds();
     return parent::isSuccessPage() || !empty($orderIds) && is_array($orderIds);
 }