I'm trying to create a custom made class that will track the hits, unique visitors, IPs of visitors, referrers, and the landing page. I'm mostly utilizing the $_SERVER global however in the last two hours I've gotten 112 hits and 41 unique visitors. This part is correct, however, I see that some people don't have a referrer and a their landing page is nested deep or a blog article. You can check my statistics below:
The client is not required to send the referrer header, so there's never any guarantee you'll receive one regardless of the situation. (Browser privacy settings, using proxy hosts, automated scripts using cURL, etc. might be just a few reasons.)
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation