Files
awesome-cordova-plugins/docs/plugins/firebase-analytics/README.md
T
Daniel Sogl 76b4e03d04 feat!: replace dgeni/gulp with TypeDoc for README generation
Replace the legacy dgeni/gulp documentation pipeline with TypeDoc
and typedoc-plugin-markdown. Generates plugin README files with
extracted @Plugin() decorator metadata. Register custom JSDoc tags
used by plugin source files.
2026-03-21 15:16:18 -07:00

39 lines
1.3 KiB
Markdown

# Firebase Analytics
```
$ ionic cordova plugin add cordova-plugin-firebase-analytics
$ npm install @awesome-cordova-plugins/firebase-analytics
```
## [Usage Documentation](https://danielsogl.gitbook.io/awesome-cordova-plugins/plugins/firebase-analytics/)
Plugin Repo: [https://github.com/chemerisuk/cordova-plugin-firebase-analytics](https://github.com/chemerisuk/cordova-plugin-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.
## Supported platforms
- Android
- iOS