Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building your own web application statistics

 
Steve Heasman
Greenhorn
Posts: 3
Java Java ME Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

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

Thanks

Steve
Bsc Computer Science
Teesside University
 
sudhir nim
Ranch Hand
Posts: 212
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic