> For the complete documentation index, see [llms.txt](https://help.twinr.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.twinr.dev/native-integrations/firebase-analytics.md). Agents can also search and read this documentation through its [MCP server](https://help.twinr.dev/~gitbook/mcp).

# Firebase Analytics

See how people actually use your app, through Firebase.

Firebase Analytics tells you what people do in your app — how many open it, which screens they visit, what they tap, which devices they use.

Your website analytics cannot see any of this. To them, every visit from inside your app looks like one more mobile browser session. Firebase measures the app as an app.

Twinr sends two kinds of events:

* [**Auto Tracked Analytics**](https://help.twinr.dev/native-integrations/firebase-analytics/auto-tracked-analytics.md) — installs, opens, device and version breakdowns, and bottom tab views. These arrive once you finish setup, with nothing more to configure.
* [**Custom Events**](https://help.twinr.dev/native-integrations/custom-events.md) — events you define for the things that matter to your business. **Premium.** You set these up on their own card, and they also count in App Analytics.

## What you need first

A Firebase project, and its two config files — `google-services.json` for Android and `GoogleService-Info.plist` for iOS.

{% content-ref url="/pages/eR5rJ6bhgjaMaS03dlEN" %}
[Firebase Setup](https://help.twinr.dev/push/firebase-push-notification/firebase-setup.md)
{% endcontent-ref %}

{% hint style="success" %}
Already set up [Firebase push notifications](https://help.twinr.dev/push/firebase-push-notification.md)? Both files are shared — they will show as uploaded here already, and you can go straight to the toggle.
{% endhint %}

## Set it up

Open **Integrations → Analytics → Firebase Analytics** and switch on **Enable Firebase Analytics**. The **Analytics** item in the left menu is App Analytics, a different page.

<figure><img src="https://3731994945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MlBy5z08zL1UoCwNqmg%2Fuploads%2Fgit-blob-d90560d79a139de6750b7f4995b1da8d529f6011%2Ffirebase-analytics-setup.png?alt=media" alt="The Firebase Analytics page with the Enable Firebase Analytics switch and the two config file fields"><figcaption></figcaption></figure>

Upload both config files, then click **Save as draft**.

## Custom events

Custom events have their own card, **Integrations → Analytics → Custom events**. Once Firebase Analytics is set up and on, they go to Firebase too. See [Custom Events](https://help.twinr.dev/native-integrations/custom-events.md).

## Seeing your data

Events appear in the Firebase console. See [How to check Analytics in Firebase?](https://help.twinr.dev/native-integrations/firebase-analytics/how-to-check-analytics-in-firebase.md).

{% hint style="info" %}
Events start recording immediately but can take up to **24 hours** to appear in Firebase's reports. An empty dashboard an hour after setup is normal — it does not mean something is broken.
{% endhint %}

## Common Questions

<details>

<summary>Why is nothing showing from my Preview app?</summary>

Twinr does not record analytics from Twinr Preview. Test with a real build — an APK on Android, or TestFlight on iOS.

</details>
