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.



source to share

2 answers

with inline http module

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




you can get a referent from Rails via request.referer



All Articles