analytics v4 uncaught exceptions not working

前端 未结 3 1608
时光说笑
时光说笑 2020-12-19 20:59

My app_tracker.xml

UA-XXXX....
verbose


        
3条回答
  •  无人及你
    2020-12-19 21:29

    I had the same problem and i solved it by adding this line myTracker.enableExceptionReporting(true); to the set up method

    private void setupGoogleAnalytics() {
      MyApp app= (MyApp) getApplication();
      Tracker myTracker=app.getTracker(MyApp.TrackerName.APP_TRACKER);
      myTracker.enableAutoActivityTracking(true);
      myTracker.enableExceptionReporting(true); //add this line
      GoogleAnalytics.getInstance(this).enableAutoActivityReports(app);
    }
    

提交回复
热议问题