Referrer problem


#1

hi
i use my own js stat code on client side, on the server side i use piwik api to send stat results to piwik. the problem is that i cant write referrer. I can see it in api and i do send it to piwik but in db referer_url is empty. what have i done wrong?

code:
$PiwicTracer = new PiwikTracker( $site_data_res[‘piwik_site_id’], $this->pw_domain );
$PiwicTracer->setTokenAuth(‘2bd09799da973c137rt9583b7r462cb7’);
$PiwicTracer->setUserAgent( $this->c_browser);
$PiwicTracer->setIp( $this->ip );
$PiwicTracer->setForceVisitDateTime( $this->server_time );
$PiwicTracer->setUrl( $this->current_page );
$PiwicTracer->setUrlReferrer($this->referer);// i thought this should write referrer


#2

found
$this->referer was without “http://”