/**
  * @param $idHash
  *
  * @return Response
  */
 public function trackingImageAction($idHash)
 {
     /** @var \Mautic\EmailBundle\Model\EmailModel $model */
     $model = $this->factory->getModel('email');
     $model->hitEmail($idHash, $this->request);
     return TrackingPixelHelper::getResponse($this->request);
 }
Esempio n. 2
0
 /**
  * @param $idHash
  *
  * @return Response
  */
 public function trackingImageAction($idHash)
 {
     $response = TrackingPixelHelper::getResponse($this->request);
     /** @var \Mautic\EmailBundle\Model\EmailModel $model */
     $model = $this->factory->getModel('email');
     $model->hitEmail($idHash, $this->request);
     $size = strlen($response->getContent());
     $response->headers->set('Content-Length', $size);
     $response->headers->set('Connection', 'close');
     //generate image
     return $response;
 }
Esempio n. 3
0
 /**
  * @return Response
  */
 public function viewPixelAction()
 {
     $id = $this->request->get('id', false);
     if ($id) {
         /** @var \MauticPlugin\MauticFocusBundle\Model\FocusModel $model */
         $model = $this->getModel('focus');
         $focus = $model->getEntity($id);
         if ($focus && $focus->isPublished()) {
             $model->addStat($focus, Stat::TYPE_NOTIFICATION, $this->request);
         }
     }
     $response = TrackingPixelHelper::getResponse($this->request);
     return $response;
 }
Esempio n. 4
0
 /**
  * @return Response
  */
 public function trackingImageAction()
 {
     //Create page entry
     /** @var \Mautic\PageBundle\Model\PageModel $model */
     $model = $this->getModel('page');
     $model->hitPage(null, $this->request);
     return TrackingPixelHelper::getResponse($this->request);
 }
Esempio n. 5
0
 /**
  * @param $integration
  *
  * @return Response
  */
 public function pluginTrackingGifAction($integration)
 {
     $this->doTracking($integration);
     return TrackingPixelHelper::getResponse($this->request);
     // send gif
 }