Web/HTML: how do referrer work technically?
- by NoozNooz42
I don't understand how comes webserver and trackers like Google Analytics are able to track referrals.
Is it part of HTTP?
Is it some (un)specified behavior of the browsers?
Apparently everytime you click on a link on a webpage, the original webpage is passed along the request.
What is the exact mechanism behind that? Is it specified by some spec?
I've read a few docs and I've played with my own Tomcat server and my own Google Analytics account, but I don't understand how the "magic" happens.
Bonus (totally related) question: if, on my own website (served by Tomcat), I put a link to another site, does the other site see my website as the "referrer" without me doing anything special in Tomcat?