【问题标题】:Quantities of items are not tracked in google analytics transactions谷歌分析交易中不跟踪项目数量
【发布时间】:2014-03-14 10:38:37
【问题描述】:

我正在尝试使用像described here这样的谷歌标签管理器从我的iOS应用发送电子商务交易

现在我可以在谷歌分析的转换>电子商务>概览面板中看到交易,但所有项目的数量都是 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";

}

我也可以看到调度工作。

【问题讨论】:

    标签: ios google-analytics e-commerce google-tag-manager


    【解决方案1】:

    我无法重现该问题。

    您能否发布在 GA 命中中发送的整组参数以帮助我诊断问题?

    尼尔 面向移动应用技术主管的 Google 跟踪代码管理器

    【讨论】:

      【解决方案2】:

      这个问题是由于库中的一个错误,已经在 SDK 的 3.0.7 版本中修复

      更新日志:https://developers.google.com/analytics/devguides/collection/ios/changelog

      更多信息:https://productforums.google.com/forum/#!msg/tag-manager/WeiueEi4JDk/ofgq6s1tw30J

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-05-21
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多