Error Event - GameAnalytics/GA-SDK-JAVASCRIPT GitHub Wiki

Error Events

Used to track custom error events in the game. You can group the events by severity level and attach a message.

To add a custom error event call the following function:

<!-- Traditional way -->
gameanalytics.GameAnalytics.addErrorEvent(gameanalytics.EGAErrorSeverity.Debug, "Something went bad in some of the smelly code!");
<!-- Command queue -->
GameAnalytics("addErrorEvent", "Debug", "Something went bad in some of the smelly code!");

 

Field Type Description Example
severity enum Severity of error gameanalytics.EGAErrorSeverity.Debuggameanalytics.EGAErrorSeverity.Info gameanalytics.EGAErrorSeverity.Warninggameanalytics.EGAErrorSeverity.Errorgameanalytics.EGAErrorSeverity.Critical
message string Error message (can be null) "Error when entering level12"

 

:information_source:
For more information on the error event go here.

 

NEXT  →