【问题标题】:Google Analytics Data API (GA4) - item.variant dimension?Google Analytics Data API (GA4) - item.variant 维度?
【发布时间】:2021-06-28 08:15:24
【问题描述】:

因此,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
    },
});

但不知何故,我似乎没有找到 item.variant 的维度。几乎所有其他 prop 在 API-Schema 中都由其自己的维度表示: https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions

这是设计使然,我可以通过某种方式检索基于变体的聚合指标吗?

f.e.我想检索聚合数据以查看每个 itemVariant(我缺少的维度?)生成了多少 itemViews(指标)。

【问题讨论】:

    标签: google-analytics google-analytics-api google-analytics-4 google-analytics-data-api


    【解决方案1】:

    无法在 GA4 数据 API 中检索 itemVariant 维度。项目数组中的维度以 API Dimensions & Metrics list 中的字符串 item 为前缀。

    GA4 数据 API 提供了 GA4 用户界面中可用的大部分维度; GA4 UI 中也没有Item Variant 维度。

    【讨论】:

    • 那么,有没有建议的方法来获取这个指标,也许将它存储为不同的?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-13
    • 2021-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-12
    相关资源
    最近更新 更多