iphone - Google Analytics Event and Social Reporting on iOS -
i'm using latest version of google analytics ios (up post date). pageviews logged , reported correctly events , social events aren't. here snippets of code:
@interface rootviewcontroller : gaitrackedviewcontroller
all viewcontrollers inherit gaitrackedviewcontroller
[self.tracker sendeventwithcategory:@"twitter" withaction:@"tweet" withlabel:@"tweet app info" withvalue:nil]; [self.tracker sendsocial:@"twitter" withaction:@"tweet app info" withtarget:nil];
i phone call view controller log event of sending tweet, when check google analytics (engagement->events->overview) no events logged. not real time data, i'm talking 3 days of testing without events reported.
i'm next guide google mobile app analytics, when using
[tracker sendevent]
i errors utilize
[self.tracker sendevent]
and think uses default tracker of app.
any help problem ?
for me, [self.tracker ...] or [tracker ...] calls did not work. ended using shared instance default tracker follows:
[[gai sharedinstance].defaulttracker sendeventwithcategory:@"tac_agree" withaction:@"buttonclick" withlabel:@"" withvalue:[nsnumber numberwithint:0]];
this works me.
iphone ios ipad google-analytics
No comments:
Post a Comment