试用 Google Analytics 的 MCP 服务器。从
GitHub 安装,并参阅
公告了解详情。
MetricHeader
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eMetric columns in reports are defined by a JSON representation with a \u003ccode\u003ename\u003c/code\u003e and a \u003ccode\u003etype\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMetrics used only in filters or expressions do not generate visible columns or headers in the report.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field is a string identifying the metric, while the \u003ccode\u003etype\u003c/code\u003e field specifies the metric's data type using the MetricType enum.\u003c/p\u003e\n"]]],["Metric columns in a report are generated for visible metrics, appearing in both rows and headers. Metrics used solely in filters or expressions are excluded from report columns and headers. Each metric is defined by its `name` (a string) and `type`, which is an enumerated data type (`MetricType`). The JSON representation for a metric includes these two properties.\n"],null,["# MetricHeader\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nDescribes a metric column in the report. Visible metrics requested in a report produce column entries within rows and MetricHeaders. However, metrics used exclusively within filters or expressions do not produce columns in a report; correspondingly, those metrics do not produce headers.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"type\": enum (/analytics/devguides/reporting/data/v1/rest/v1beta/MetricType) } ``` |\n\n| Fields ||\n|--------|----------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The metric's name. |\n| `type` | `enum (`[MetricType](/analytics/devguides/reporting/data/v1/rest/v1beta/MetricType)`)` The metric's data type. |"]]