/** * @param $event * @throws \Exception */ protected function onCategoryPageView($event) { try { $script = $this->bxHelperData->reportCategoryView($event->getCategory()->getId()); $this->addScript($script); } catch (\Exception $e) { $this->_logger->critical($e); } }