I am sending User Timing data with sendTimingWithCategory:withTimeInterval:withName:withLabel
but I can't seem to find these data on the Google Analytics reporting tool.
In my app, I try to capture different kinds of user timings, here are some code snippet:
// 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];
It just struck me: is it because I should give a value to name
instead of leaving it as `nil.
This worked:
[tracker sendTimingWithCategory:@"DurationOnApp" withValue:duration1 withName:@"DurationOnApp" withLabel:nil];
.
Apparently, both category and name are necessary. User Timings are now appearing in Engagement --> App Speed