简要描述:
根据类型日期搜索会员浏览量、访客数等统计图数据
请求URL:
GET/plugin.shop-statistics.backend.member.search-browse-footprint
请求参数说明:
参数名 | 类型 | 是否必须 | 说明 |
---|---|---|---|
time_type | string | 否 | 类型:月month,周week,日day,不传默认day |
time | int | 否 | 搜索时间戳,不传默认为前一天时间,时间类型为月的情况下传选择月的结束或者开始时间戳,周的情况下传选择周的结束或开始,日以此类推 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"data": [
{
"key": 0,
"name": "全部",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
},
{
"key": 1,
"name": "微信公众号",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
},
{
"key": 2,
"name": "微信小程序",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
},
{
"key": 5,
"name": "Wap",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
},
{
"key": 7,
"name": "APP",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
},
{
"key": 55,
"name": "PC端",
"x_axis": [
"2021/01",
"2021/03",
"2021/05",
"2021/07",
"2021/08",
"2021/10",
"2021/12"
],
"y_axis": {
"count": [
0,
0,
0,
0,
0,
0,
0
],
"cookie_count": [
0,
0,
0,
0,
0,
0,
0
]
}
}
],
"search_data": {
"count": 0,
"cookie_count": 0
}
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
search_data | array | 查询日期的总浏览量和访客数(count:浏览量,cookie_count:访问数) |
data | array | 查询日期的各端口浏览量和访客数统计图数据 |
data.name | string | 端口名 |
data.x_axis | array | 该端口下的x轴数据 |
data.y_axis.count | array | 该端口下的浏览量y轴数据 |
data.y_axis.cookie_count | array | 该端口下的访问数y轴数据 |