在GA4退款事件后,电子商务购买价值不会降低
我正在从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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许是因为您不退还摘要中的项目,而是仅退还交易。
根据 >::
同样在正式文档说:
因此,按照您的代码,如果您也想退还该项目,则应该是:
Maybe is because you are not refunding the item in your snippet, only the transaction.
According to Simo's article:
Also in the official documentation it says:
So following your code, if you want to refund the item as well, it should be:
就我的测试表明,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.