使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
架构兼容性变更公告。
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 v1 创建自定义报告,请更新代码以反映架构兼容性变更。
商品级范围的维度
商品级范围的维度包括: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
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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`."]]