/**
  * product category for product page
  *
  * @return string
  */
 public function getEcommCategory()
 {
     if ($this->getPageType() == self::GA_PAGETYPE_PRODUCT) {
         return parent::getProductCategory(Mage::registry('current_product'));
     }
     return false;
 }
Example #2
0
 /**
  * should we include the universal snippet
  *
  * @return bool
  */
 public function shouldInclude()
 {
     if (parent::shouldInclude()) {
         return $this->isUniversalEnabled() && (bool) $this->getUniversalAccount();
     } else {
         return false;
     }
 }