在哪里可以找到Google Analytics for Mobile(iOS)的用户计时报告

在哪里可以找到Google Analytics for Mobile(iOS)的用户计时报告,ios,google-analytics,google-analytics-api,Ios,Google Analytics,Google Analytics Api,我用sendTimingWithCategory:withTimeInterval:withName:withLabel发送数据,但我似乎在谷歌分析报告工具上找不到这些数据 在我的应用程序中,我尝试捕获不同类型的用户计时,以下是一些代码片段: // duration1 & duration2 are instances of NSTimeInterval id<GAITracker> tracker = [[GAI sharedInstance] defaul

我用
sendTimingWithCategory:withTimeInterval:withName:withLabel
发送数据,但我似乎在谷歌分析报告工具上找不到这些数据

在我的应用程序中,我尝试捕获不同类型的用户计时,以下是一些代码片段:

    // duration1 & duration2 are instances of NSTimeInterval
    id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
    [tracker sendTimingWithCategory:@"DurationOnApp" withValue:duration1 withName:nil withLabel:nil];

    [tracker sendTimingWithCategory:@"DurationOnSectionA" withValue:duration2 withName:nil withLabel:nil];
//duration1和duration2是NSTimeInterval的实例
id跟踪器=[[GAI sharedInstance]defaultTracker];
[tracker sendTimingWithCategory:@“DurationOnApp”,值为:duration1,名称为:nil,标签为:nil];
[tracker sendTimingWithCategory:@“DurationOnSectionA”带值:duration2,名称:nil,标签:nil];
我突然想到:是不是因为我应该给
name
一个值,而不是将其保留为'nil.

这起作用了:
[tracker sendTimingWithCategory:@“DurationOnApp”withValue:duration1 withName:@“DurationOnApp”withLabel:nil]


显然,类别和名称都是必要的。用户计时现在出现在“参与-->应用程序速度”中,这起到了作用:
[tracker sendTimingWithCategory:@“DurationOnApp”withValue:duration1 withName:@“DurationOnApp”withLabel:nil]


显然,类别和名称都是必要的。用户计时现在出现在“参与-->应用程序速度”中,这是有效的。谷歌在doc中有错误。SDK的V3。 NSTimeInterval是双精度的,他们的SDK需要整数。他们网站上的例子具有误导性

- (void)onLoad:(NSTimeInterval *)loadTime {

    NSNumber* timeInterval = [NSNumber numberWithInt:((int) (loadTime * 1000))];
    [tracker sendTimingWithVariableCategory:@"resources"
                            withTimeInterval:timeInterval
                                    withName:@"high scores"
                                   withLabel:nil];
    ... // The rest of your onLoad: code.
}

这很有效。谷歌在doc中有错误。SDK的V3。 NSTimeInterval是双精度的,他们的SDK需要整数。他们网站上的例子具有误导性

- (void)onLoad:(NSTimeInterval *)loadTime {

    NSNumber* timeInterval = [NSNumber numberWithInt:((int) (loadTime * 1000))];
    [tracker sendTimingWithVariableCategory:@"resources"
                            withTimeInterval:timeInterval
                                    withName:@"high scores"
                                   withLabel:nil];
    ... // The rest of your onLoad: code.
}
用户计时现在处于“行为->应用程序速度”

希望这有帮助:)

用户计时现在处于“行为->应用程序速度”


希望这有帮助:)

用户计时现在出现在“参与”->应用程序速度是关键信息!!ThanksUser计时现在出现在订婚-->应用程序速度是关键信息!!谢谢