简体   繁体   中英

IOS Google Analytics V2 session tracking

I recently started to implement Google Analytics V2 beta in my app and i would like to know how can i track when it is launched. My code is:

    - (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;
}

I don't want to track it as an event. How can i do it ?

也许您可以尝试以下方法:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM