From fba617c6f4096fd3388d5cb6c11939f925080772 Mon Sep 17 00:00:00 2001 From: Karl-Aksel Puulmann Date: Wed, 3 Apr 2024 10:23:42 +0300 Subject: [PATCH] Handle percentage separately from other metrics --- lib/plausible/stats/table_decider.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plausible/stats/table_decider.ex b/lib/plausible/stats/table_decider.ex index 72acfe7d5..f7d68f6c5 100644 --- a/lib/plausible/stats/table_decider.ex +++ b/lib/plausible/stats/table_decider.ex @@ -70,6 +70,7 @@ defmodule Plausible.Stats.TableDecider do # Calculated metrics - handled on callsite separately from other metrics. defp metric_partitioner(_, :time_on_page), do: :other defp metric_partitioner(_, :total_visitors), do: :other + defp metric_partitioner(_, :percentage), do: :other # Sample percentage is included in both tables if queried. defp metric_partitioner(_, :sample_percent), do: :both