Firebase Analytics, unable to view the values that are passed in the event

浪子不回头ぞ 提交于 2019-11-29 17:57:24

The VALUE parameter is meant to be numeric. See the documentation on it here.

Of course, you can log any custom parameter you want with your event, but parameter reporting is only currently offered on a subset of suggested events. Alternatively, you can query your raw events, parameters and user properties if you link your app to BigQuery.

I faced same issue:

 //pass this code in any click event or anywhere.
 
 FirebaseAnalytics firebaseAnalytics = FirebaseAnalytics.getInstance(this);
 Bundle bundle = new Bundle();
 bundle.putString("Category",category);
 bundle.putString("Screen",Screen);
 firebaseAnalytics.logEvent("MyCustomEvent",bundle);
 
 

Pass this command for track:

adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC

not when your app is send event log you will see logs. Custom tag i used android studio's emulator. Geny motion set SDK path from Genymotion: settings-> ADB.

Note: After 15-20 minutes open firebase console, see right side and select today. you will find your custome event.

Try this snippet code

findViewById(R.id.tvOrderTitle).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
            String strClickLogs;

            Bundle params = new Bundle();
            params.putString("mobileno", logMobileno);
            params.putString("name", logName);
            params.putString("email", logEmail);

            strClickLogs = "Eventlogs_Generated";

            Log.e(TAG, strClickLogs);
            //Logs an app event.
            mFirebaseAnalytics.logEvent(strClickLogs, params);
        }
    });

You can see genrated logs in verbose in Logcat as below format:

V/FA-SVC: Logging event: origin=app,name=Eventlogs_Generated,params=Bundle[{mobileno=9876543210, firebase_event_origin(_o)=app, firebase_screen_class(_sc)=SupplierListActivity, firebase_screen_id(_si)=7001228486350086694, name=Ashish Tikarye, email=ashisht@set.com}]

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!