iOS - Swift3 - Google Analytics(分析)发送数据,但分析仪表板为空

时间:2017-01-08 00:20:11

标签: ios swift google-analytics

我在Xcode中的活动正在正确发送,但我的Google Analytics信息中心是100%空的。我已经好几个小时了,但仍然没有。

例如(这有效):

    //Create analytics for the screen
    if let tracker = GAI.sharedInstance().defaultTracker {
        print("kGAIScreenName: \(kGAIScreenName)")
        tracker.set(kGAIScreenName, value: "Splash")
        if let builder = GAIDictionaryBuilder.createScreenView() {
            tracker.send(builder.build() as NSDictionary as [NSObject : AnyObject])
        }
    }

并产生以下内容:

2017-01-07 18:04:37.185861 UpNextAlpha[582:122213] VERBOSE: GoogleAnalytics 3.17 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:518): 
    Saved hit: {
        parameters =     {
        "&_crc" = 0;
        "&_s" = 27;
        "&_u" = ".oK9L";
        "&_v" = "mi3.1.7";
        "&a" = 0000000000;
        "&aid" = "com.xxx.xxx";
        "&an" = xxx;
        "&av" = "1.0";
        "&cd" = Splash;
        "&cid" = "xxx-xxx-xxx";
        "&dm" = "iPhone7,2";
        "&ds" = app;
        "&sr" = 750x1334;
        "&t" = screenview;
        "&tid" = "MY-ID-HERE-2";
        "&ul" = "en-us";
        "&v" = 1;
        "&z" = 000000000000;
        gaiVersion = "3.17";
    };
    timestamp = "2017-01-08 00:04:37 +0000";
}

因为您可以看到代码有效,并且正在发送活动 - 但Google Analytics信息中心中没有任何内容。

我已经阅读了很多帖子,这些帖子谈论的是分析仪表板没有实时更新,并且需要一段时间,"但这已经持续了12个多小时,但仍然没有。

0 个答案:

没有答案