試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
Comparison
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
定義個別比較項目。大多數要求都會包含多項比較,因此報表會比較這些比較結果。
| JSON 表示法 |
{
"name": string,
// The following is a list of mutually exclusive fields. At most one of the
// fields will be set in a response:
"dimensionFilter": {
object (FilterExpression)
},
"comparison": string
// End of mutually exclusive fields.
} |
| 欄位 |
name |
string
回應中的每個比較項目都會產生不同的資料列。在回應中,系統會透過這個名稱識別這項比較。如未指定名稱,系統會使用已儲存的比較項目顯示名稱。
|
| 一種比較值。以下是互斥欄位清單。回應中最多只會設定一個欄位: |
dimensionFilter |
object (FilterExpression)
基本比較。
|
comparison |
string
以比較項目的資源名稱識別已儲存的比較項目。例如「comparisons/1234」。
|
| 互斥欄位的結尾。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-09-16 (世界標準時間)。
[null,null,["上次更新時間:2026-09-16 (世界標準時間)。"],[],["The content defines a comparison structure for reporting. Each comparison has a `name` for identification in the response. A comparison can be defined in one of two ways: by a `dimensionFilter` object, which specifies a basic filter criteria; or by referencing a pre-existing saved `comparison` via its resource name. Multiple comparisons are used together to create a report, each comparison generating separate rows in the output.\n"]]