analytics v4 uncaught exceptions not working

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

My app_tracker.xml

UA-XXXX....
verbose


        
相关标签:
3条回答
  • 2020-12-19 21:25

    I think that the fact that it is a bug has to be an answer since project member has acknowledged it as a bug and working on a fix https://code.google.com/p/analytics-issues/issues/detail?id=443

    0 讨论(0)
  • 2020-12-19 21:29

    do you have this in your manifest:

     <meta-data android:name="com.google.android.gms.analytics.globalConfigResource"
                   android:resource="@xml/global_tracker" />
    
    0 讨论(0)
  • 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);
    }
    
    0 讨论(0)
提交回复
热议问题