ruby on rails 3 - Keep track on referrered links -


many sites have implemented, don't know how called hard me search it

you can see links in websites such facebook,twitter have urls similar to

www.website.com/some-article?ref=home 

so in case, back-end take note link clicked home page , keep track of this

my question - there known practice / knowledge on how needs done or need insert own ref parameters , keep track of manually?

  • is there gem / library assists in doing this?

you can manually. it's easy implement. website facebook , twitter use track users do. kind of silent survey used provide better user experience.

it used in search engines such google track traffic particular hit comes from. know better if have google blogspot blog.

but, there no limit innovation. can use in whichever way want.

in php, can use $_server['http_referer"]

session_start(); if ( !isset( $_session["origurl"] ) )      $_session["origurl"] = $_server["http_referer"]; 

sorry, don't know ruby. there should pre-written libraries in this, don't know any. can create own library this. provide better control.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -