1903

Page views in Rails

Question:

I am not sure what is the best way to deal with this. I want to display page views and user views (How many unique users viewed a page).

Is there a plugin for this?

login_count is of course easy to check though. Just not sure about views. Google Analytics does the job well but I don't know whether it's to good to go through analytics integration.

Any help? Thanks. Happy Holidays!

Answer1:

I'd recommend this gem: <a href="https://github.com/charlotte-ruby/impressionist" rel="nofollow">Impressionist</a>

Answer2:

there is a plugin called <a href="http://github.com/lmanolov/railstat" rel="nofollow">railstat</a> i used it and it works. you may need to update it to the latest and greatest rails however. even if you look at their code you'll see some good examples of how to do it.

Recommend

  • Google Analytics with jQuery - show pathname in label
  • youtube analytics api rows empty
  • Flush google analytics events manually with Google Play Services
  • Dependable views in Ember
  • Get UILabel out of UIButton
  • How to add javascript in a prestashop module
  • segue from landscape only to portrait only
  • Can I update/select from a table in one query?
  • get_absolute_url with parameters
  • python: forcing relative imports to search from script file
  • Jenkins Grails plugin does not list lastest versions of Grails
  • Iron Router: How do I send data to the layout?
  • How to pass a value from ASP.NET MVC controller to ASP.NET webforms control inside MVC View?
  • Application level floating views with navigation in Android
  • Android changing fragment order inside FragmentPagerAdapter
  • android.support.v7.widget.Toolbar VectorDrawableCompat IllegalStateException when using support lib
  • Jquery popup on mouse over of calendar control
  • How to generate and display a QR Code in ionic 2
  • How do I get HTML corresponding to current DOM tree?
  • Sencha Touch 2.0 Controller refs attribute not working?
  • Could not find rake using whenever rails
  • How to create a file in java without a extension
  • Typescript - Unable to get 'import' statement to function
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Q promise. Difference between .when and .then
  • Recording logins for password protected directories
  • Splitting given String into two variables - php
  • C# - Serializing and deserializing static member
  • Incrementing object id automatically JS constructor (static method and variable)
  • Check if a string to interpolate provides expected placeholders
  • what is the difference between the asp.net mvc application and asp.net web application
  • Display Images one by one with next and previous functionality
  • Do create extension work in single-user mode in postgres?
  • Web-crawler for facebook in python
  • Google cloud sdk not working when python points python3
  • Traverse Array and Display in markup
  • A cron job substitute?
  • NSLayoutConstraint that would pin a view to the bottom edge of a superview
  • using HTMLImports.whenReady not working in chrome
  • Android Heatmap on canvas or ImageView