Forum Moderators: coopster
In my experience, if the browser is sending a referrer, it will be in $_SERVER['HTTP_REFERER'] Of course, not all browsers send a referrer (such as anonymizing proxies), and there a cases where there is no referrer to send (bookmarks, typed-in URLs, etc.). In those cases, $_SERVER['HTTP_REFERER'] is not set.
and it never will, getting in the 90% range is the best you can hope for usually. Too many things that block referers and sometimes they just aren't there.
If you can get a large percentage of the referers it is honest to extrapolate that against gross traffic or just work with percentages at that point.