I am trying to get Google Analytics working with my application.
I have
Integrated the official Google Analytics SDK 3 to my project
AppDelegate.m
// Initialize the default tracker. After initialization, [GAI sharedInstance].defaultTracker
// returns this same tracker.
// TODO: Replace the tracker-id with your app one from https://www.google.com/analytics/web/
id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:@"XX-XXXXX-X"];
// Provide unhandled exceptions reports.
[GAI sharedInstance].trackUncaughtExceptions = YES;
// Enable Remarketing, Demographics & Interests reports. Requires the libAdIdAccess library
// and the AdSupport framework.
// https://developers.google.com/analytics/devguides/collection/ios/display-features
tracker.allowIDFACollection = YES;
Then in WordPressViewController.m
- (void) viewDidLoad
{
[super viewDidLoad];
id<GAITracker> tracker = [[GAI sharedInstance] defaultTracker];
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
@"appview", kGAIHitType, @"Home Screen", kGAIScreenName, nil];
[tracker send:params];
Also bitcode is not working with the latest sdk somehow (don´t know if this is important to work for the tracker)
However when I run the app go to the screen, real time data doesn´t show anything.