public function track(): void
	{
		if ($this->canTrack()) {
			$track = new TrackingEntity;

			$track->uid = $this->user->getUid();
			$track->inserted = new DateTime;
			$track->url = $this->getParam('url');
			$track->referer = $this->getParam('referer');
			$track->ip = $this->getIp();
			$track->browser = $this->getParam('browser');
			$track->utmSource = $this->getParam('utm_source');
			$track->utmMedium = $this->getParam('utm_medium');
			$track->utmCampaign = $this->getParam('utm_campaign');

			$this->orm->persistAndFlush($track);
		}
	}
public function track(): void
	{
		if ($this->canTrack()) {
			$track = new TrackingEntity;

			$track->uid = $this->user->getUid();
			$track->inserted = new DateTime;
			$track->url = $this->getParam('url');
			$track->referer = $this->getParam('referer');
			$track->ip = $this->getIp();
			$track->browser = $this->getParam('browser');
			$track->utmSource = $this->getParam('utm_source');
			$track->utmMedium = $this->getParam('utm_medium');
			$track->utmCampaign = $this->getParam('utm_campaign');

			$this->orm->persistAndFlush($track);
		}
	}
public function track ( ) : void { if ( $ this -> canTrack ( ) ) { $ track = new TrackingEntity ; $ track -> uid = $ this -> user -> getUid ( ) ; $ track -> inserted = new DateTime ; $ track -> url = $ this -> getParam ( 'url' ) ; $ track -> referer = $ this -> getParam ( 'referer' ) ; $ track -> ip = $ this -> getIp ( ) ; $ track -> browser = $ this -> getParam ( 'browser' ) ; $ track -> utmSource = $ this -> getParam ( 'utm_source' ) ; $ track -> utmMedium = $ this -> getParam ( 'utm_medium' ) ; $ track -> utmCampaign = $ this -> getParam ( 'utm_campaign' ) ; $ this -> orm -> persistAndFlush ( $ track ) ; } }
Zaznam prichodu na stranku
Zaznam prichodu na stranku