4. WHAT DOES IT MEASURE?
the number of installations
devices and networks used to access app
the geographic location
languages spoken by visitors
in-app purchases
customized tracking of special content, like video
the number of screens seen per visit
progression of visitors move through screens
4
5. SETUP
Sign Up for Google Analytics
Select “App” for the new property to be tracked
Get Tracking Code
5
6. INSTALLATION
Add Header Files to your project
GAI.h
GAITracker.h
GAITrackedViewController.h
GAITransaction.h
GAITransactionItem.h
libGoogleAnalytics.a
Add Analytics SDK to your library
libGoogleAnalytics.a
CoreData.framework
SystemConfiguration.framework
6
7. INSTALLATION
Initialize the tracker
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Optional: automatically track uncaught exceptions with Google Analytics.
[GAI sharedInstance].trackUncaughtExceptions = YES;
// Optional: set Google Analytics dispatch interval to e.g. 20 seconds.
[GAI sharedInstance].dispatchInterval = 20;
// Optional: set debug to YES for extra debugging information.
[GAI sharedInstance].debug = YES;
// Create tracker instance.
id<GAITracker> tracker = [[GAI sharedInstance] trackerWithTrackingId:@"UA-YOUR-
TRACKING-ID"];
}
7