Metric
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
报告的量化衡量标准。例如,eventCount
指标是指事件总数。最多允许请求 10 个指标。
JSON 表示法 |
{
"name": string,
"expression": string,
"invisible": boolean
} |
字段 |
name |
string
指标的名称。请参阅 API 指标,了解核心报告方法(例如 runReport 和 batchRunReports )支持的指标名称列表。如需查看 runRealtimeReport 方法支持的指标名称列表,请参阅实时指标。如需查看 runFunnelReport 方法支持的指标名称列表,请参阅漏斗指标。 如果指定了 expression ,则 name 可以是您希望在允许的字符集中添加的任何字符串。例如,如果 expression 为 screenPageViews/sessions ,您可以将该指标的名称称为 viewsPerSession 。您选择的指标名称必须与正则表达式 ^[a-zA-Z0-9_]$ 匹配。 指标由 metricFilter 、orderBys 和 expression 中的 name 引用。
|
expression |
string
用于派生指标的数学表达式。例如,“每位用户的事件数”指标为 eventCount/totalUsers 。
|
invisible |
boolean
指明指标是否在报告响应中不可见。如果指标不可见,则该指标不会在响应中生成列,但可以在 metricFilter 、orderBys 或 expression 中使用。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-05-02。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]