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