有没有办法衡量用户在我的应用中花费的总时间?

时间:2013-02-23 18:08:01

标签: ios time metrics

我正在制作游戏,并希望拥有来自用户的统计信息页面。有没有办法让我跟踪他们在我的应用中花费的总时间?

2 个答案:

答案 0 :(得分:0)

使用Flurry Analytics:http://www.flurry.com/

使用入门:http://support.flurry.com/index.php?title=Analytics/GettingStarted/TechnicalQuickStart

集成非常简单,只需执行此操作:

#import "Flurry.h"
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[Flurry startSession:@"YOUR_API_KEY"];
//your code
}

记录事件:

[Flurry logEvent:@"EVENT_NAME"];

答案 1 :(得分:0)

radesix写道,你需要一个指标框架。在我工作的公司中,我们使用Google Analytics。它提供了非常好的概述,并且非常易于使用:

启动

// Optional: automatically send uncaught exceptions to Google Analytics.
[GAI sharedInstance].trackUncaughtExceptions = YES;
// Optional: set Google Analytics dispatch interval to e.g. 20 seconds.
[GAI sharedInstance].dispatchInterval = 20;
// Optional: set debug to YES for extra debugging information.
[GAI sharedInstance].debug = YES;
// Create tracker instance.
[[GAI sharedInstance] trackerWithTrackingId:@"YOUR TRACKING ID"];

跟踪事件:

id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
 [tracker sendEventWithCategory:@"TITLE" withAction:@"paused" withLabel:@"success" withValue:[NSNumber numberWithInt:5]];

http://www.google.com/analytics/

了解详情
相关问题