/**
  * @param $productId
  * @return bool|void
  */
 public function processViews($productId)
 {
     if (!$this->_config->isEnabled()) {
         return false;
     }
     if ($this->_customerSession->isLoggedIn()) {
         return $this->_eventClient->saveCustomerViewProduct($this->_customerSession->getCustomerId(), $productId);
     }
     return false;
 }
 /**
  * Send all the guest product views to PredictionIO when we get the customers ID
  *
  * @param $guestProductViews
  */
 private function _sendAllGuestProductViews($guestProductViews)
 {
     foreach ($guestProductViews as $productId) {
         $this->_eventClient->saveCustomerViewProduct($this->_customerSession->getCustomerId(), $productId);
     }
 }