Skip to content

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

Remove warning

Uku Taht4715c8830846
diff --git a/lib/plausible_web/controllers/api/external_controller.ex b/lib/plausible_web/controllers/api/external_controller.ex
index eb93cc1f02..a1b710e4a9 100644
--- a/lib/plausible_web/controllers/api/external_controller.ex
+++ b/lib/plausible_web/controllers/api/external_controller.ex
@@ -59,7 +59,7 @@ defmodule PlausibleWeb.Api.ExternalController do
if user_agent do
Cachex.fetch!(:user_agents, user_agent, fn ua ->
- {:commit, UAInspector.parse(user_agent)}
+ {:commit, UAInspector.parse(ua)}
end)
end
end