> For the complete documentation index, see [llms.txt](https://danielsogl.gitbook.io/awesome-cordova-plugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/plugins/firebase-analytics.md).

# Firebase Analytics

Cordova plugin for Firebase Analytics

Go to firebase console and export google-services.json and GoogleService-Info.plist. Put those files into the root of your cordova app folder.

NOTE: on iOS in order to collect demographic, age, gender data etc. you should additionally include AdSupport.framework into your project.

## Using capacitor?

For Android you'll have to add in **android/app/src/main/AndroidManifest.xml** under `<application>`

```
<meta-data
     tools:replace="android:value"
     android:name="firebase_analytics_collection_enabled"
     android:value="true"/>

<meta-data
     tools:replace="android:value"
     android:name="google_analytics_automatic_screen_reporting_enabled"
     android:value="false"/>
```

And in the same file, you'll have to add `xmlns:tools="http://schemas.android.com/tools"` to your *manifest* tag.

## Installation

```bash
ionic cordova plugin add cordova-plugin-firebase-analytics
npm install @awesome-cordova-plugins/firebase-analytics
```

**Plugin Repo:** <https://github.com/chemerisuk/cordova-plugin-firebase-analytics>

## Supported Platforms

* Android
* iOS

## Further Information

* [Installation Guide](/awesome-cordova-plugins/installation.md)
* [FAQ](/awesome-cordova-plugins/faq.md)
