3.1.0 • Published 9 years ago
escan v3.1.0
真实用户统计官网
安装
$ npm install
$ node server
目录结构
/public // 静态资源目录
/routes // 定义读取数据库和渲染页面的逻辑
/views // 静态模板资源目录
./server.js //程序主入口,引用相关资源,使用路由
API接口列表
- api/getMinutesData
- api/getDaysData
api/getMinutesData
获取当天按每5分钟的时间间隔
http://localhost:8000/api/getMinutesData?appname=webapp&pagetype=huoche&logtime=1434622315
参数说明:
参数 | 类型 | 描述 |
---|---|---|
appname | string | APP名称 |
pagetype | string | 页面名称 |
logtime | timestamp | 传入时间戳 |
api/getDaysData
获取一段时间按天统计的数据,pv,domready,onload
http://localhost:8000/api/getDaysData?appname=webapp&pagetype=huoche&startdate=2015-05-01&enddate=
参数说明:
参数 | 类型 | 描述 |
---|---|---|
appname | string | APP名称 |
pagetype | string | 页面名称 |
startdate | string | 开始日期 ,默认为2015-06-01 |
enddate | string | 结束日期,默认为昨天 |
3.1.0
9 years ago