pv_uv_shopcard.md 13 KB

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

接口描述

1、流量入口点击分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true android/ios/wap/pc/all 客户端类类型
appEdition String true 客户端版本:AB
date date false 2016-12-26 时间类型(默认当天)
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&date=2016-12-26&appEdition=A 

请求内容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 客户端类类型
appEdition String true 客户端版本:AB
date date false 2016-12-26 时间类型(默认当天)
channel int true 1-男生 2-女生 3-潮童 4-创意生活 频道
navigate String true 左侧导航栏(父子之间用:分割 同层级间菜单编号不能重复) 左侧导航栏

请求方法

get  http://ip:port/data-analysis-web/resources_analysis/click_sum?appType=yohobuy_ios&date=2015-12-26&channel=1&navigate=4000&appEdition=A 

响应

{
"alg": "SALT_MD5",
"code": 200,
"data": [
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": 1,
        "channelName": "搜索",
        "clickPv": 14220,
        "clickUv": 10687,
        "kpiType": 2000,
        "name": "搜索框",
        "orderNum": 201,
        "position": "0",
        "positionName": "",
        "pv": 0,
        "shopCartRate": 1042,
        "time": "2017-03-15",
        "typeId": 2001,
        "url": "",
        "uv": 0
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": 1,
        "channelName": "搜索",
        "clickPv": 4058,
        "clickUv": 3772,
        "kpiType": 2000,
        "name": "最近搜索",
        "orderNum": 123,
        "position": "1",
        "positionName": "",
        "pv": 0,
        "shopCartRate": 489,
        "time": "2017-03-15",
        "typeId": 2002,
        "url": "",
        "uv": 0
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": 1,
        "channelName": "搜索",
        "clickPv": 886,
        "clickUv": 815,
        "kpiType": 2000,
        "name": "热门搜索",
        "orderNum": 11,
        "position": "2",
        "positionName": "",
        "pv": 0,
        "shopCartRate": 58,
        "time": "2017-03-15",
        "typeId": 2003,
        "url": "",
        "uv": 0
    },
    {
        "amount": 0,
        "appType": "yohobuy_ios",
        "channel": 1,
        "channelName": "搜索",
        "clickPv": 577,
        "clickUv": 549,
        "kpiType": 2000,
        "name": "猜你想找",
        "orderNum": 7,
        "position": "3",
        "positionName": "",
        "pv": 0,
        "shopCartRate": 35,
        "time": "2017-03-15",
        "typeId": 2004,
        "url": "",
        "uv": 0
    }
],
"md5": "03cad18327f119a4bb736f8d3b957737",
"message": "SUCCESS"
}  

3、资源位分类点击分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
appEdition String true 客户端版本:AB
date date false 2016-12-26 时间类型(默认当天)
channel int true 1-男生 2-女生 3-潮童 4-创意生活 频道
pageSize int false 50 每页多少条记录,如果不传,默认50条
pageNo int false 1 第几页,如果不传,默认第一页
navigate String true 左侧导航栏(父子之间用:分割 同层级间菜单编号不能重复) 左侧导航栏

请求方法

get  http://ip:port/data-analysis-web/resources_analysis/click?appType=yohobuy_ios&date=2015-12-26&channel=1&navigate=4000:4001:4002&&appEdition=A 

响应内容json

{
"alg": "SALT_MD5",
"code": 200,
"data": {
    "pageNo": 1,
    "pageSize": 10,
    "records": [
        {
            "amount": 0,
            "appType": "yohobuy_ios",
            "channel": 1,
            "channelName": "搜索",
            "clickPv": 4120,
            "clickUv": 3832,
            "kpiType": 2000,
            "name": "最近搜索",
            "orderNum": 126,
            "position": "1",
            "positionName": "",
            "pv": 0,
            "shopCartRate": 495,
            "time": "2017-03-15",
            "url": "",
            "uv": 0
        }
    ],
    "totalCount": 1,
    "totalPage": 1
},
"md5": "660b2a081df4196f4ea35094f2259561",
"message": "SUCCESS"

}

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

请求参数

Param Name Param Type Required Param Value Desc
appEdition String true 客户端版本:AB
channel String true 1:男生 2:女生 3:潮童 4:创意生活 频道
date String false 默认今天 日期

请求方法

get  http://ip:port/data-analysis-web/resources_analysis/type_tree?channel=1&appEdition=A&date=2017-03-05  

响应内容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 客户端类类型
appEdition String true 客户端版本:AB
kpiType String true '2000'
typeId int true 4001
url String false 'www.yohobuy.com'

请求方法

get  http://ap2.yohobuy.com/data-analysis-web/resources_analysis/click_trend?appType=yohobuy_ios&typeId=4001&appEdition=A&channel=1&kpiType=4000

响应内容json

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

6、 活动 url分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
date String false 2017-02-21 查询日期
kpiUrl String true 活动页url
url String false 活动页里具体的url

请求方法

get  http://ap2.yohobuy.com/data-analysis-web/resources_analysis/kpi_url?appType=yohobuy_android&kpiUrl=www.baidu.com&date=2017-1-20

响应内容

{
"alg": "SALT_MD5",
"code": 200,
"data": {
    "pageNo": 1,
    "pageSize": 50,
    "records": [
        {
            "amount": 4,
            "appType": "yohobuy_android",
            "clickPv": 4,
            "clickUv": 4,
            "kpiPosition": "111",
            "kpiUrl": "www.baidu.com",
            "orderNum": 4,
            "position": "111",
            "pv": 4,
            "shopCartRate": 4,
            "time": "2017-02-17",
            "url": "2222",
            "uv": 4
        },
        {
            "amount": 3,
            "appType": "yohobuy_android",
            "clickPv": 3,
            "clickUv": 3,
            "kpiPosition": "111",
            "kpiUrl": "www.baidu.com",
            "orderNum": 3,
            "position": "111",
            "pv": 3,
            "shopCartRate": 3,
            "time": "2017-02-17",
            "url": "1111",
            "uv": 3
        },
        {
            "amount": 2,
            "appType": "yohobuy_ios",
            "clickPv": 2,
            "clickUv": 2,
            "kpiPosition": "111",
            "kpiUrl": "www.baidu.com",
            "orderNum": 2,
            "position": "111",
            "pv": 2,
            "shopCartRate": 2,
            "time": "2017-02-17",
            "url": "2222",
            "uv": 2
        },
        {
            "amount": 1,
            "appType": "yohobuy_ios",
            "clickPv": 1,
            "clickUv": 1,
            "kpiPosition": "111",
            "kpiUrl": "www.baidu.com",
            "orderNum": 1,
            "position": "111",
            "pv": 1,
            "shopCartRate": 1,
            "time": "2017-02-17",
            "url": "1111",
            "uv": 1
        }
    ],
    "totalCount": 4,
    "totalPage": 1
},
"md5": "09aac1f2cfb3ea23e9e0287defb3c3c6",
"message": "SUCCESS"

}

7、 详情页分析

请求参数

Param Name Param Type Required Param Value Desc
appType String true yohobuy_android/yohobuy_ios/wap/web/all 客户端类类型
date String false 2017-02-21 查询日期
appEdition String true 客户端版本:AB

请求方法

get  http://ap2.yohobuy.com/data-analysis-web/resources_analysis/kpi_detail?appType=yohobuy_ios&appEdition=A&date=2017-02-23

响应内容

{
"alg": "SALT_MD5",
"code": 200,
"data": {
    "amount": 0,
    "appEdition": "A",
    "appType": "yohobuy_ios",
    "clickOut": 266919,
    "clickPv": 393131,
    "clickUv": 330100,
    "orderNum": 1590,
    "shopcart": 18187
},
"md5": "94e13f7199245ba17c803a66d9c738e2",
"message": "SUCCESS"

}