pv_uv_shopcard.md
5.17 KB
#流量入口点击分析&资源位分类点击分析
接口描述
1、流量入口点击分析
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
appType | String | true | android/ios/wap/pc | 客户端类类型 |
from | int | false | 时间段-开始时间 | |
to | int | false | 时间段-结束时间 | |
topLabel | int | true | 1-登录 2-侧栏 3-功能 | 一级 |
secondLabels | int[] | true | 登录(1:男生 2:女生 3:潮童 4:创意生活) 侧栏(1:男生 2:女生 3:潮童 4:创意生活 5、奥莱 6、PLUS 7、STAR 8、全球购 9、逛) 功能栏(1:首页 2:分类 3:逛 4:购物车 5:我的) | 二级 |
请求方法
get http://ip:port/data-analysis-web/click_analysis/input_click?appType=ios&topLabel=1&secondLabels=1,2,3&from=1483693640&to=1483693680
请求内容json
{
"appType": "android",
"from": 1482757176,
"to": 1482757776,
"topLabel": 1,
"secondLabels": [1]
}
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"appType": "ios",
"date": "2017-01-06",
"pv": 121,
"secondLabel": 1,
"topLabel": 1,
"uv": 23,
"uvRate": 25.27
},
{
"appType": "ios",
"date": "2017-01-06",
"pv": 122,
"secondLabel": 2,
"topLabel": 1,
"uv": 33,
"uvRate": 36.26
},
{
"appType": "ios",
"date": "2017-01-06",
"pv": 111,
"secondLabel": 3,
"topLabel": 1,
"uv": 23,
"uvRate": 25.27
}
],
"md5": "828300a4a84d53b796ccad5bd08fa0b2",
"message": "SUCCESS"
}
2、资源位分类点击分析
请求参数
Param Name | Param Type | Required | Param Value | Desc |
---|---|---|---|---|
appType | String | true | yohobuy_android/yohobuy_ios/wap/web | 客户端类类型 |
from | int | false | 时间段-开始时间 | |
to | int | false | 时间段-结束时间 | |
channel | int | true | 1-男生 2-女生 3-潮童 4-创意生活 | 频道 |
navigate | String | true | 左侧导航栏(父子之间用:分割 同层级间菜单编号不能重复) | 左侧导航栏 |
请求方法
get http://ip:port/data-analysis-web/resources_analysis/click?appType=**&from=***
请求内容json
{
"appType":"android",
"from":1482757176,
"to":1482757776,
"channel":1,
"navigate":"2:1"
}
响应内容json
{
"code": 200,
"msg": "",
"data": [
{
"time": "2016-12-26 00:00:00",
"appType": "android",
"channel": "男生",
"position": "搜索",
"name": "搜索",
"pv": 100,
"uv": 20,
"clickPv": 0.29,
"clickUv": 0.29,
"shopCartRate": 0.29,
"orderRate": 0.01,
"orderNum": 1,
"amount": 1000.25
},
{
"time": "2016-12-26 00:00:00",
"appType": "android",
"channel": "男生",
"position": "搜索",
"name": "搜索",
"pv": "100",
"uv": "20",
"clickPv": 0.29,
"clickUv": 0.29,
"shopCartRate": 0.29,
"orderRate": 0.01,
"orderNum": 1,
"amount": 1000.25
},
{
"time": "2016-12-26 00:00:00",
"appType": "android",
"channel": "男生",
"position": "搜索",
"name": "搜索",
"pv": 100,
"uv": 20,
"clickPv": 0.29,
"clickUv": 0.29,
"shopCartRate": 0.29,
"orderRate": 0.01,
"orderNum": 1,
"amount": 1000.25
}
]
}
3、资源位分类结构树获取
请求方法
get http://ip:port/data-analysis-web/resources_analysis/type_tree?channel=1 (1:男生 2:女生 3:潮童 4:创意生活)
(此请求加了缓存,如果想返回最新数据,请加参数noCache=1)
响应内容json
{
"alg": "SALT_MD5",
"code": 200,
"data": [
{
"createTime": 1484026741,
"founder": "zq",
"id": 134,
"orderBy": 1,
"position": "",
"typeId": 4000,
"typeIsLeaf": 0,
"typeLevel": 1,
"typeName": "男生首页",
"typeParentId": 0
},
{
"createTime": 1484026741,
"founder": "zq",
"id": 136,
"orderBy": 2,
"position": "9",
"typeId": 4001,
"typeIsLeaf": 0,
"typeLevel": 2,
"typeName": "焦点图",
"typeParentId": 4000
},
{
"createTime": 1484026741,
"founder": "zq",
"id": 138,
"orderBy": 3,
"position": "9:1",
"typeId": 4002,
"typeIsLeaf": 1,
"typeLevel": 3,
"typeName": "焦点图1",
"typeParentId": 4001
}],
"md5": "714a404f16e6aab8970a9af5fd63f15e",
"message": "SUCCESS"
}