# 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="/files/gdciwQgcfwPG8Sbgf9o2" 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="/files/PtBHt0TNZOBmnQ1ASORS" alt=""><figcaption><p>Certificates and API Keys page</p></figcaption></figure>
4. **Copy the Bundle ID** and follow the steps in [this article](/app-details/firebase/register-ios-app.md) to register your iOS app in Firebase.<br>

   <figure><img src="/files/dg4bzFpcflfbhm5laPIe" 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="/files/wzlsEUmNd8uealyZIUaK" 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.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appmachine.com/app-details/google-analytics/setup-ios-analytics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
