Android Question How to track a button click in Firebase Analytics?

asales

Expert
Licensed User
Longtime User
Like Erel says, you can use the SendEvent:
one to each button click:
B4X:
Starter.analytics.SendEvent("MyButton1_Click", Null)
or use the button name as paremeter:
B4X:
Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": "name_button1"))
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": button1))
you can not serialize a Objectinstance. I guess the call will fail or not storing any useful.
 
Upvote 0
Top