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.

combine logic

Brian Caodd54fb3d2c09
diff --git a/lib/clickhouse.js b/lib/clickhouse.js
index 84be902b3..153042146 100644
--- a/lib/clickhouse.js
+++ b/lib/clickhouse.js
@@ -72,18 +72,10 @@ function getFilterQuery(column, filters = {}, params = []) {
switch (key) {
case 'url':
- arr.push(`and ${key}=$${params.length + 1}`);
- params.push(decodeURIComponent(filter));
- break;
-
case 'os':
case 'browser':
case 'device':
case 'country':
- arr.push(`and ${key}=$${params.length + 1}`);
- params.push(decodeURIComponent(filter));
- break;
-
case 'event_name':
arr.push(`and ${key}=$${params.length + 1}`);
params.push(decodeURIComponent(filter));