Finding out which backlink was clicked

I have a website and I want to know the exact location where the user clicked a link to go to my site. Is there any way to do this? I want to use this data in my code as input to a traffic analysis script.

Sorry if this is too noobish.

TIA

+3


source to share


2 answers


with inline http module



var http = require("http");
http.createServer(function(request, response) {
  var referrer = request.headers.referer
}).listen(8080);

      

+1


source


you can get a referent from Rails via request.referer



+4


source







All Articles