This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes tracking users Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tracking users" Watch "tracking users" New topic
Author

tracking users

cherry sawant
Greenhorn

Joined: Mar 26, 2002
Posts: 6
Hi
I have a page(banner) on a third party site and I want to track how many users are using that page and successfully booking through that page. The page is hosted on my server not on third party site. The request to that page is via a servlet.
There are few options I have thought about but there are some advantages and disadavantages. I want to know which is better solution.
1. creating a table and updating it whenever user hits the servlet from the page.
2. ServletContext.
Thanks in advance.
David G Risner
Ranch Hand

Joined: May 02, 2002
Posts: 30
Wouldn't it be easiest just to use your web server's log files? You can configure Apache to record referer URLs. I would think with that you would have all you need.
A simple Perl script (or Java program) could extract the information you needed from the log.


David G. Risner<br />Software Engineer<br />California State University, Los Angeles
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: tracking users