数据统计与分析
访问留存
小程序日留存
go
MiniProgramApp.DataCube.GetDailyRetainInfo(ctx,"20170313", "20170313")
小程序月留存
go
MiniProgramApp.DataCube.GetMonthlyRetainInfo(ctx,"20210906", "20210912")
小程序周留存
go
MiniProgramApp.DataCube.GetWeeklyRetainInfo(ctx,"20170201", "20170228")
日汇总统计数据
小程序数据概况
go
MiniProgramApp.DataCube.GetDailySummary(ctx,"20170313", "20170313")
访问趋势
小程序数据日趋势
go
MiniProgramApp.DataCube.GetDailyVisitTrend(ctx,"20170313", "20170313")
小程序数据月趋势
注:(能查询到的最新数据为上一个自然月的数据)
go
MiniProgramApp.DataCube.GetMonthlyVisitTrend(ctx,"20170301", "20170301")
小程序数据周趋势
go
MiniProgramApp.DataCube.GetWeeklyVisitTrend(ctx,"20170306", "20170312")
性能/运行性能数据
go
options := &request.RequestGetPerformanceData{
Time: &request.GetPerformanceDataTime{
BeginTimestamp: 1609689600,
EndTimestamp: 1609603200,
},
Module: "10022",
Params: []*request.GetPerformanceDataParams{
{
Field: "networktype",
Value: "wifi",
},
{
Field: "device_level",
Value: "1",
},
{
Field: "device",
Value: "1",
},
},
}
MiniProgramApp.DataCube.GetPerformanceData(options)
用户画像数据
新增或活跃用户的画像分布
go
from := "20210906"
to := "20210912"
MiniProgramApp.DataCube.GetUserPortrait(ctx,"20170611", "20170617")
访问分布数据
go
MiniProgramApp.DataCube.GetVisitDistribution(ctx,"20170313", "20170313")
访问页面数据
go
MiniProgramApp.DataCube.GetVisitPage(ctx,"20170313", "20170313")