Google analytics for iOS

12
Google Analytics for iOS

Transcript of Google analytics for iOS

Page 1: Google analytics for iOS

Google Analytics for iOS

Page 2: Google analytics for iOS

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

Page 3: Google analytics for iOS

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

Page 4: Google analytics for iOS

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

Page 5: Google analytics for iOS

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

Page 6: Google analytics for iOS

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

be used in your app

Page 7: Google analytics for iOS

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

Page 8: Google analytics for iOS

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;}

Page 9: Google analytics for iOS

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

Page 10: Google analytics for iOS

Sample Reports

Page 11: Google analytics for iOS

Other tracking options

Ecommerce Tracking Crashes & Exceptions Event Tracking Campaign Tracking

Page 12: Google analytics for iOS

Nandri (Thank You in Tamil)