To add Google Analytics Services SDK to your Xcode project:
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.
Add libraries to your Xcode project
Add these files from the downloaded SDK to your Xcode project:
The Google Analytics SDK uses the
SystemConfiguration frameworks, so you will need to add
the following to your application target's linked libraries:
- 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.