Skip to content

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

Use new field for all time date range as well

Uku Tahte572877cdd0b
diff --git a/lib/plausible/stats/query.ex b/lib/plausible/stats/query.ex
index 3cf2efabeb..062a23ff9e 100644
--- a/lib/plausible/stats/query.ex
+++ b/lib/plausible/stats/query.ex
@@ -188,7 +188,7 @@ defmodule Plausible.Stats.Query do
def from(site, %{"period" => "all"} = params) do
start_date =
- site.inserted_at
+ site.stats_start_date
|> Timex.Timezone.convert("UTC")
|> Timex.Timezone.convert(site.timezone)
|> Timex.to_date()