Skip to content

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

Fix goal name display in pageview goals

Uku Taht21039de5e29c
diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex
index fbed5e1c01..b85b5e9fca 100644
--- a/lib/plausible/stats/clickhouse.ex
+++ b/lib/plausible/stats/clickhouse.ex
@@ -521,7 +521,7 @@ defmodule Plausible.Stats.Clickhouse do
group_by: e.name,
order_by: [desc: fragment("count")],
select: %{
- name: e.name,
+ name: ^goal,
count: fragment("uniq(user_id) as count"),
total_count: fragment("count(*) as total_count")
}