/** * returns the tracking link * * @author Hannes Schippmann * @param OnlineIdentity $pOnlineIdentity * @return string */ public function generateUrlWithClickbackParam($pOnlineIdentity) { $lQueryChar = parse_url($this->getUrl(), PHP_URL_QUERY) ? '&' : '?'; return $this->getUrl() . $lQueryChar . 'spreadly=' . $pOnlineIdentity->getCommunity()->getCommunity() . '.' . $this->getId(); }