pv_uv_shopcard.md 7.48 KB

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

接口描述

1、流量入口点击分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true android/ios/wap/pc/all 客户端类类型
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=2016-12-26 0:0:0&to=2017-1-20 23:59:59

请求内容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、资源位分类点击sum分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
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_sum?appType=yohobuy_ios&from=2015-12-26 0:0:0&to=2017-1-20 23:59:59&channel=1&navigate=4000

响应内容json

    "alg": "SALT_MD5",
"code": 200,
"data": [
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": "男生首页",
        "clickPv": 0,
        "name": "潮流服饰1",
        "orderNum": 0,
        "orderRate": 0,
        "position": "潮流服饰",
        "pv": 46,
        "shopCartRate": 0,
        "time": "2017-01-17",
        "uv": 45
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": "男生首页",
        "clickPv": 0,
        "name": "潮流服饰2",
        "orderNum": 0,
        "orderRate": 0,
        "position": "潮流服饰",
        "pv": 46,
        "shopCartRate": 0,
        "time": "2017-01-17",
        "uv": 45
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": "男生首页",
        "clickPv": 0,
        "name": "潮流服饰3",
        "orderNum": 0,
        "orderRate": 0,
        "position": "潮流服饰",
        "pv": 46,
        "shopCartRate": 0,
        "time": "2017-01-17",
        "uv": 45
    }
        ],
        "time": "2017-01-17",
        "uv": 45
    }
],
"md5": "e2c7109467b5d0513fb5ba0c441ed101",
"message": "SUCCESS"

}

3、资源位分类点击分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
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=yohobuy_ios&from=2015-12-26 0:0:0&to=2017-1-20 23:59:59&channel=1&navigate=4000:4001:4002

响应内容json

{
"alg": "SALT_MD5",
"code": 200,
"data": [
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": "男生首页",
        "clickPv": 0,
        "clickUv": 0,
        "name": "焦点图1",
        "orderNum": 0,
        "position": "焦点图",
        "pv": 3,
        "shopCartRate": 0,
        "time": "2017-01-17",
        "uv": 0
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": "男生首页",
        "clickPv": 0,
        "clickUv": 0,
        "name": "焦点图1",
        "orderNum": 0,
        "position": "焦点图",
        "pv": 3,
        "shopCartRate": 0,
        "time": "2017-01-17",
        "uv": 0
    }
        ],
        "time": "2017-01-17",
        "uv": 45
    }
],
"md5": "e2c7109467b5d0513fb5ba0c441ed101",
"message": "SUCCESS"

}

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

请求方法

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"
}

5、资源位分类趋势图点击分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
kpiType String true '2000'
position String true '2:1'

请求方法

get  http://ip:port/data-analysis-web/resources_analysis/click_trend?kpiType=2000&position='2:1'

响应内容json

{
"alg": "SALT_MD5",
"code": 200,
"data": [
    {
        "clickPv": 0,
        "orderNum": 0,
        "time": "2017-01-17"
    },
    {
        "clickPv": 0,
        "orderNum": 0,
        "time": "2017-01-17"
    }
        ],
    "md5": "714a404f16e6aab8970a9af5fd63f15e",
    "message": "SUCCESS"
    }
],
"md5": "e2c7109467b5d0513fb5ba0c441ed101",
"message": "SUCCESS"

}