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.
I wonder if someone here could point me in the right direction , I am trying to build some web stats into my websites , I understand that I can get ip`s and each page add some timestamp to my database etc but I was wondering if there is any way I can get the Search string if they come from a search engine things like that.
I did attempt to use google analytic`s but not sure If that is even possible in jsp , I couldn't get the domain authenticated, I think I would like to build my own anyway.
Has anybody done this before in jsp and have some tips for me
Bsc Computer Science
Steve Heasman - Bsc Computer Science Student, Teesside University
The best solution is to get the google analytics, it can be integrated into any web application, and your should have no issues integrating in your jsp.
When you create a domain in analytics, it will give you some js that you just have to put in your jsp files.
One another alternative is statecounter.com . But doesnt have as many features as google analytics.
If you want to get your hand dirty with code, I suggest to start with Clickstream, which is a servlet filter that implements something related to what you're asking. It's open source, so you can add any functionality that you need above and beyond what it does already.
sudhir nim wrote:The best solution is to get the google analytics
I disagree with this statement in its stated absolute form. While GA is a great tool, and easy to integrate no matter what server-side technology is used, if it doesn't provide the desired statistics (about which we know nothing) then it would be useless. It may also run foul of data protection laws in various parts of the world, and provides Google with information you might want to keep to yourself.