我正在发送User Timing数据与 sendTimingWithCategory:withTimeInterval:withName:withLabel
但我似乎无法在 Google Analytics 报告工具上找到这些数据。
在我的应用程序中,我 try catch 不同类型的用户计时,以下是一些代码片段:
// 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];
我突然想到:是不是因为我应该给 name
赋予一个值,而不是将其保留为“nil”。
最佳答案
这有效:
[tracker sendTimingWithCategory:@"DurationOnApp"withValue:duration1 withName:@"DurationOnApp"withLabel:nil];
。
显然,类别和名称都是必需的。用户计时现在出现在参与度 --> 应用程序速度
中关于ios - 在哪里可以找到 Google Analytics for Mobile (iOS) 的用户计时报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18201633/