I want to track some actions in my application. I wrote something like that
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
How can i track with dynamic parameters ?
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]];
Code:
[tracker send:[[GAIDictionaryBuilder createEventWithCategory:@"ui_action" action:@"button_press" label:@"test" value:nil] build]];