Using Google Analytics To Track Fragments

后端 未结 6 1927
我寻月下人不归
我寻月下人不归 2020-12-04 15:39

Just need to know the proper way to implement Google analytics to track when a user is on a fragment in real time this is what is do now

@Override
public voi         


        
6条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 16:25

    Tracking methods section suggests that you just need to call EasyTracker.getInstance().setContext(getActivity()); first, then you can use the tracker in "other classes".

    manual screen tracking section suggests that you can track a Fragment view with myTracker.sendView("Home Screen");

提交回复
热议问题