# @react-native-firebase/analytics

> React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and mo

Latest version **26.4.0** (published 2026-09-05) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @react-native-firebase/analytics
pnpm add @react-native-firebase/analytics
yarn add @react-native-firebase/analytics
bun add @react-native-firebase/analytics
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 26.4.0 |
| Published | 2026-09-05 |
| First published | 2019-01-29 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 580.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 12308 |
| Author | Invertase |
| Maintainers | salakar, ehesp, rusticman, mikehardy |
| Keywords | react, react-native, firebase, analytics |

## Links

- npm: https://www.npmjs.com/package/@react-native-firebase/analytics
- Repository: https://github.com/invertase/react-native-firebase
- Homepage: https://rnfirebase.io
- Issues: https://github.com/invertase/react-native-firebase/issues
- npm.io page: https://npm.io/package/@react-native-firebase/analytics

## Dependencies (1)

- [superstruct](https://npm.io/package/superstruct.md) ^2.0.2

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 26.4.0 (latest) — 2026-09-05
- 14.12.0 (version-14) — 2022-09-17
- 26.3.3 — 2026-09-01
- 26.3.2 — 2026-08-21
- 26.3.1 — 2026-08-20
- 26.3.0 — 2026-08-20
- 26.2.0 — 2026-08-10
- 26.1.0 — 2026-08-03
- 26.0.0 — 2026-07-29
- 25.1.0 — 2026-06-25
- 25.0.1 — 2026-06-23
- 25.0.0 — 2026-06-23
- 24.1.1 — 2026-06-10
- 24.1.0 — 2026-06-05
- 24.0.0 — 2026-04-01
- … 315 more at https://npm.io/package/@react-native-firebase/analytics/versions

## README

<p align="center">
  <a href="https://rnfirebase.io">
    <img width="160px" src="https://i.imgur.com/JIyBtKW.png"><br/>
  </a>
  <h2 align="center">React Native Firebase - Analytics</h2>
</p>

<p align="center">
  <a href="https://api.rnfirebase.io/coverage/analytics/detail"><img src="https://api.rnfirebase.io/coverage/analytics/badge?style=flat-square" alt="Coverage"></a>
  <a href="https://www.npmjs.com/package/@react-native-firebase/analytics"><img src="https://img.shields.io/npm/dm/@react-native-firebase/analytics.svg?style=flat-square" alt="NPM downloads"></a>
  <a href="https://www.npmjs.com/package/@react-native-firebase/analytics"><img src="https://img.shields.io/npm/v/@react-native-firebase/analytics.svg?style=flat-square" alt="NPM version"></a>
  <a href="/LICENSE"><img src="https://img.shields.io/npm/l/react-native-firebase.svg?style=flat-square" alt="License"></a>
  <a href="https://lerna.js.org/"><img src="https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg?style=flat-square" alt="Maintained with Lerna"></a>
</p>

<p align="center">
  <a href="https://invertase.link/discord"><img src="https://img.shields.io/discord/295953187817521152.svg?style=flat-square&colorA=7289da&label=Chat%20on%20Discord" alt="Chat on Discord"></a>
  <a href="https://twitter.com/rnfirebase"><img src="https://img.shields.io/twitter/follow/rnfirebase.svg?style=flat-square&colorA=1da1f2&colorB=&label=Follow%20on%20Twitter" alt="Follow on Twitter"></a>
  <a href="https://www.facebook.com/groups/rnfirebase"><img src="https://img.shields.io/badge/Follow%20on%20Facebook-4172B8?logo=facebook&style=flat-square&logoColor=fff" alt="Follow on Facebook"></a>
</p>

---

Analytics integrates across Firebase features and provides
you with unlimited reporting for up to 500 distinct events
that you can define using the Firebase SDK. Analytics reports
help you understand clearly how your users behave, which enables
you to make informed decisions regarding app marketing and
performance optimizations.

[> Learn More](https://firebase.google.com/products/analytics/)

## Installation

Requires `@react-native-firebase/app` to be installed.

```bash
yarn add @react-native-firebase/analytics
```

### Expo

If you use Expo, including EAS Build, and want to configure iOS Analytics Podfile flags, add the Analytics config plugin to your `app.json` / `app.config.js`:

```json
{
  "expo": {
    "plugins": [
      [
        "@react-native-firebase/analytics",
        {
          "ios": {
            "withoutAdIdSupport": true,
            "googleAppMeasurementOnDeviceConversion": true
          }
        }
      ]
    ]
  }
}
```

The `withoutAdIdSupport` option adds `$RNFirebaseAnalyticsWithoutAdIdSupport = true` during prebuild, which excludes `FirebaseAnalytics/IdentitySupport`. The `googleAppMeasurementOnDeviceConversion` option adds `$RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true`, which includes Google Analytics on-device conversion measurement support. You may omit either option if it is not needed.

## Documentation

- [Quick Start](https://rnfirebase.io/analytics/usage)
- [Reference](https://rnfirebase.io/reference/analytics)

### Additional Topics

- [Screen Tracking](https://rnfirebase.io/analytics/screen-tracking)

## License

- See [LICENSE](/LICENSE)

---

<p>
  <img align="left" width="75px" src="https://static.invertase.io/assets/invertase/invertase-rounded.png">
  <p align="left">
    Built and maintained with 💛 by <a href="https://invertase.io">Invertase</a>.
  </p>
</p>

---

---
_Source: https://npm.io/package/@react-native-firebase/analytics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
