From 21039de5e29c875ad4aa11addb7e2db6e6c2ee9b Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Mon, 21 Sep 2020 10:52:05 +0300 Subject: [PATCH] Fix goal name display in pageview goals --- lib/plausible/stats/clickhouse.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex index fbed5e1c0..b85b5e9fc 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") }