由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 需要用java记录客户端的行为数据
相关主题
问个Charting的问题So weird.
DC hot start-up 招 JAVA engineer (sponsor h1b, green-card)Position: Fixed Income Java Developer
Google Web Toolkit 令人失望想用javascript开发应用
关于RIAc++熟手如何学习Java直到能够参与开发企业级应用?
wicket in action到手了[Immediate Opening] Central New Jersey Java Developer (转载)
swing=>weba dump method in Java
JAVA 面世题.Oracle能不能发条消息到JMS上?
是否可以通过Java的程序直接导入网页?JSP程序中如何在客户端启动另外的JAR程序
相关话题的讨论汇总
话题: java话题: browse话题: user话题: 记录话题: use
进入Java版参与讨论
1 (共1页)
u*****n
发帖数: 3277
1
需要用java记录客户端的在我的网站上的行为数据,用什么tool/class比较好?
比如,我要记录一个人在我的网站带了多久,点击了什么。
c*****t
发帖数: 1879
2
No need to use Java. For your need, google analytics is more than
good enough.

【在 u*****n 的大作中提到】
: 需要用java记录客户端的在我的网站上的行为数据,用什么tool/class比较好?
: 比如,我要记录一个人在我的网站带了多久,点击了什么。

u*****n
发帖数: 3277
3
google analytics is not enough. I need to record more than that provides
such as how long each user stays at my site, what texts they type in the
text fields, what he/she clicks and how long he/she stays at the sub pages,
etc.

【在 c*****t 的大作中提到】
: No need to use Java. For your need, google analytics is more than
: good enough.

k***r
发帖数: 4260
4
我也感兴趣,不一定是java,而是原理上是如何实现的。我想来,
1. 如果想track logged in user activities,就用login/logout可能最简单,但是不
能包含没有login的时间。这个可以通过下面的方法解决
2. 如果想track没有login的user,应该不需要在server side generates user
session,而是把first_browse和last_browse两个时间放到cookie里面。如果last_
browse距离下一次browse太远,就timeout这个session,记录last_browse - first_
browse为在线时间,然后reset first_browse和last_browse cookie value。Server仍
然可以generate a session key但不需要放在database里面。这样用户在logout之后,
仍然可以继续track同一个用户。

【在 u*****n 的大作中提到】
: 需要用java记录客户端的在我的网站上的行为数据,用什么tool/class比较好?
: 比如,我要记录一个人在我的网站带了多久,点击了什么。

g*****g
发帖数: 34805
5
I would use AOP to log activities. User behaviors trigger certain
functions, you can monitor these functions and log/process them
(parameters, e.g inputs included) And later on you can find a way
to do analysis.

,

【在 u*****n 的大作中提到】
: google analytics is not enough. I need to record more than that provides
: such as how long each user stays at my site, what texts they type in the
: text fields, what he/she clicks and how long he/she stays at the sub pages,
: etc.

p******e
发帖数: 897
6
you need to use javascript to collect those data, and upload those data to
server side for persistence. Java can' help you too much in this case.

【在 u*****n 的大作中提到】
: 需要用java记录客户端的在我的网站上的行为数据,用什么tool/class比较好?
: 比如,我要记录一个人在我的网站带了多久,点击了什么。

s******e
发帖数: 493
7
javascript can be an idea, but I will not recommend it due to many problems.
It is more like a hacker way.
The standard way is defining a filter to do it. Or if you do not like the
filter, and you happen to use front controller, using front controller
instead.
u*****n
发帖数: 3277
8
thanks. guys.
have you used google GWT? is it a good option for this purpose too?

problems.

【在 s******e 的大作中提到】
: javascript can be an idea, but I will not recommend it due to many problems.
: It is more like a hacker way.
: The standard way is defining a filter to do it. Or if you do not like the
: filter, and you happen to use front controller, using front controller
: instead.

k***r
发帖数: 4260
9
hmm. not sure what a GUI toolkit has to do with user tracking ...

【在 u*****n 的大作中提到】
: thanks. guys.
: have you used google GWT? is it a good option for this purpose too?
:
: problems.

1 (共1页)
进入Java版参与讨论
相关主题
JSP程序中如何在客户端启动另外的JAR程序wicket in action到手了
如何在网页里得知浏览器使用什么JAVA虚拟机?swing=>web
请推荐JAVA GUI开发工具用于UNIX。JAVA 面世题.
怎么没人整一JAVA VISUAL STUDIO是否可以通过Java的程序直接导入网页?
问个Charting的问题So weird.
DC hot start-up 招 JAVA engineer (sponsor h1b, green-card)Position: Fixed Income Java Developer
Google Web Toolkit 令人失望想用javascript开发应用
关于RIAc++熟手如何学习Java直到能够参与开发企业级应用?
相关话题的讨论汇总
话题: java话题: browse话题: user话题: 记录话题: use