pv_uv_shopcard.md 3.94 KB

#流量入口点击分析&资源位分类点击分析

接口描述

1、流量入口点击分析

请求参数

Param Name Param Type Required Param Value Desc
apptype String true android/ios/wap/pc/all 客户端类类型
from int true 时间段-开始时间
to int true 时间段-结束时间
first int true 1-登录 2-侧栏 3-功能 一级
second 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/flowsurvey/input_click?apptype=**&from=***

请求内容json

{
"apptype": "android",
"from": 1482757176,
"to": 1482757776,
"first": 1,
"second": 1
}

响应内容json

{
"code": 200,
"msg": "",
"data": [
{
"time": "2016-12-26 00:00:00",
"platform": "android",
"first": "登录页",
"second": "男生",
"pv": 100,
"uv": 20,
"uvRate": 0.29
},
{
"time": "2016-12-26 00:00:00",
"platform": "android",
"first": "登录页",
"second": "男生",
"pv": 100,
"uv": 20,
"uvRate": 0.29
}
]
}

2、资源位分类点击分析

请求参数

Param Name Param Type Required Param Value Desc
apptype String true android/ios/wap/web 客户端类类型
from int false 时间段-开始时间
to int false 时间段-结束时间
channel int true 1-男生 2-女生 3-潮童 4-创意生活 频道
navigate String true 左侧导航栏(父子之间用:分割 同层级间菜单编号不能重复) 左侧导航栏

请求方法

get  http://ip:port/flowsurvey/resources_click?apptype=**&from=***

请求内容json

{
    "apptype":"android",
    "timetype":"1",
    "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,
"clickPvRate": 0.29,
"clickUvRate": 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",
"clickPvRate": 0.29,
"clickUvRate": 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,
"clickPvRate": 0.29,
"clickUvRate": 0.29,
"shopcartRate": 0.29,
"orderRate": 0.01,
"orderNum": 1,
"amount": 1000.25
}
]
}

3、资源位分类结构树获取

请求方法

get  http://ip:port/flowsurvey/typetree

响应内容json

{
"code": 200,
 "msg": "",
"data": {
"content": [
  {"typeId":1,"typeName":"首页","typeIsLeaf":0,"typeParentId":0},
  {"typeId":2,"typeName":"搜索","typeIsLeaf":0,"typeParentId":0},
  {"typeId":3,"typeName":"默认搜索","typeIsLeaf":1,"typeParentId":2},
  {"typeId":4,"typeName":"热门搜索","typeIsLeaf":1,"typeParentId":2},
  {"typeId":5,"typeName":"最近搜索","typeIsLeaf":1,"typeParentId":2}
]
}
}