Google launched Google Analytics 4, a new way of analyzing iOS, Android, and Web data together. Google encourages all customers to upgrade their Firebase instances so that Firebase data flows to Google Analytics 4. mParticle encourages all customers to also upgrade to the new mParticle Android Firebase GA4 kit. This repository page you are on will continue to work, but all new code changes and bug fixes will be made in our new Firebase GA4 kit. Please see the mParticle GA4 docs for more information on upgrading.
This repository contains the Google Analytics for Firebase integration for the mParticle Android SDK.
-
Add the kit dependency to your app's build.gradle:
dependencies { implementation 'com.mparticle:android-googleanalyticsfirebase-kit:5+' }
-
Follow the mParticle Android SDK quick-start, then rebuild and launch your app, and verify that you see
"Google Analytics for Firebase detected"
in the output ofadb logcat
. -
Reference mParticle's integration docs below to enable the integration.