aspose file tools*
The moose likes JSP and the fly likes Building your own web application statistics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Building your own web application statistics" Watch "Building your own web application statistics" New topic
Author

Building your own web application statistics

Steve Heasman
Greenhorn

Joined: Feb 14, 2011
Posts: 3

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


Steve Heasman - Bsc Computer Science Student, Teesside University
http://www.steveheasman.com
sudhir nim
Ranch Hand

Joined: Aug 29, 2007
Posts: 212

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.


[Servlet tutorial] [Servlet 3.0 Cook Book]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Building your own web application statistics