Firebase Google Analytics 4 - "exception" vs. "app_exception"

Viewed 161

Is it possible to manually track exceptions using Firebase GA4 Analytics?

I have been checking few documents that refers to two different events:

  1. app_exception
  2. exception

So... what should I do? Are both ways correct?

analytics.logEvent("exception", {
  description: error.message ?? "Unexpected error.",
  fatal: false,
});

VS

analytics.logEvent("app_exception", {
  description: error.message ?? "Unexpected error.",
  fatal: false,
});
0 Answers
Related