Tracking AppView events in GA via Google Tag Manager from iOS
3 answers
It was very difficult and totally undocumented from Google. You have to configure the tag as an application view and add a & cd field and set its value to your screen name. It can be tracked in real time.
Look for some more context: Google Docs for Google Analytics
+3
source to share
Here is the working code I am using.
id tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:NSStringFromClass([self class])];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];
You should probably use this:
NSString *screenName = /* YOUR SCREEN NAME HERE */
id tracker = [[GAI sharedInstance] defaultTracker];
[tracker set:kGAIScreenName value:screenName];
[tracker send:[[GAIDictionaryBuilder createAppView] build]];
0
source to share