DailyMetric
DailyMetric
Section titled “DailyMetric”每日客流核心指标,按店铺按日聚合。在 dailyMetrics 查询中使用。
query { dailyMetrics(storeId: 1, startDate: "2026-07-01", endDate: "2026-07-31") { date passByVisits enteringPeople enteringVisits receptionPeople dwellPeople totalDwellSeconds servedPeople serviceDurationSeconds counterLingerPeople counterLingerDurationSeconds counterLingerAvgSeconds }}Fields
Section titled “Fields”| 字段 | 类型 | 说明 |
|---|---|---|
date |
String! |
日期,YYYY-MM-DD |
passByVisits |
Int! |
过店客流·人次。店外经过的客流,硬件当前仅支持人次统计 |
enteringVisits |
Int! |
进店客流·人次。从入口进入店铺的次数 |
enteringPeople |
Int! |
进店客流·人数(去重顾客)。从入口进入店铺的客流按人去重 |
receptionPeople |
Int! |
迎宾人数。迎宾区被员工迎接的去重人数 |
dwellPeople |
Int! |
逗留人数。逗留时长达到店铺配置阈值的人数 |
totalDwellSeconds |
Int! |
逗留总时长(秒)。全部顾客在店逗留时长之和 |
servedPeople |
Int! |
被服务人数 |
serviceDurationSeconds |
Int! |
服务总时长(秒)。全部被服务时长之和 |
counterLingerPeople |
Int! |
贴柜人数(去重)。店外柜台附近逗留的人数 |
counterLingerDurationSeconds |
Int! |
贴柜逗留总时长(秒)。贴柜顾客逗留时长之和 |
counterLingerAvgSeconds |
Int! |
人均贴柜时长(秒)= counterLingerDurationSeconds / counterLingerPeople,人数为 0 时返回 0 |
Arguments
Section titled “Arguments”dailyMetrics 的参数:
| 参数 | 类型 | 说明 |
|---|---|---|
storeId |
Int! |
门店 ID |
startDate |
String! |
起始日期,YYYY-MM-DD |
endDate |
String! |
结束日期,YYYY-MM-DD |
- 过店客流:只有
passByVisits(人次),无对应人数指标。 - 进店人次:
enteringVisits为进店人次,enteringPeople为范围内去重人数。 - 迎宾:
receptionPeople= 在迎宾区被员工迎接的去重人数。 - 逗留 / 深逛:
dwellPeople使用店铺配置的驻留阈值;「深逛(>5 分钟)比例」需把店铺阈值配成 5 分钟后dwellPeople / enteringPeople。 - 贴柜:指顾客在店外柜台附近逗留(开放式店铺),按日去重统计。
| KPI | 计算 |
|---|---|
| 迎宾服务率 | receptionPeople / enteringPeople |
| 深逛顾客比例 | dwellPeople(店铺阈值配成 5 分钟)/ enteringPeople |
| 服务率 | servedPeople / enteringPeople |
| 平均服务时长 | serviceDurationSeconds / servedPeople |
| 平均逗留时长 | totalDwellSeconds / dwellPeople(或 / enteringPeople) |