开发者

Rails 3 gem for capturing referrer info?

Is there a single (or multiple) Rails gem that will help to easily capture the following on a when registering a new model instance (i.e.: new user)?

  • referrer URL
  • traffic source (google, bing, etc.)
  • traffic medium (organic, cpc)
  • search terms (if user came from a search engine)

I know I could code this in manually, but no reason to recreate this if it's 开发者_如何转开发already done.

The only thing I could find through searching is search_sniffer, but that's a plugin, and I'd prefer to use a gem if available.


I ended up solving this on my own without a gem. In case anyone is interested, I wrote a blog post explaining how I did it.


Referrer tracks sources with which users visit your site, converts them into utm markup, computes priority of these sources and provides linking for sources with tracked model's records (orders/requests/etc). Rails 4, 5 supported.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜