Skip to content

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

Always parse GA numbers as floats

Uku Taht18fd0dbe044d
diff --git a/lib/plausible/imported/site.ex b/lib/plausible/imported/site.ex
index 43bc7208a2..d9eb210870 100644
--- a/lib/plausible/imported/site.ex
+++ b/lib/plausible/imported/site.ex
@@ -24,14 +24,8 @@ defmodule Plausible.Imported do
end
defp parse_number(nr) do
- # Scientific notation
- if String.contains?(nr, "E") do
- {float, ""} = Float.parse(nr)
- float
- else
- {int, ""} = Integer.parse(nr)
- int
- end
+ {float, ""} = Float.parse(nr)
+ float
end
defp new_from_google_analytics(site_id, "imported_visitors", %{