# Setup iOS analytics

### How to add Google Analytics to your iOS app

1. **Navigate** to the **publish page** of your app in AppMachine.
2. **Open** the **Certificates and API Keys page** via the dropdown menu in the App Store section.<br>

   <figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FFDHDKokUaooRXTXtAExL%2FPasted_Image_04_01_2023__15_50.png?alt=media&#x26;token=7c11aa27-262b-43d4-bc81-3c1eb5a66a17" alt=""><figcaption><p>Publish page - Apple App Store section</p></figcaption></figure>
3. On the Certificates and API Keys page, **click Add Certificate** in the Firebase Certificates section.<br>

   <figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2F5ef6J08LJ5Cz2TG0WJOe%2FPasted_Image_04_01_2023__15_52.png?alt=media&#x26;token=bec623a1-af1e-4e07-9b64-8acd7b3e62a2" alt=""><figcaption><p>Certificates and API Keys page</p></figcaption></figure>
4. **Copy the Bundle ID** and follow the steps in [this article](https://docs.appmachine.com/app-details/firebase/register-ios-app) to register your iOS app in Firebase.<br>

   <figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FkJl9oSahY2nWkWqsXjc2%2FPasted_Image_04_01_2023__15_56.png?alt=media&#x26;token=0f4973bf-645e-47bf-a23f-8139f1c66ce7" alt=""><figcaption><p>Setup Firebase for iOS - Register iOS app</p></figcaption></figure>
5. **Click Next** and **upload the GoogleServices-info.plist file** that you've downloaded during the registration of your iOS app in Firebase.<br>

   <figure><img src="https://2636455530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2wzy1sO41plYrfJfaAhN%2Fuploads%2FYo3L3Xff0PrRTTWdborX%2FPasted_Image_04_01_2023__16_04.png?alt=media&#x26;token=0dfa3385-a759-4e7c-b4f8-6b73ebb40ec8" alt=""><figcaption><p>Setup Firebase for iOS - Upload GoogleService-Info.plist file</p></figcaption></figure>
6. **Click Upload** to complete the Google Analytics setup of your iOS app.

**Note: A store update of your iOS app is required before you'll be able to gather app analytics.**
