I want to trace which sites (google, yahoo...) refers to my site. I am using $_SERVER["HTTP_REFERER"] but I get an empty string.
I am using the code below at my home page.
I search my site in yahoo and google then click on the result list but I got an empty string. How can I deal with it? Should i configure something on php.ini?