What event should i use for sending a “button pressed” event on Firebase Analytics

后端 未结 2 1842
没有蜡笔的小新
没有蜡笔的小新 2021-02-12 16:54

The one I found most suitable is SELECT_CONTENT, but as the doc says:

Select Content event. This general purpose event signifies that a user has selected

2条回答
  •  南笙
    南笙 (楼主)
    2021-02-12 17:10

    You can track click of a button like this: (In my case, I have an InHouse Ad and I want to track number of clicks.)

    public void openGoz(View view){
        Uri uri = Uri.parse("market://details?id=com.mountzoft.gameofzeros");
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        startActivity(intent);
    
        Bundle bundle = new Bundle();
        bundle.putString("goz_ad_click","1");
        mFirebaseAnalytics.logEvent("in_house_ad_click", bundle);
    }
    

提交回复
热议问题