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

标签 ios google-analytics google-analytics-api

我正在发送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/

相关文章:

ios - 去掉一部分 UIBarButton

ios - 将 nsstring 添加到主包 ios 中的本地 html 文件

iOS - 水平滑动 UICollectionViewCell

google-analytics - 如何在一次 API 调用中从 Google Analytics 获取多个维度

android - 在 Android 中使用 play-services-auth 的 token 通过 Google Analytics Data API 进行身份验证

api - Google Analytics API v3 授权以允许访问我的数据

google-analytics - daysToTransaction 和 sessionToTransaction 没有按预期工作

iphone - 获取 GDataFeedPhotoAlbum 返回错误的对象类型

google-analytics - 从 ga.js 获取源和媒介

android - 如何在 iPhone 和 Android 的 Titanium 中实现 Google Analytic?