Support GA services

Support screen tracking via Google Analytics.

#335
This commit is contained in:
giomfo
2016-06-03 17:29:34 +02:00
parent b763cf15ea
commit 4452c489a0
15 changed files with 128 additions and 8 deletions
@@ -133,6 +133,14 @@
{
[super viewWillAppear:animated];
// Screen tracking (via Google Analytics)
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
if (tracker)
{
[tracker set:kGAIScreenName value:[NSString stringWithFormat:@"%@", self.class]];
[tracker send:[[GAIDictionaryBuilder createScreenView] build]];
}
// Hide the bottom border of the navigation bar to display the expander header
[self hideNavigationBarBorder:YES];