Return to Video

Exception Tracking

  • 0:00 - 0:04
    You can track exceptions and
    crashes in Google Analytics.
  • 0:05 - 0:10
    So in the dashboard, you would go to
    Behavior > Crashes and Exceptions.
  • 0:10 - 0:13
    And the exceptions are grouped
    by the app version number.
  • 0:13 - 0:15
    You could drill down with
    the different version numbers.
  • 0:15 - 0:19
    And see, I had a NoSuchMethodException
    and a NumberFormatException.
  • 0:20 - 0:25
    So you can track caught exceptions and
    uncaught exceptions.
  • 0:25 - 0:30
    So to track exceptions that get caught,
    you need to send an exception hit.
  • 0:30 - 0:35
    And you use ExceptionBuilder to build
    a hit, and you set the description and
  • 0:35 - 0:38
    you setFatal, whether or
    not it's fatal, and that's boolean.
  • 0:38 - 0:41
    And then you build the hit and send it.
  • 0:41 - 0:44
    And for uncaught exceptions,
    you can't add code,
  • 0:44 - 0:48
    obviously, because you don't know where
    in the code the exceptions occur.
  • 0:48 - 0:53
    However, you can enable automatic
    tracking for uncaught exceptions.
  • 0:53 - 0:58
    And to do this you set
    ga_reportUncaughtExceptions
  • 0:58 - 1:01
    to true in the tracker config file.
  • 1:01 - 1:05
    I just want to mention that there have
    been some issues about sending hits for
  • 1:05 - 1:06
    uncaught exceptions.
  • 1:06 - 1:09
    The issue tracker links in
    the instructor notes below and
  • 1:09 - 1:12
    I leave it to you to setup tracking for
    exceptions if you want.
Title:
Exception Tracking
Description:

more » « less
Video Language:
English
Team:
Udacity
Project:
UD876-2 - Google Play Services - Analytics
Duration:
01:13

English subtitles

Revisions Compare revisions