pv_uv_shopcard.md 4.4 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 android/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_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}
]
}
}