gpt4 book ai didi

ios - 在Google Analytics(分析)交易中未跟踪项目的数量

转载 作者:行者123 更新时间:2023-12-03 17:02:39 26 4
gpt4 key购买 nike

我正在尝试使用described here之类的Google跟踪代码管理器从我的iOS应用发送电子商务交易

现在,我可以在Google Analytics(分析)的“转换”>“电子商务”>“概述”面板中看到交易,但是所有项目的数量均为0。

我正在为以下项目制作NSMutableDictionary:

for (CartItem *item in cart.items) {

[transaction[@"transactionProducts"] addObject:@{@"name": item.productName,
@"sku": item.reference,
@"category": @"mobile",
@"price": item.shopPrice,
@"currency": @"EUR",
@"quantity": item.quantity}];
}


item.quantity是一个NSNumber

在分析中,我可以看到名称,sku,类别,价格,但看不到数量。

我做错什么了吗?

编辑:

我在GA库中启用了详细日志记录,因此我可以查看发送到分析的所有内容。例如,我使用数量= 1的商品进行交易。

在日志中,我可以看到:

2014-03-21 08:51:35.948 MyApp[86287:5207] GoogleTagManager verbose: GoogleAnalytics 3.03 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:418): Saved hit: {
parameters = {
"&_u" = ".7nL";
"&_v" = "mi3.0.3";
"&an" = "MyApp";
"&av" = "3.2";
"&cid" = "c5ae7a50-dc25-4c17-b706-e509af250ab7";
"&cu" = EUR;
"&sr" = 320x480;
"&t" = transaction;
"&ta" = 3240;
"&ti" = "6753864 - 3240";
"&tid" = "UA-XXXXXXX-X";
"&tr" = "18.93";
"&ts" = 0;
"&tt" = "3.98";
"&ul" = en;
"&v" = 1;
"&z" = 9238494410774743125;
gaiVersion = "3.03";
};
timestamp = "2014-03-21 07:51:35 +0000";


}

2014-03-21 08:51:35.950 MyApp[86287:5207] GoogleTagManager verbose: GoogleAnalytics 3.03 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:418): Saved hit: {
parameters = {
"&_u" = ".L";
"&_v" = "mi3.0.3";
"&an" = "MyApp";
"&av" = "3.2";
"&cid" = "c5ae7a50-dc25-4c17-b706-e509af250ab7";
"&cu" = EUR;
"&ic" = "14192_27P";
"&in" = "SLIPPERS \"RETRO FLIP\" - ZWART";
"&ip" = "18.93";
"&iq" = 1;
"&iv" = mobile;
"&sr" = 320x480;
"&t" = item;
"&ti" = "6753864 - 3240";
"&tid" = "UA-XXXXXXX-X";
"&ul" = en;
"&v" = 1;
"&z" = 9238494410774743126;
gaiVersion = "3.03";
};
timestamp = "2014-03-21 07:51:35 +0000";


}

我还可以看到调度工作。

最佳答案

我无法重现该问题。

您能否发布GA匹配中要发送的整套参数,以帮助我诊断问题?

尼尔
Google Tag Manager for Mobile Apps技术主管

关于ios - 在Google Analytics(分析)交易中未跟踪项目的数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22402673/

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