Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
I want to track some actions in my application. I wrote something like that
Code:
NSString *trackerParameterString = [NSString stringWithFormat:@"iOS- GiftName : %@ GiftID : %@", self.selectedGift.giftName, self.selectedGift.giftID];
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" action:@"button_press" label:trackerParameterString value:nil] build]];
but it is not seen in the analytics panel but when i change the label text to some static text then it can be sent. Something like that
Code:
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" action:@"button_press" label:@"test" value:nil] build]];
How can i track with dynamic parameters ?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.