Google analytics for iOS

Post on 12-Apr-2017

93 views 0 download

Transcript of Google analytics for iOS

Google Analytics for iOS

Things we’ll cover Prerequisite What does it measure Setup Installation Sample Reports Other tracking options

Prerequisite iOS Developer SDK Google Analytics SDK An iOS App New Google Analytics (GA) Account

What does it measure

Devices and networks used to access the app The geographic location Languages spoken by visitors In-App purchases The number of installations Customized tracking of special content, like Video. The number of screen visits The number of events, like button clicks Progression of visitors move through screens

Setup Signup for GA: https://

analytics.google.com Select “Mobile App”

for what needs to be tracked

Provide Account Name, App Name, Industry Type and Time Zone to be tracked and create the Account

Get Tracking ID You should have got an Tracking ID, that should

be used in your app

InstallationAdd Header Files to your project: GAI.h GAITracker.h GAITrackedViewController.h GAITransaction.h GAITransactionItem.h libGoogleAnalytics.a CoreData.framework SystemConfiguration.framework

Setup in the AppInitialize the tracker:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ [GAI sharedInstance].dispatchInterval = 20; [GAI sharedInstance].trackUncaughtExceptions = YES; GAITracker *tracker = [[GAI sharedInstance] trackerWithName:@”Your-App Name” trackingId:@“Your Tracking ID“]; return YES;}

Automatic Screen Tracking

Implementation Extend all your view controllers from

“GAITrackedViewController.h” to enable automatic screen view tracking.

Example:#import "GAITrackedViewController.h"@interface InitialViewController : GAITrackedViewController

Sample Reports

Other tracking options

Ecommerce Tracking Crashes & Exceptions Event Tracking Campaign Tracking

Nandri (Thank You in Tamil)