Analytics: Create a generic API in AppDelegate class

And move all Google Analytics code to AppDelegate.m
This commit is contained in:
manuroe
2017-12-22 13:19:40 +01:00
parent 062ed97457
commit e1b5675485
26 changed files with 96 additions and 199 deletions
@@ -108,13 +108,8 @@
{
[super viewWillAppear:animated];
// Screen tracking (via Google Analytics)
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
if (tracker)
{
[tracker set:kGAIScreenName value:@"CountryPicker"];
[tracker send:[[GAIDictionaryBuilder createScreenView] build]];
}
// Screen tracking
[[AppDelegate theDelegate] trackScreen:@"CountryPicker"];
}
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;