Blog Archives

2 Steps to use http referer in php


Recently, When i see the traffic number of my blog, i notice most of visitors come form other website. Google Analytics shows what they are,as picture below shows.

php link reference

By Google Analytics, i find most of visitors of my sites are from linkreferral.com, once i find it, i have a question:How to know google analytics know where these visitor come from?

I have search some papers by google and know it is that http referer helps google analytics to know where these visitors are from.

Step 1: What is http referer

I think http referer is a link, which means if you visit my blog by click a google search result, the information ‘google.com’ will be stored up in http referer, then my website or other website statistics tool,like google analytics, will know where you are from.