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
add tags to ch schema file
Francis Caoa708e6c35087
diff --git a/db/clickhouse/schema.sql b/db/clickhouse/schema.sqlindex 3dcfda9f6..5ceaaa0eb 100644--- a/db/clickhouse/schema.sql+++ b/db/clickhouse/schema.sql@@ -26,6 +26,7 @@ CREATE TABLE umami.website_event--eventsevent_type UInt32,event_name String,+ tag String,created_at DateTime('UTC'),job_id Nullable(UUID))@@ -96,6 +97,7 @@ CREATE TABLE umami.website_event_stats_hourlyviews SimpleAggregateFunction(sum, UInt64),min_time SimpleAggregateFunction(min, DateTime('UTC')),max_time SimpleAggregateFunction(max, DateTime('UTC')),+ tag SimpleAggregateFunction(groupArrayArray, Array(String)),created_at Datetime('UTC'))ENGINE = AggregatingMergeTree@@ -136,6 +138,7 @@ SELECTviews,min_time,max_time,+ tag,timestamp as created_atFROM (SELECTwebsite_id,@@ -161,6 +164,7 @@ FROM (SELECTsumIf(1, event_type = 1) views,min(created_at) min_time,max(created_at) max_time,+ arrayFilter(x -> x != '', groupArray(tag)) tag,toStartOfHour(created_at) timestampFROM umami.website_eventGROUP BY website_id,