在GA4退款事件后,电子商务购买价值不会降低

发布于 2025-02-11 14:53:18 字数 1323 浏览 2 评论 0原文

我正在从UA到GA4进行电子商务跟踪。

我正在使用GA测试购买和退款的方案:我通过测量质量向GA4发送了购买事件;确保收到购买事件(在电子商务购买中显示的值)之后,我发送了具有相同事务ID的退款事件(也通过测量protocal)。我等了一天,但是“ GA4货币化 - >电子商务购买”中购买价值的价值并没有减少。

我敢肯定,GA4收到(从实时报告和探索)收到退款事件。这是错误还是预期的行为?我没有看到它在任何地方都有描述。我在事件有效载荷中犯了任何错误吗?

这是我的事件有效载荷:

          {
            "name": "purchase",
            "params": {
                "items": [
                    {
                        "item_id": "L-6",
                        "item_name": "Product Report - 1775",
                        "item_category": "Report",
                        "quantity": 1,
                        "price": 60,
                        "currency": "CNY"
                    }
                ],
                "currency": "CNY",
                "transaction_id": "LP-6",
                "value": 60
            }
        {
            "name": "refund",
            "params": {
                "currency": "CNY",
                "transaction_id": "LP-6",
                "value": 60
            }
        }

当我使用UA时,我可以在Transaction hit trans> TransAction_Item hit中发送负收入,以退款并减少Reveune。看来这在GA4中不起作用?我应该在退款事件中值负值吗?我没有看到任何文档。

I'm migrating from UA to GA4 for ecommerce tracking.

I'm testing buy-and-refund scenario with GA: I sent a purchase event to GA4 via measurement protocal; After I ensured the purchase event is received (value showed in Ecommerce Purchases), I sent a refund event with the same transaction ID (through measurement protocal as well). I waited a day, but the value of purchase values in "GA4 Monetization -> Ecommerce Purchases" didn't decrease.

I'm sure the refund event is received (from Realtime report and Explore) by GA4. Is this a bug or expected behaviour? I didn't see it is described anywhere. Did I make any mistakes in event payload?

Here are my event payloads:

          {
            "name": "purchase",
            "params": {
                "items": [
                    {
                        "item_id": "L-6",
                        "item_name": "Product Report - 1775",
                        "item_category": "Report",
                        "quantity": 1,
                        "price": 60,
                        "currency": "CNY"
                    }
                ],
                "currency": "CNY",
                "transaction_id": "LP-6",
                "value": 60
            }
        {
            "name": "refund",
            "params": {
                "currency": "CNY",
                "transaction_id": "LP-6",
                "value": 60
            }
        }

When I was using UA, I could send negative revenue in transaction hit and negative quality in transaction_item hit in order to refund and decrease reveune. It seems this doesn't work in GA4? Should I should negative value in refund event? I didn't see any docs about it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

咋地 2025-02-18 14:53:18

也许是因为您不退还摘要中的项目,而是仅退还交易。
根据 >::

所需的参数为transaction_id,对于每个项目
退款,item_id和数量退还。

同样在正式文档说:

注意:我们建议您在退款活动中包含项目信息,以查看分析中的项目级退款指标。

因此,按照您的代码,如果您也想退还该项目,则应该是:

{"name": "refund",
  "params": {
  "currency": "CNY",
  "transaction_id": "LP-6",
  "value": 60,
  "items": [
    {
        "item_id": "L-6",
        "item_name": "Product Report - 1775",
        "item_category": "Report",
        "quantity": 1,
        "price": 60,
    }
]  }
} 

Maybe is because you are not refunding the item in your snippet, only the transaction.
According to Simo's article:

Required parameters are transaction_id, and for each item that is
refunded, item_id and quantity refunded.

Also in the official documentation it says:

Note: We recommend that you include item information in your refund event to see item-level refund metrics in Analytics.

So following your code, if you want to refund the item as well, it should be:

{"name": "refund",
  "params": {
  "currency": "CNY",
  "transaction_id": "LP-6",
  "value": 60,
  "items": [
    {
        "item_id": "L-6",
        "item_name": "Product Report - 1775",
        "item_category": "Report",
        "quantity": 1,
        "price": 60,
    }
]  }
} 
路还长,别太狂 2025-02-18 14:53:18

就我的测试表明,GA4在全额退款后将“退款”增加了1个。

如果您只需要购买或电子商务收入的总数,则可以过滤所有已退款= 0的交易,并从“电子商务收入”或“电子商务购买”中阅读总计,但是当您发现您时将与项目相关的尺寸或指标(即项目名称,项目收入等)组合在一起,指标“退款”也显示为0,即使退款交易也是0。

这里不太正确。

As far my tests showed, GA4 just increments the metric "Refunds" by 1 after a full refund.

If you just need total number of purchases or E-commerce revenue, you could filter all the transactions that have refunds=0 and read the totals from "E-commerce revenue" or "E-commerce purchases", but I found that when you combine item-related dimensions or metrics (i.e. item name, item revenue, etc) the metric "Refunds" is showing as 0 even for refunded transactions.

Something is not quite right here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文