A Capacitor plugin that provides native Firebase Analytics integration for cross-platform mobile and web apps.
@capacitor-community/firebase-analytics is a community-maintained Capacitor plugin that enables Firebase Analytics in Capacitor applications. It provides native implementations for Android and iOS while maintaining a consistent JavaScript API, allowing developers to track user interactions, set user properties, and log events across all platforms their app runs on.
Capacitor/Ionic developers building cross-platform mobile and web applications who need integrated Firebase Analytics with native performance.
Developers choose this plugin because it offers official Firebase Analytics SDK integration through Capacitor's plugin system, ensuring accurate data collection on native platforms while maintaining a simple, unified API that works across Android, iOS, and web.
Enable Firebase Analytics for Capacitor Apps
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses official Firebase Analytics SDKs on Android and iOS, ensuring data reliability and platform-specific optimizations as emphasized in the README.
Provides a consistent JavaScript/TypeScript interface that works across Android, iOS, and web, simplifying codebase management for hybrid apps.
Regularly updated with clear migration guides from older capacitor-analytics packages, supported by version tables and maintenance badges in the README.
Supports event logging, user properties, session control, and collection enabling/disabling, covering key Firebase Analytics functionalities.
Methods like getAppInstanceId and setScreenName are unsupported on web, limiting functionality for applications targeting web platforms, as noted in the README's supported methods table.
Requires manual steps such as downloading Firebase config files, adding them to Xcode/Android Studio, and cleaning caches, adding overhead compared to pure web solutions.
Breaking changes tied to Capacitor updates (e.g., v8.0.0) necessitate careful version management and potential migration efforts, as highlighted in the README's warning.