title: How to get Google Analytics v4 to report uncaught exceptions (crashes) for my app?
body: <p>I've been banging my head against a wall for hours on this one. The <a href="https://developers.google.com/analytics/devguides/collection/android/v4/exceptions#uncaught" rel="nofollow noreferrer">v4 docs</a> for Google Analytics specify 2 different ways of getting your app to report uncaught exceptions. I can get neither to work. In both cases I see lines like this in LogCat when I trigger the uncaught exception to occur in my app (using dummy names for my own code):</p>
  
  <pre><code>08-17 17:33:30.248: V/GAV4(8968): Thread[main,5,main]: Tracking Exception: MyException (@MyClass:myMethod:143) {main}
  08-17 17:33:30.248: V/GAV4(8968): Thread[main,5,main]: Dispatch call queued. Dispatch will run once initialization is complete.
  08-17 17:33:30.248: V/GAV4(8968): Thread[main,5,main]: Passing exception to original handler.
  </code></pre>
  
  <p>...followed by the stacktrace for my exception and then finally:</p>
  
  <pre><code>08-17 17:33:44.282: I/Process(8968): Sending signal. PID: 8968 SIG: 9
  </code></pre>
  
  <p>From LogCat it looks like GA never actually dispatches the exception to Google's servers!</p>
  
  <p>If someone has managed to get uncaught exceptions being reported in their Google Analytics Console it would be fantastic if they could share with us how they did it, please. I've seen other people on SO with queries like this (e.g., <a href="https://stackoverflow.com/questions/22989844/get-crash-report-in-google-analytics">here</a> and <a href="https://stackoverflow.com/questions/23854534/analytics-v4-uncaught-exceptions-not-working">here</a>) but no confirmation that uncaught exceptions are being reported.</p>
  
  <p>I've got screen views showing up in the GA Console so I must be doing something right. But not uncaught exceptions. I'm assuming one should be looking for them under Behavior > Crashes and Exceptions, and I've set the end date to include today (it seems to be set to yesterday by default). Finally, in my analytics_global_config.xml I have:</p>
  
  <pre><code>&lt;integer name="ga_dispatchPeriod"&gt;1&lt;/integer&gt;
  </code></pre>
  
  <p>because otherwise the default is 1800 seconds, in which case I assume exceptions would not be seen in the GA console for at least 30 minutes after they occurred. <code>ga_dryRun</code> is false too.</p>