iphone - Google analytics doesn't show tracking of my App -
i integrate google analytics tracking ios app.
i have integrated google analytics library , add application.
here code snippet,
- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { [uiapplication sharedapplication].statusbarhidden = no; [gai sharedinstance].trackuncaughtexceptions = yes; [gai sharedinstance].dispatchinterval = 1; [gai sharedinstance].debug=yes; [[gai sharedinstance] trackerwithtrackingid:@"ua-43556575-1"]; return yes; }
code in firstviewcontroller
- (void)viewdidload { [super viewdidload]; self.trackedviewname = @"home"; .... .... }
list of librarys have added, (first have copied library download folder added project folder , in xcode taking reference project folder)
- gai.h
- gaitrackedviewcontroller.h
- gaitracker.h
- gaitransaction.h
- gaitransactionitem.h
- libgoogleanalytics.a
almost 5 days , still stuck same problem :(
: please ...
thank reading , in advance.
i think may 1 case. uiviewcontroller
class must subclass of gaitrackedviewcontroller
class,
@interface firstviewcontroller : gaitrackedviewcontroller
and must override these function.
-(void)viewdidload { [super viewdidload]; self.trackedname = @"home"; // code here } -(void)viewdidappear:(bool)animated { [super viewdidappear:animated]; // code here }
as viewdidload
, viewdidappear:
important methods.
and remember profile must mobile app
.
Comments
Post a Comment