Skip to content

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

Use UInt32

Uku Taht2e16cdb15be1
diff --git a/lib/plausible/stats/fragments.ex b/lib/plausible/stats/fragments.ex
index afa9c8f6db..0612bdbc61 100644
--- a/lib/plausible/stats/fragments.ex
+++ b/lib/plausible/stats/fragments.ex
@@ -19,13 +19,13 @@ defmodule Plausible.Stats.Fragments do
defmacro bounce_rate() do
quote do
- fragment("toUInt64(round(sum(is_bounce * sign) / sum(sign) * 100))")
+ fragment("toUInt32(round(sum(is_bounce * sign) / sum(sign) * 100))")
end
end
defmacro visit_duration() do
quote do
- fragment("toUInt64(round(avg(duration * sign)))")
+ fragment("toUInt32(round(avg(duration * sign)))")
end
end