IOS Google Analytics V2会话跟踪

时间:2012-12-12 12:21:31

标签: ios session google-analytics tracker

我最近开始在我的应用中实施Google Analytics V2测试版,我想知道如何跟踪它的启动时间。我的代码是:

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [GAI sharedInstance].debug = YES;
    [GAI sharedInstance].dispatchInterval = 120;
    [GAI sharedInstance].trackUncaughtExceptions = YES;
    self.tracker = [[GAI sharedInstance] trackerWithTrackingId:@"ID"];

    self.tracker.sessionStart = YES;

    return YES;
}

我不想将其视为一个事件。我该怎么办?

1 个答案:

答案 0 :(得分:0)

也许你可以试试这个:

[self.tracker trackView:@"App started"];