I can not get firebase events

0

I'm trying to execute a firebase function when registering an event for this in android register an event like this

mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);
Bundle bundle = new Bundle();
bundle.putString(FirebaseAnalytics.Param.ITEM_ID, "1");
bundle.putString(FirebaseAnalytics.Param.ITEM_NAME, "nombre");
bundle.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "image");
mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT, bundle);

and in the index.js of the functions I have this

exports.sendCouponOnPurchase = 
functions.analytics.event("select_content").onLog((event) => {
const user = event.user;
console.log('evento registrado ',user)
});

the event does not appear in the firebase event table but on the debugview screen without errors. does not activate the firebase function either I also put the event select_content "as a conversion event. The events appeared the next day on the events screen and also activated the function, I understood that this was only for the event log screen

    
asked by jultrun 07.09.2018 в 04:59
source

1 answer

0

I have the same problem, I want to put an event on a button, but when you enter the firebase it does not show the counts of each click. I'm using Android Studio

Bundle click1= new Bundle();
click1.putString(FirebaseAnalytics.Param.ITEM_ID,"CONTAR CLICK" );
click1.putString(FirebaseAnalytics.Param.ITEM_NAME,"BOTON FIREBASE aNALITICS");
click1.putString(FirebaseAnalytics.Param.CONTENT_TYPE, "number");

mFirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_CONTENT,click1);

The Android Studio Logcat says that the event is being sent:

 2018-11-28 17:02:04.503 2408-10095/com.google.android.gms V/FA-SVC:
 Saving event,   name, data size: user_engagement(_e), 62 2018-11-28
 17:02:04.504 2408-10095/com.google.android.gms V/FA-SVC:   Event
 recorded: Event{appId='brain.personal.brain',
name='user_engagement(_e)',  
 params=Bundle[{firebase_event_origin(_o)=auto,
 engagement_time_msec(_et)=6934,   firebase_screen_class(_sc)=calculo,
 firebase_screen_id(_si)=4493488708959500095}]}

But when entering my Firebase user it does not show me the events that I am registering. Can someone help me please?

    
answered by 28.11.2018 в 23:17