ios - Google Analytics: Several Questions about deployment -


i have several questions deployment ga.

  1. where should add [tracker sendview:@"view name"]? (my assumption: -(void)loadview)
  2. how can log sessions? (only sending custom events?)
  3. should use everywhere inheritence gaiviewcontroller? (this not enough , seems ugly)
  4. if use [tracker sendview:@"view name"], happens? (did need re-sendview?)

  1. i suggest adding [tracker sendview:@"view name"] -viewwillappear. receive event when app show user view, not time loaded.
  2. sessions logged gai automatically. 2 hits said belong 1 session, if received in less 30 min default. also, you've mentioned, can manually create sessions.
  3. yes, either inherit gaiviewcontroller, or place -sendview every controller class's code. 1 way use posing (see second answer), , make gaiviewcontroller pose uiviewcontroller. i'm not quite sure, if works, seems fit problem.
  4. what mean "did need re-sendview?"? every time want gai log fact, user has moved view, call -sendview. tracker send info google, , information average number of transitions view session, or number of users, watching view.

also, find flurry more user-friendly, gai. think of creating own tracker class, send both gai , flury info.


Comments