Rails: is there a way to tell the source of the request?
Google analytics tells me what the source of my traffic is (search engines, facebook etc). Is there a way to get this information fo开发者_如何学Cr each request from the request
object or otherwise? I'd appreciate any help.
request.referrer
will give you the HTTP referrer value.
精彩评论