Google Analytics API v3 unknown error. createEventWithCategory: not compiling -


gaidictionarybuilder set forkey:gaisessioncontrol error reads: key value says it's not code compliant.

gaidictionarybuilder *dictionary = [gaidictionarybuilder createeventwithcategory:@"ux" action:@"app started" label:nil value:nil]; [dictionary setvalue:@"start" forkey:kgaisessioncontrol]; [[gai sharedinstance].defaulttracker send:dictionary.build]; 

i following google's documentation directly site, & still have no idea error coming from? https://developers.google.com/analytics/devguides/collection/ios/v3/migration#setting-data

google analytics documentation has error (like usual). got rid of error replacing "setvalue:" "set:"

from: [dictionary setvalue:@"start" forkey:kgaisessioncontrol];

to: [dictionary set:@"start" forkey:kgaisessioncontrol];

works now.

gaidictionarybuilder *dictionary = [gaidictionarybuilder createeventwithcategory:@"ux" action:@"app started" label:nil value:nil]; [dictionary setvalue:@"start" forkey:kgaisessioncontrol]; [[gai sharedinstance].defaulttracker send:dictionary.build]; 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -