Android Firebase Analytics Set up
Connect Android Application to Firebase Analytics Step 1: Add the Analytics SDK to your app (gradle) dependencies { // Import the BoM for the Firebase platform implementation platform('com.google.firebase:firebase-bom:26.1.1') // Declare the dependency for the Analytics library // When using the BoM, you don't specify versions in Firebase library dependencies implementation 'com.google.firebase:firebase-analytics' } Step 2: Code to write to Analytics in your Android app (custom event) val analytics : FirebaseAnalytics = FirebaseAnalytics.getInstance( this ) val bundle = Bundle() bundle.putString( "First_Category" , "First_catValue" ) bundle.putString( "sub_Cat" , "sub_CatValue" ) analytics .setDefaultEventParameters( null ) analytics .logEvent( "My_Custom_Event" , bundle) Step 3: You will see these in Events on the firebase console however can take 24 hours to show Step 4: Set up Analytics...