访客统计设计
2016-11-15 16:33:11 0 举报
AI智能生成
PV UV 统计设计
作者其他创作
大纲/内容
PageviewStatVO
posttime Date 统计数据更新时间
userCount int 总访客人数
pageview int 总访问量
dayList List<DayVO> 每天统计的数据
pageList List<PageVO> 页面排行数据
sourceList List<SourceVO> 来源数据
DayVO
userCount int
posttime Date
pageview int
PageVO
itemId 商品地址
itemName 商品名称
子主题
<div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">规则:</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">统计的目标页面只有 店铺首页和店铺商品的详情页</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">访客数(UV):一天内一个IP访问目标页面算一个</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">浏览量(PV): 目标页面的访问次数(及请求次数)</div>
页面展示 效果
实现:<br>表:<br>controller:<br>==
accessLog
页面参数
shopId
uri 地址
source 来源
uid
sessionId
itemId
时间
postdate
posthour 暂时没用
posttime 真实时间
accessLogId
<div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">实现:</div><div yne-bulb-block="paragraph" style="white-space: pre-wrap; line-height: 1.875; font-size: 14px;">目标统计页面埋点:<br>当用户访问 店铺首页时,请求/access/add.do 往accessLog 写数据<br>当用户访问 商品详情页面时,请求/access/item.do 往accessItemLog 写数据<br>统计数据的展示则查询数据库</div>
accessItemLog
页面参数
shopId
uri 地址
source 来源
itemId
时间
postdate
posthour 暂时没用
posttime 真实时间
accessLogId
StatPageviewController
店铺后台展示接口<br>/stat/pageview/list.do<br>
AccessController
添加页面访问日志<br>/access/add.do<br>
添加页面访问日志<br>/access/item.do<br>
0 条评论
下一页