【问题标题】:IOS Google Analytics V2 session trackingIOS Google Analytics V2 会话跟踪
【发布时间】:2025-11-29 16:50:02
【问题描述】:

我最近开始在我的应用中实施 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;
}

我不想将其作为事件进行跟踪。我该怎么做?

【问题讨论】:

    标签: ios session google-analytics tracker


    【解决方案1】:

    也许你可以试试这个:

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

    【讨论】: