試用 Google Analytics 的 MCP 伺服器。從
GitHub 安裝,詳情請參閱
公告。
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
結構定義相容性異動公告。
下列重大異動將於 2022 年 12 月 1 日生效:
source
等歸因維度與 eventCount
等以事件為範圍的指標不相容。歸因維度仍可與 conversions
等可歸因指標、activeUsers
等使用者為基礎的指標,以及 sessions
等以工作階段為基礎的指標 相容。
包含 pagePathPlusQueryString
等查詢字串的維度,只能與有限的維度和指標相容。
以下異動原訂於 2022 年 12 月 1 日生效。不過,以商品為範圍的維度變更會在 2023 年初的某個時間點發生。
itemName
等以商品為範圍的維度與 eventCount
等以事件為範圍的指標不相容。以商品為範圍的維度仍可與itemRevenue
等以商品為範圍的指標、activeUsers
等以使用者為範圍的指標,以及sessions
等以工作階段為範圍的指標相容。
此外,Google Analytics 也將重新命名下列指標:
目前的 API 名稱 |
未來的 API 名稱 |
itemListClicks |
itemListClickEvents |
itemListViews |
itemListViewEvents |
itemPromotionClicks |
promotionClicks |
itemPromotionViews |
promotionViews |
itemViews |
itemViewEvents |
itemPurchaseQuantity |
itemsPurchased |
需要採取的行動
如果您只使用 Google Analytics 使用者介面 (GA4) 中的預設報表,則不需要採取任何行動。系統會自動遷移這些報表。
如果您在 Google Analytics 使用者介面 (GA4) 中使用探索或自訂報表,請更新已儲存的探索和報表,只使用相容的欄位。
如果您使用 Google Analytics Data API 第 1 版建立自訂報表,請更新程式碼,反映結構定義相容性變更。
以商品為範圍的維度
以項目為範圍的維度包括:itemAffiliation
、itemBrand
、itemCategory
、itemCategory2
、itemCategory3
、itemCategory4
、itemCategory5
、itemId
、itemListId
、itemListName
、itemName
、itemPromotionCreativeName
、itemPromotionId
、itemPromotionName
和 itemVariant
。
以事件為範圍的指標與以商品為範圍的維度不相容
與項目範圍維度不相容的事件範圍指標包括:eventCount
、adUnitExposure
、addToCarts
、averagePurchaseRevenue
、checkouts
、conversions
、ecommercePurchases
、eventCountPerUser
、eventValue
、eventsPerSession
、firstTimePurchasersPerNewUser
、itemListClicks
、itemListViews
、itemPromotionClicks
、itemPromotionViews
、itemViews
、newUsers
、publisherAdClicks
、publisherAdImpressions
、purchaseRevenue
、screenPageViews
、screenPageViewsPerSession
、shippingAmount
、taxAmount
、transactions
、transactionsPerPurchaser
和 userEngagementDuration
。
以事件為範圍的指標與歸因維度不相容
與歸因維度不相容的事件範圍指標包括:eventCount
、adUnitExposure
、addToCarts
、averagePurchaseRevenue
、checkouts
、ecommercePurchases
、eventCountPerUser
、eventsPerSession
、firstTimePurchasersPerNewUser
、itemListClicks
、itemListViews
、itemPromotionClicks
、itemPromotionViews
、itemViews
、newUsers
、publisherAdClicks
、publisherAdImpressions
、screenPageViews
、screenPageViewsPerSession
、shippingAmount
、taxAmount
、transactions
、transactionsPerPurchaser
和 userEngagementDuration
。
以商品為範圍的指標
以商品為範圍的指標包括:itemRevenue
和 itemPurchaseQuantity
。
以使用者為基礎的指標
以使用者為依據的指標包括:activeUsers
、active1DayUsers
、active28DayUsers
、active7DayUsers
、totalUsers
、cartToViewRate
、cohortActiveUsers
、cohortTotalUsers
、dauPerMau
、dauPerWau
、firstTimePurchaserConversionRate
、firstTimePurchasers
、itemListClickThroughRate
、itemPromotionClickThroughRate
、purchaseToViewRate
、purchaserConversionRate
、userConversionRate
、sessionsPerUser
和 wauPerMau
。
以工作階段為基礎的指標
以工作階段為基礎的指標包括:sessions
、engagedSessions
、sessionConversionRate
和 bounceRate
。
歸因維度
歸因維度包括:source
、campaignId
、campaignName
、defaultChannelGrouping
、medium
、sourcePlatform
、googleAdsAccountName
、googleAdsAdGroupId
、googleAdsAdGroupName
、googleAdsAdNetworkType
、googleAdsCampaignId
、googleAdsCampaignName
、googleAdsCampaignType
、googleAdsCreativeId
、googleAdsCustomerId
、googleAdsKeyword
、googleAdsQuery
。
歸因指標
可歸因指標包括:conversions
、eventValue
、purchaseRevenue
、totalRevenue
和 totalAdRevenue
。
與查詢字串維度相容的維度
與查詢字串維度相容的維度包括:pagePathPlusQueryString
、unifiedPageScreen
、pageLocation
、fullPageUrl
、hostName
、pageTitle
、eventName
、platform
、countryId
、date
和 country
。
與查詢字串維度相容的指標
與查詢字串維度相容的指標包括:screenPageViews
、userEngagementDuration
、eventCount
、activeUsers
、conversions
、totalUsers
、totalSessions
和 engagedSessions
。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eOn December 1st, 2022, Google Analytics 4 will introduce breaking changes to schema compatibility, affecting how certain dimensions and metrics can be combined in reports and analyses.\u003c/p\u003e\n"],["\u003cp\u003eAttribution dimensions (like source, medium, campaign) will become incompatible with some event-scoped metrics (like eventCount, addToCarts), while remaining compatible with attributable, user-based, and session-based metrics.\u003c/p\u003e\n"],["\u003cp\u003eDimensions containing query strings (like pagePathPlusQueryString) will have limited compatibility with other dimensions and metrics.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Analytics 4 is also renaming several item-related metrics for better clarity and consistency.\u003c/p\u003e\n"],["\u003cp\u003eIf you are using explorations, custom reports, or the Data API, review and update your configurations to align with these schema compatibility changes to avoid reporting issues.\u003c/p\u003e\n"]]],["Schema compatibility changes are coming to Google Analytics. Starting December 1st, 2022, attribution dimensions like `source` will be incompatible with event-scoped metrics like `eventCount`. Dimensions including query strings will only work with a limited set of dimensions and metrics. Item-scoped dimension changes will happen in early 2023, not December 1st. Several metrics will also be renamed. Users need to update custom reports and API code to ensure compatibility with the changes.\n"],null,["Schema compatibility changes announcement.\n------------------------------------------\n\nOn *December 1st 2022*, the following breaking changes will occur:\n\n1. [Attribution dimensions](#attribution_dimensions) like `source` are\n becoming incompatible with some\n [event-scoped metrics](#event-scoped_metrics_incompatible_with_attribution_dimensions)\n like `eventCount`. Attribution dimensions will still be\n compatible with [attributable metrics](#attributable_metrics) like\n `conversions`, [user-based metrics](#user-based_metrics)\n like `activeUsers`, and [session-based metrics](#session-based_metrics) like\n `sessions`.\n\n2. Dimensions that include the query string like `pagePathPlusQueryString` will\n only be compatible with a limited set of [dimensions](#dimensions_compatible_with_query_string_dimensions)\n \\& [metrics](#metrics_compatible_with_query_string_dimensions).\n\nThe following changes were originally scheduled for *December 1st 2022* .\nHowever, the changes to [Item-scoped dimensions](#item-scoped_dimensions) will\nhappen at a later date in early 2023.\n\n1. [Item-scoped dimensions](#item-scoped_dimensions) like `itemName` are becoming incompatible with [event-scoped metrics](#event-scoped_metrics_incompatible_with_item-scoped_dimensions) like `eventCount`. Item-scoped dimensions will still be compatible with [item-scoped metrics](#item_scope_metrics) like `itemRevenue`, [user-based metrics](#user-based_metrics) like `activeUsers`, and [session-based metrics](#session-based_metrics) like `sessions`.\n\nIn addition, the Google Analytics is renaming the following metrics:\n\n| Current API name | Future API name |\n|----------------------|---------------------|\n| itemListClicks | itemListClickEvents |\n| itemListViews | itemListViewEvents |\n| itemPromotionClicks | promotionClicks |\n| itemPromotionViews | promotionViews |\n| itemViews | itemViewEvents |\n| itemPurchaseQuantity | itemsPurchased |\n\n### Actions needed\n\n- If you are only relying on default reports in the Google Analytics UI (GA4),\n no action needed. These reports will be migrated automatically.\n\n- If you are using explorations or custom reports in the Google Analytics UI\n (GA4) , update the saved explorations and reports to only use the compatible\n fields.\n\n- If you are creating custom reports using the Google Analytics Data API v1,\n update your code to reflect the schema compatibility changes.\n\n### Item-scoped dimensions\n\nItem-scoped dimensions include: `itemAffiliation`, `itemBrand`, `itemCategory`,\n`itemCategory2`, `itemCategory3`, `itemCategory4`, `itemCategory5`, `itemId`,\n`itemListId`, `itemListName`, `itemName`, `itemPromotionCreativeName`,\n`itemPromotionId`, `itemPromotionName`, \\& `itemVariant`.\n\n### Event-scoped metrics incompatible with item-scoped dimensions\n\nThe event-scoped metrics that are becoming incompatible with item-scoped\ndimensions include: `eventCount`, `adUnitExposure`, `addToCarts`,\n`averagePurchaseRevenue`, `checkouts`, `conversions`, `ecommercePurchases`,\n`eventCountPerUser`, `eventValue`, `eventsPerSession`,\n`firstTimePurchasersPerNewUser`, `itemListClicks`, `itemListViews`,\n`itemPromotionClicks`, `itemPromotionViews`, `itemViews`, `newUsers`,\n`publisherAdClicks`, `publisherAdImpressions`, `purchaseRevenue`,\n`screenPageViews`, `screenPageViewsPerSession`, `shippingAmount`, `taxAmount`,\n`transactions`, `transactionsPerPurchaser` \\& `userEngagementDuration`.\n\n### Event-scoped metrics incompatible with attribution dimensions\n\nThe event-scoped metrics that are becoming incompatible with attribution\ndimensions include: `eventCount`, `adUnitExposure`, `addToCarts`,\n`averagePurchaseRevenue`, `checkouts`, `ecommercePurchases`,\n`eventCountPerUser`, `eventsPerSession`, `firstTimePurchasersPerNewUser`,\n`itemListClicks`, `itemListViews`, `itemPromotionClicks`, `itemPromotionViews`,\n`itemViews`, `newUsers`, `publisherAdClicks`, `publisherAdImpressions`,\n`screenPageViews`, `screenPageViewsPerSession`, `shippingAmount`, `taxAmount`,\n`transactions`, `transactionsPerPurchaser`, \\& `userEngagementDuration`.\n\n### Item scope metrics\n\nItem-scoped metrics include: `itemRevenue` \\& `itemPurchaseQuantity`.\n\n### User-based metrics\n\nUser-based metrics include: `activeUsers`, `active1DayUsers`,\n`active28DayUsers`, `active7DayUsers`, `totalUsers`, `cartToViewRate`,\n`cohortActiveUsers`, `cohortTotalUsers`, `dauPerMau`, `dauPerWau`,\n`firstTimePurchaserConversionRate`, `firstTimePurchasers`,\n`itemListClickThroughRate`, `itemPromotionClickThroughRate`,\n`purchaseToViewRate`, `purchaserConversionRate`, `userConversionRate`,\n`sessionsPerUser`, \\& `wauPerMau`.\n\n### Session-based metrics\n\nSession-based metrics include: `sessions`, `engagedSessions`,\n`sessionConversionRate` \\& `bounceRate`.\n\n### Attribution dimensions\n\nAttribution dimensions include: `source`, `campaignId`, `campaignName`,\n`defaultChannelGrouping`, `medium`, `sourcePlatform`, `googleAdsAccountName`,\n`googleAdsAdGroupId`, `googleAdsAdGroupName`, `googleAdsAdNetworkType`,\n`googleAdsCampaignId`, `googleAdsCampaignName`, `googleAdsCampaignType`,\n`googleAdsCreativeId`, `googleAdsCustomerId`, `googleAdsKeyword`,\n`googleAdsQuery`.\n\n### Attributable metrics\n\nAttributable metrics include: `conversions`, `eventValue`, `purchaseRevenue`,\n`totalRevenue`, \\& `totalAdRevenue`.\n\n### Dimensions compatible with query string dimensions\n\nDimensions that will be compatible with query string dimensions include:\n`pagePathPlusQueryString`, `unifiedPageScreen`, `pageLocation`, `fullPageUrl`,\n`hostName`, `pageTitle`, `eventName`, `platform`, `countryId`, `date`, and\n`country`.\n\n### Metrics compatible with query string dimensions\n\nMetrics that will be compatible with query string dimensions include:\n`screenPageViews`, `userEngagementDuration`, `eventCount`, `activeUsers`,\n`conversions`, `totalUsers`, `totalSessions`, \\& `engagedSessions`."]]