trackError static method

Future<void> trackError(
  1. String errorType,
  2. String errorMessage
)

Track error

Implementation

static Future<void> trackError(String errorType, String errorMessage) async {
  await AnalyticsManager.logEvent(
    'error_occurred',
    parameters: {
      'error_type': errorType,
      'error_message': errorMessage,
    },
  );
}