/** * should we include the tag manager snippet * * @return bool */ public function shouldInclude() { if (parent::shouldInclude()) { return $this->isTagManagerEnabled() && (bool) $this->getTagManagerSnippet(); } else { return false; } }
protected function _construct() { parent::_construct(); $this->setTemplate('fooman/googleanalyticsplus/ajax-tracking.phtml'); }
/** * 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); }