Hi guys,

Does anyone knows a way to, in .net websites, monitor how long does a user stays in your website, and how does a user stays in certain page of my website?
I'm thinking of making frequent ajax calls, but I'm not sure on this.
Any ideas?

Cheers

The easiest way I can think of is to record each time a user enters a new page that way previous page entry - new page entry = time on page.

The problem is though what if they stay on a single page then leave your site? You also wont know the time they spent on the last page they were in....

You could try ajax but how accurate would you have to be? A partial page load every second yuck!

Your problem is on the server you can only monitor client interactions so if I close a page nothing goes back to the server - only indication would be a session time out...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.