3
votes

I have implemented 3 user level custom dimensions in Google Analytics iOS for my app in the following manner:

[tracker send:[[[GAIDictionaryBuilder createAppView] set:[DeviceType deviceType] forKey:[GAIFields customDimensionForIndex:1]] build]];
[tracker send:[[[GAIDictionaryBuilder createAppView] set:[[UIDevice currentDevice] systemVersion] forKey:[GAIFields customDimensionForIndex:2]] build]];
[tracker send:[[[GAIDictionaryBuilder createAppView] set:fullVersionUser forKey:[GAIFields customDimensionForIndex:3]] build]];

I've set up the dimensions properly in the control panel and all 3 list as active. I'm just wondering, how do I simply view these dimensions? I've tried generating a custom report and nothing seems to show. Is there anyway to make these dimensions appear in the regular report?

1
Google Analytics has always been too much confusing! I wish Flurry gets better after Yahoo acquisition! - rohan-patel
@rohan-patel - Yeah there is so much stuff you can do with it, it's overwhelming. I probably not even using it properly. - Ser Pounce

1 Answers

4
votes

The issue was that I was executing the above line of code in the app delegate where I wasn't setting a screen view. When I changed the code to the following:

[tracker send:[[[[GAIDictionaryBuilder createAppView] set:@"App Delegate"  forKey:kGAIScreenName] set:[DeviceType deviceType] forKey:[GAIFields customDimensionForIndex:1]] build]];

it worked. You could also move the code to a view controller that subclasses GAITrackedViewController and does:

self.screenName = @"some screen name";