Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I track site usage over time for multiple clients?  RSS feed

 
Mike London
Ranch Hand
Posts: 1336
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What I am trying to do is track how a client navigates through a Website -- that is which pages, in which order, he visits over time (from today's visit to some other visit).

I would also like to be able to create some type of report so we would know what parts of the site are really being used and which pages come first and which pages then are of the most interest next.

For example, if I captured the client's IP address (since there's no 'login'), I would like to know that he went to page1 then to page2, then maybe back to page1, then to page5, etc..

Can I do this with a cookie approach?

It seems a better way might be to create a database with the fields I want and then create some JSTL code that on each visit to each JSP page, writes to the database the client's IP, timestamp, etc..

(The site is currently just a bunch of HTML pages that I'll be converting to JSP to do this. There's no MVC architecture in the works at the moment for this.)

Is the database/JSTL idea overkill or is this really how you'd do it?

I'm a little unsure how to use cookies to store multiple pieces of data like this.

Thanks in advance for any suggestions or input!!!

-- M
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just about every server out there has an option to turn on access logging.
If you've got a log with every hit and the referer for each hit, you should be able to put together any report that you need.
 
Mike London
Ranch Hand
Posts: 1336
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this access logging easy to do in Tomcat 5?

-- M
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!