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