Erel B4X founder Staff member Licensed User Longtime User Jun 22, 2020 #2 You can use the SendEvent method to create custom events. Upvote 0
asales Expert Licensed User Longtime User Jun 22, 2020 #3 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: Jun 22, 2020 Upvote 0
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"))
DonManfred Expert Licensed User Longtime User Jun 22, 2020 #4 asales said: Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": button1)) Click to expand... you can not serialize a Objectinstance. I guess the call will fail or not storing any useful. Upvote 0
asales said: Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": button1)) Click to expand... you can not serialize a Objectinstance. I guess the call will fail or not storing any useful.
asales Expert Licensed User Longtime User Jun 22, 2020 #5 DonManfred said: you can not serialize a Objectinstance. I guess the call will fail or not storing any useful. Click to expand... My mistake. This is the correct code: B4X: Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": "name_button1")) Upvote 0
DonManfred said: you can not serialize a Objectinstance. I guess the call will fail or not storing any useful. Click to expand... My mistake. This is the correct code: B4X: Starter.analytics.SendEvent("Buttons_Clicks", CreateMap ("button": "name_button1"))