I'd integrated Google analytics in my app. It is working fine for few screens but not for few other screens(ie, viewcontrollers).
Totally I have 45 screens, but the GAI works only for 19 screens. I'd followed the steps in this documentation.
I'd changed as below in all viewcontrollers,
@interface Myviewcontroller : GAITrackedViewController
and imported GAITrackedViewController
in both .h and .m files
#import "GAITrackedViewController.h"
It's working fine for some screens but not for some other screens. I'm sending the screen names by using self.screenName = @"Home screen";
.
NSLogger is as below for the viewcontrollers that successfully integrated,
VERBOSE: GoogleAnalytics 3.01 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:414): Saved hit: {
parameters = {
"&_u" = ".etno";
"&_v" = "mi3.0.1";
"&an" = My Project;
"&av" = "1.0";
"&cd" = "Home Screen";
"&cid" = "XXXXXXXXXXXXXXXXXXXXXXX";
"&sr" = 320x480;
"&t" = appview;
"&tid" = "UA-XXXXXXX-2";
"&ul" = en;
"&v" = 1;
"&z" = XXXXXXXXXXXXX;
gaiVersion = "3.01";
};
timestamp = "2014-04-28 09:44:17 +0000";
}
But there is no logging for unsuccessfull attempts, after sometime I can see some logging like,
INFO: GoogleAnalytics 3.01 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000007
INFO: GoogleAnalytics 3.01 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002
INFO: GoogleAnalytics 3.01 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 00000000
I'd checked with all the viewcontrollers, there is no difference in code while integrating Google-Analytics between those screens.
What am I missing? Any Suggestions would be appreciated.