Skip to content

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

Remove "Stats start date" and adjust "Native stats start time" in Sites CRM (#4034)

Adrian Gruntkowski2a35a0099f7d
diff --git a/lib/plausible/site/admin.ex b/lib/plausible/site/admin.ex
index bedd8456e4..e6c593e845 100644
--- a/lib/plausible/site/admin.ex
+++ b/lib/plausible/site/admin.ex
@@ -35,8 +35,12 @@ defmodule Plausible.SiteAdmin do
domain: %{update: :readonly},
timezone: %{choices: Plausible.Timezones.options()},
public: nil,
- stats_start_date: %{update: :readonly},
- native_stats_start_at: nil,
+ native_stats_start_at: %{
+ type: :string,
+ label: "Native stats start time",
+ help_text:
+ "Cutoff time for native stats in UTC timezone. Expected format: YYYY-MM-DDTHH:mm:ss"
+ },
ingest_rate_limit_scale_seconds: %{
help_text: "Time scale for which events rate-limiting is calculated. Default: 60"
},