用户活动档案统计 [英] User Activity Profile and Statistics

查看:203
本文介绍了用户活动档案统计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在探索什么是用于收集和显示用户活动的统计数据实施功能的最佳实践/框架,是特定的用户和与登录在ASP.NET用户活动的网站。例如,我会想知道我的网站上一个特定的登录用户,哪个站点,他/她在过去的一天,一个星期访问了或者是什么等等频率是多少?前5/10?并为整个网站,什么是(仅基于登录用户没有履带式或匿名访问)

I am just exploring on what is the best practice/framework for implementing feature for collecting and displaying user activity statistics that is user specific and site relating to login user activities in ASP.NET. For example, I will want to know for a particular login user on my site, which site he/she has visited in the last day, week or etc. What is the frequency? top 5/10? and for the overall site, what are the top 5 popular pages or search terms (based only on login users not crawler or anonymous visits)

我用网络统计像getclicky,webstats工具和Google Analytics。他们都是伟大的,但跟踪是基于通用的考察,但我要的是在我的系统中定义的个人用户/角色或组织结构,以配合它,并能够在其报告给利益相关者。

I have used web stats tool like getclicky, webstats and google analytics. They are all great but the tracking is based on generic visits but what I want is to tie it in with individual users/roles or organisation structure defined in my system and be able to report on them to the stakeholders.

这会更有意思太多,如果我们有层次结构说,用户可>部/组 - >公司,并尝试什么是前5个站点此用户报告?什么是这个部门/业务部门/组由用户访问的前5名的网站?什么是网页的频率?

This gets more interesting too if we have hierarchical structure say, user->department/group->company and try reporting on what are the top 5 sites for this user? what are the top 5 sites visited by users in this department/business units/group? what are the page frequency?

问:那么,什么是ASP.NET实现这一目标的最佳方式是什么?有,这是否一个HTTP模块处理,框架或产品?

QUESTION: So what is the best way to implement this in ASP.NET? Is there a httpModule handler, framework or product that does this?

推荐答案

我会告诉你我做了什么。

I will tell you what I have done.


  • 如果你知道你在统计查找的内容,例如:就像你说的,什么是频率,然后让这个统计计算当您插入新的数据。

  • If you know what you're looking for in the statistics, eg as you say, what is the frequency then make this statistic calculation when you insert the new data.

例如,让我们说,你搜索用户A有多少访问过的网页。继续统计表连接该用户A,与您需要有一个信息行,你算算他们你进入他们的时刻,例如在每一页只是增加的有多少人看到柜台。这样,你可以在网上统计避免后台工作,还有数千行的条目。我相信,你需要知道你在第一个地方找什么统计数字,如果有一些在未来,那么你以后添加。

For example let's say that you search how many pages user A have visited. Keep a line on statistics table that connect this user A, with the informations that you need to have, and you calculate them the moment you enter them, eg in every page just increase the counter of how many have see. That way you can have online statistics avoid background work, and thousands of line entries. I believe that you need to know what statistics you're looking for at the first place, and if there are some more in the future, then you add them later.


  • 您上添加页的端部的呼叫统计计算和插入,无论是与一个线程或与额外的处理程序的调用,所以用户不必延迟地看到该页面。

例如,在页面的末尾:

<img src="/myStats.ashx?infos=CodeStringWithSomeInfos">

在myStats.ashx,保存您的统计数据,并返回一个emtpy GIF。

on myStats.ashx, save your statistics data, and return an emtpy gif.


  • 此外,当您显示数据,即使你计算出大部分的信息的时候,有一些你无法计算的,当你表现出这种统计,使这个计算,让他们一个额外表缓存总是额外的东西加快。

这篇关于用户活动档案统计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆