简体   繁体   English

Google Analytics Data API (GA4) - item.variant 维度?

[英]Google Analytics Data API (GA4) - item.variant dimension?

So, ga4-ecommerce has the property "variant" for it's items: (see https://developers.google.com/tag-manager/ecommerce-ga4 )因此,ga4-ecommerce 的项目具有“变体”属性:(请参阅https://developers.google.com/tag-manager/ecommerce-ga4

dataLayer.push({
  event: "view_item_list",
  ecommerce: {
   items: [
    {
      item_name: "Triblend Android T-Shirt",       // Name or ID is required.
      item_id: "12345",
      price: 15.25,
      item_brand: "Google",
      item_category: "Apparel",
      item_category2: "Mens",
      item_category3: "Shirts",
      item_category4: "Tshirts",
      item_variant: "Gray",
      item_list_name: "Search Results",
      item_list_id: "SR123",
      index: 1,
      quantity: 1
    },
});

But somehow I don't seem to find the dimension for item.variant.但不知何故,我似乎没有找到 item.variant 的维度。 Pretty much every other prop is represented by its own dimension in the API-Schema: https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions几乎所有其他道具在 API 架构中都由其自己的维度表示: https : //developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions

Is this by design and I can somehow retrieve aggregated metrics based on variant?这是设计使然吗,我可以以某种方式检索基于变体的聚合指标?

fe I want to retrieve aggregated data to see how much itemViews (metric) each itemVariant (the dimension I'm missing?) generated. fe 我想检索聚合数据以查看每个 itemVariant(我缺少的维度?)生成了多少 itemViews(指标)。

There is not a way to retrieve the itemVariant dimension in the GA4 Data API.在 GA4 数据 API 中没有检索itemVariant维度的方法。 The dimensions from the item array are prefixed with the string item in the API Dimensions & Metrics list . item 数组中的维度API Dimensions & Metrics 列表中的字符串item为前缀。

The GA4 Data API presents most of the dimensions available in the GA4 UI; GA4 数据 API 提供了 GA4 UI 中可用的大部分维度; an Item Variant dimension is also not available in the GA4 UI. Item Variant维度在 GA4 用户界面中也不可用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 (GA4) 的 Google Analytics 数据 api 的数据处理延迟是多少? - What is the data processing latency for the Google Analytics data api for (GA4)? Google Analytics 数据上的自定义维度 API (GA4) Python - Custom dimensions on Google Analytics Data API (GA4) Python Google Analytics Data API(GA4) - bounceRate 指标缺失 - Google Analytics Data API(GA4) - bounceRate metric missing 获取特定事件计数,Google Analytics 数据 API (GA4) 中的 Google Analytics 4 - Get spesific event count, Google Analytics 4 in Google Analytics Data API (GA4) 使用 Google Analytics 数据 API 在 GA4 属性之间复制 Google Analytics 自定义定义/维度? - Copy Google Analytics custom definitions/dimensions between GA4 properties with the Google Analytics Data API? 将 Universal Analytics 中的自定义维度转换为 GA4 - Convert custom dimension in Universal Analytics to GA4 如何在使用 Google Analytics Data API (GA4) 时按应用 ID 过滤结果 - How to filter results by app Id while using Google Analytics Data API (GA4) Google Analytics 4 - 如何通过 GA4 报告获取事件数据 API - Google Analytics 4 - How to Get Event Data via GA4 Reporting API PHP Google Analytics 数据 API V1 (Beta) (GA4) 通过服务账户授权 - PHP Google Analytics Data API V1 (Beta) (GA4) Authorization via Service Account 我想要 PHP 中使用 orderBy 和过滤器的 Google Analytics 数据 API (GA4) 的示例代码 - I want a sample code for Google Analytics Data API (GA4) in PHP using orderBy and Filters
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM