4

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.

Matt Huggins
  • 81,398
  • 36
  • 149
  • 218

2 Answers2

5

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.

Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
0

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.

Sergey Sokolov
  • 994
  • 7
  • 6