Skip to content

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

Add a filter for exit pages

Uku Tahtc7196afa321e
diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex
index 948a5e562e..3cd4734a4c 100644
--- a/lib/plausible/stats/clickhouse.ex
+++ b/lib/plausible/stats/clickhouse.ex
@@ -537,6 +537,7 @@ defmodule Plausible.Stats.Clickhouse do
order_by: [desc: fragment("count")],
limit: ^limit,
offset: ^offset,
+ where: s.exit_page != "",
select: %{
name: s.exit_page,
count: fragment("uniq(?) as count", s.user_id),