Google Analytics Services SDK

Download the SDK

The Google Analytics Services SDK contains the latest Google Analytics and Google Tag Manager for Mobile libraries.

If you'd like to learn more about Google Tag Manager, see Google Tag Manager for Mobile Apps.

Version Package Size SHA1 Checksum
3.19 6.1MB 383c095f0a8b57305579ec516826ca701ee89c1e
3.17 19.7MB 9e625f334bd38e4c71d5367ee64dea6f74e477e2
3.13 6.9MiB cdfa43636ea8c588bb77f93a3b0eaeddfc24d5c7

Google Analytics contains bitcode compiled with Xcode 7.3.1, which may cause compiler or archiving errors under Xcode 7.2 and older. If you are still using Xcode 7.2 or older consider downloading v3.13.

Add libraries to your Xcode project

Add these files from the downloaded SDK to your Xcode project:

  • GAI.h
  • GAIDictionaryBuilder.h
  • GAIEcommerceProduct.h
  • GAIEcommerceProductAction.h
  • GAIFields.h
  • GAILogger.h
  • GAITrackedViewController.h
  • GAITracker.h

The Google Analytics SDK uses the CoreData and SystemConfiguration frameworks, so you will need to add the following to your application target's linked libraries:

  • CoreData.framework
  • SystemConfiguration.framework
  • libz.dylib
  • libsqlite3.dylib
  • libGoogleAnalyticsServices.a

Next steps

  • Read the Mobile App Implementation Guide to learn how to use Google Analytics to measure user interactions and answer questions about app usage.
  • Review additional configuration options such as sampling, testing and, debugging, opt-out settings, etc.
  • If required by your app, enable optional features such as Enhanced Ecommerce, IDFA (Identifier for Advertisers), and iAd install campaign measurement.