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

后端 未结 3 1980
生来不讨喜
生来不讨喜 2020-12-22 00:08

I am implementing Firebase Analytics in my app.

Everything works fine, I am getting the logged events in my Firebase console, but I am having trouble with the bundle

3条回答
  •  粉色の甜心
    2020-12-22 00:34

    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}]

提交回复
热议问题