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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
update CH view to account for new event types
Francis Cao16451dd5cd46
diff --git a/db/clickhouse/schema.sql b/db/clickhouse/schema.sqlindex d6294d442..e9160329e 100644--- a/db/clickhouse/schema.sql+++ b/db/clickhouse/schema.sql@@ -209,7 +209,7 @@ FROM (SELECTarrayFilter(x -> x != '', groupArray(twclid)) twclid,event_type,if(event_type = 2, groupArray(event_name), []) event_name,- sumIf(1, event_type = 1) views,+ sumIf(1, event_type != 2) views,min(created_at) min_time,max(created_at) max_time,arrayFilter(x -> x != '', groupArray(tag)) tag,