gpt4 book ai didi

google-analytics - 如何在Google Analytics(分析)中更新/更改订单

转载 作者:行者123 更新时间:2023-12-03 15:57:27 25 4
gpt4 key购买 nike

因此,我已经对此摆弄了一段时间,当用新产品/已更改产品更新订单时,我无法全神贯注于分析如何计算购买量。

我正在利用datalayer(dl)并将购买事件推送到dl,到目前为止,GTM都是通过触发事件来监听的,这是所有标准。

{
"event": "purchase",
"currencyCode": "SEK",
"ecommerce": {
"purchase": {
"actionField": {
"id": "123",
"tax": 30.0,
"action": "purchase"
},
"products": [
{
"name": "name",
"id": "123",
"price": "5.0",
"brand": "brand",
"category": "category",
"quantity": 2
}
]
}
}
}


但是,我们的客户才有能力更改订单。因此,通过一些研究 On here,我能够推迟您可以在现有订单上添加负数量的产品,以在更改订单后删除产品。

因此,这导致某些事情不是最优的,但至少对订单产品有效。在这种情况下,我要再添加一个相同的项目。所以我这样做:

{
"event": "purchase",
"currencyCode": "SEK",
"ecommerce": {
"purchase": {
"actionField": {
"id": "123",
"tax": newTax -= oldTax,
"action": "purchase"
},
"products": [
{
"name": "name",
"id": "123",
"price": "5.0",
"brand": "brand",
"category": "category",
"quantity": 3
},
{
"name": "name",
"id": "123",
"price": "5.0",
"brand": "brand",
"category": "category",
"quantity": -2
}
]
}
}
}


它适用于除购买总额以外的所有内容。由于那是根据订单中的产品计算得出的,为什么我更新订单时不会自动更新?我还需要发送oldTotal-= newTotal还是分析中的重新计算有延迟?

最佳答案

您不是让它自己计算总收入,而是尝试自己添加总收入,总税金和总运费。这些字段显示在actionField中,如下所示:

   "actionField": {
"id": "123",
"action": "purchase"
'revenue': 'newRev - oldRev', // difference of new revenue and old revenue
'tax':'newTax - oldTax', // difference of new tax and old tax
'shipping': 'newShipping - oldShipping' // difference of new shipping and old shipping
},


当然也要添加产品。
在固定的GA报表中,它将自动添加旧收入和新收入金额,并将其用作总收入。

关于google-analytics - 如何在Google Analytics(分析)中更新/更改订单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37547312/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com