[英]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). 谷歌分析告诉我我的流量来源是什么(搜索引擎,Facebook等)。 Is there a way to get this information for each request from the request
object or otherwise? 有没有办法从request
对象或其他方式获取每个请求的此信息? I'd appreciate any help. 我很感激任何帮助。
request.referrer
将为您提供HTTP referrer值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.