[Gllug] hit analysers and counters (java modules) in JSP?
Paul Nasrat
pauln at truemesh.com
Thu Nov 14 12:39:07 UTC 2002
On Thu, Nov 14, 2002 at 11:21:05AM +0100, Manjush G. Menon wrote:
>
>
> i want to embedd hit counter and hit analyzer (java moudules) in my JSP based
> web site. Analyzer should know the client ip address, and other client related
> specifics for tracking users.
http://www.jguru.com/faq/view.jsp?EID=456418
http://www.jguru.com/forums/view.jsp?EID=448023
http://www.devshed.com/Server_Side/Java/JSP/JSP6/comments/998635931
I think you really should think what you are trying to count/analyse.
Unique users, site visits, page visits. Most techniques will be
inaccurate. If you are using some form of tracking pixel you'll need to
ensure that you set the appropriate headers (Pragma, cache-control,
expiry, etc) but that's no guarantee it won't get cached by a client or
an intermediate proxy.
If you are basing by IP address, you need to take into account proxies,
some ISP's particularly AOL can have the same visitor appear from
different IP's during a site visit. If you want to uniquely identify
users, you are probably going to have to use cookies. You'll be able to
use session cookies usually JSESSIONID to do this, but of course clients
can disable cookies, images, etc.
It really depends how accurate you want to be and what analysis you are
trying to do.
You could use apache with mod_log_sql or whatever, to log hits and
jsessionid and then render a report with jsp.
Paul
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list