Google Analytics - Full Stack Report

I use this code to create a Tracker:

GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); Tracker myTracker = analytics.newTracker(R.xml.track); myTracker.set("&uid", appId); myTracker.enableExceptionReporting(true); 

In track.xml, I have:

 <resources> <string name="ga_trackingId">UA-***</string> <bool name="ga_autoActivityTracking">true</bool> <bool name="ga_reportUncaughtExceptions">true</bool> </resources> 

This sends only the first line of the stack trace to Google Analytics.

How can I send the entire stack trace?

The documentation says

Warning: never send an exception message (e.g. e.getMessage ()) to Google Analytics, as it may contain personally identifiable information.

Is it allowed to send a full stack trace?

+5
source share

Source: https://habr.com/ru/post/1247363/


All Articles