Re: Showing which users are viewing a given page

2014-03-05 Thread Some Developer
On 04/03/2014 13:06, Paul J Stevens wrote: On 04-03-14 13:28, Some Developer wrote: Hopefully someone here will be able to point me in the right direction. Basically I want to be able to view which users are viewing a page at any given time and I want to be able to update it in real time using

Re: Showing which users are viewing a given page

2014-03-04 Thread Manu
Hey Some Developer, If you have the option, try http://www.google.com/analytics/. There are other similar services to get the analytics about real time usage statistics about your website. If you want to identify each individual user, http://kissmetrics.com/ or https://mixpanel.com/ are also goo

Re: Showing which users are viewing a given page

2014-03-04 Thread Paul J Stevens
On 04-03-14 13:28, Some Developer wrote: > Hopefully someone here will be able to point me in the right direction. > > Basically I want to be able to view which users are viewing a page at > any given time and I want to be able to update it in real time using > JavaScript but I'm at a loss as to h

Re: Showing which users are viewing a given page

2014-03-04 Thread Dig
my opinion, frontend: setup a ping api, and refresh every 30 seconds, pass in a current page url from javascript, and return current page viewers. backup: a table has 3 main column (user id, page id, last_ping). update the page_id and last_ping when receiving a ping request. and return users list

Re: Showing which users are viewing a given page

2014-03-04 Thread Nevio Vesic
Well proper way of doing that in your case would be to use something like a socket.io and have each page as a separate channel. Than you can on user join/leave emit/push appropriate count. Other way would be to hook on middleware http request and than update or redis or database entry for that par

Showing which users are viewing a given page

2014-03-04 Thread Some Developer
Hopefully someone here will be able to point me in the right direction. Basically I want to be able to view which users are viewing a page at any given time and I want to be able to update it in real time using JavaScript but I'm at a loss as to how to track which users are viewing any given p