Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix: unable to sort by referrer

Holger Huo0349b82e9a3c
diff --git a/lib/queries.js b/lib/queries.js
index 7d3dd7a2d..aa513d22b 100644
--- a/lib/queries.js
+++ b/lib/queries.js
@@ -469,7 +469,7 @@ export function getPageviewMetrics(website_id, start_at, end_at, field, table, f
params.push(decodeURIComponent(url));
}
- if (referrer) {
+ if (referrer && table !== 'event') {
refFilter = `and referrer like $${params.length + 1}`;
params.push(`%${decodeURIComponent(referrer)}%`);
}