gpt4 book ai didi

google-analytics - Google Analytics 不显示类别

转载 作者:行者123 更新时间:2023-12-03 02:45:58 25 4
gpt4 key购买 nike

经过一番痛苦、哭泣和咬牙切齿,我终于设法让我的网站与 GTM 对话,并让 GTM 将数据发送到 Analytics。

我可以在 Analytics 中查看收入、转化率和交易结果,但看不到产品类别。

我将 GTM 标记设置为使用事务跟踪类型以及数据层。

我的测试代码是:

dataLayer.push({
'transactionId': 'OnClickTransactionDataLayerPushID', // Transaction ID - Type:String - Required
'transactionAffiliation': 'OnClickTransactionDataLayerPushAffiliation', // store name - Type:String - Optional to use
'transactionTotal': 45, //total revenue - Type:Numeric - Required
'transactionTax': 5, // Tax amount for transaction - Type:Numeric - Optional to use
'transactionShipping': 5, // Shipping cost - Type:Numeric - Optional to use
'transactionProducts': [{
'sku': 'SKU456789', // Product SKU - Type:String - Required
'name': 'OnClickTransactionDataLayerPushName', // Product Name - Type:String - Required
'category': 'OnClickTransactionDataLayerPushNameCategory', // Product Category - Type:String - Optional to use
'price': 35, // Product Price - Type:Numeric - Required
'quantity': 1 // Product Quantity - Type:Numeric - Required
}]
});

在 GA 调试器中,我可以看到类别被发送为:ec:itemvariation (&iv)OnClickTransactionDataLayerPushNameCategory

唯一的问题是这不是真正的变体。变化可能是颜色或尺寸之类的东西,而不是商品是否属于 T 恤类别或其他类别。无论如何,如果此信息被发送过来,为什么我在 Analytics 中看不到它?

enter image description here

编辑再次尝试增强型电子商务代码(如下所示)后,我看到产品名称位于顶部产品列表中,但没有显示金额或数量。我可以看到它在 GA 调试器中发送?

dataLayer.push({
"event": "addToCart",
"ecommerce": {
"currencyCode": "USD",
"add": {
"products": [{
"id": "b55da",
"name": "Flexigen T-Shirt",
"price": "16.00",
"brand": "Flexigen",
"category": "T-Shirts",
"variant": "red",
"dimension1": "M",
"position": 0,
"quantity": 1
}]
}
}
});

enter image description here

最佳答案

您的代码是标准电子商务,报告显示增强电子商务。

标准 https://support.google.com/tagmanager/answer/6107169?hl=en

增强 https://developers.google.com/tag-manager/enhanced-ecommerce

在您的 View 配置中禁用增强电子商务,选项卡电子商务并尝试再次查看。

关于google-analytics - Google Analytics 不显示类别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49970091/

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