web 2.0

Error Domain=com.google.googleanalytics.GANTrackerError Code=12245589

While I was working on iOS and google analytics, it wasn't working and keeps poping error like the one below. 

 

Analytics error: Error Domain=com.google.googleanalytics.GANTrackerError Code=12245589 "The operation couldn’t be completed. (com.google.googleanalytics.GANTrackerError error 12245589.)

 

After hours of search through the forums and looking back and Google Analytics behavior I found out the reason, Google Analytics needs to treat everything as a "page", and every page needs to have a "/"

 

so the fix:

 

if (![[GANTracker sharedTracker] trackPageview:[NSString stringWithFormat:@"/%@/%@", IOS, [self class], nil]

withError:&error]) {

DLog("Analytics error: %@", error);

}

 

as you can see, add a / in front would eliminate the error (com.google.googleanalytics.GANTrackerError error 12245589.)

 

 

 

Tags: , ,

iOS | Google

blog comments powered by Disqus