Beispiel #1
0
 /**
  * Convert a non-tracked url to a tracked url.
  *
  * @param string $url
  * @param array  $clickthrough
  *
  * @return string
  */
 public function convertToTrackedUrl($url, array $clickthrough = [])
 {
     /* @var \Mautic\PageBundle\Entity\Redirect $redirect */
     $trackable = $this->pageTrackableModel->getTrackableByUrl($url, 'sms', $clickthrough['sms']);
     return $this->pageTrackableModel->generateTrackableUrl($trackable, $clickthrough, true);
 }