This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "tracking users" Watch "tracking users" New topic

tracking users

cherry sawant

Joined: Mar 26, 2002
Posts: 6
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
I agree. Here's the link:
subject: tracking users
It's not a secret anymore!