Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Ignore unkown device type (#3266)

Uku Tahta6bf9518525d
diff --git a/lib/plausible/ingestion/event.ex b/lib/plausible/ingestion/event.ex
index a2c5747eb6..c6d698f902 100644
--- a/lib/plausible/ingestion/event.ex
+++ b/lib/plausible/ingestion/event.ex
@@ -372,6 +372,9 @@ defmodule Plausible.Ingestion.Event do
%Device{type: t} when t in @desktop_types ->
"Desktop"
+ %Device{type: "unknown"} ->
+ nil
+
%Device{type: type} ->
Sentry.capture_message("Could not determine device type from UAInspector",
extra: %{type: type}