Reputation: 13
Is there a way to track the number of online visitors for each page in my website? I want to pop something like "There are 6 people viewing this page right now" when a visitor enters this page.
Upvotes: 1
Views: 1119
Reputation: 648
Please refer the following reference links:
http://www.codeproject.com/Articles/29792/Online-active-users-counter-in-ASP-NET http://graysoft.blogspot.in/2009/02/howto-get-current-online-users-count.html
Upvotes: 0
Reputation: 6684
You could build something not much complex using SignalR and javascript.
A javascript in each page would inform the SignalR service that someone is in there and the server would aggregate it and broadcast it to everyone that is in the same page.
Upvotes: 2