Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Create a Firebase project in the Firebase console.
  2. Add Firebase to your Android project by following the Firebase setup guide.
  3. In the Firebase console, enable Analytics for your project.
  4. Add the Firebase Analytics dependency to your app-level build.gradle file:

implementation 'com.google.firebase:firebase-analytics:<version>'

  1. Add the Google services plugin to your app-level build.gradle file:

apply plugin: 'com.google.gms.google-services'

  1. In your app's code, initialize Firebase Analytics in the onCreate() method of your application class:

FirebaseAnalytics.getInstance(this);

Your Firebase SDK for Analytics is now initiated and ready to use in your Android app.