【问题标题】:GA4 tracks value of purchase but doesn't add up to Total RevenueGA4 跟踪购买价值,但不计入总收入
【发布时间】:2022-06-21 17:54:14
【问题描述】:

如您所见,GA4 显然没有显示收入:

但是,当我转到 Configure-> Conversions 时,我可以清楚地看到它确实跟踪了价值:

我们的数据层如下所示:

{
  event: "purchase",
  gtm: {uniqueEventId: 7, start: 1541254301557},
  ecommerce: {
    transaction_id: "TEST000000184",
    affiliation: "Brand Name B2C - Brand Name B2C website - Brand Name English",
    value: "36.0000",
    coupon: "",
    tax: "4.5100",
    shipping: "10.0000",
    items: [
      {
        item_name: "Plate 27cm green",
        item_id: "10000",
        item_price: "5.37",
        item_brand: "Brand Name",
        item_category: "",
        quantity: "4.0000"
      }
    ]
  }

【问题讨论】:

标签: google-analytics event-tracking google-analytics-4 google-datalayer


【解决方案1】:

货币是ecommerce 对象中的必需参数。

currency: "USD",

此外,您应该将数量保持为整数而不是浮点数

quantity: "4" 不是quantity: "4.0000"

【讨论】:

    猜你喜欢
    • 2022-11-09
    • 1970-01-01
    • 2022-12-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-09-28
    • 2017-03-24
    相关资源
    最近更新 更多