📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fix: performance query crashes with UNKNOWN_IDENTIFIER
Blue Mouseed73fdc09da3
diff --git a/backend/apps/cloud/src/analytics/analytics.service.ts b/backend/apps/cloud/src/analytics/analytics.service.tsindex 646b3b8c8..6d92938e7 100644--- a/backend/apps/cloud/src/analytics/analytics.service.ts+++ b/backend/apps/cloud/src/analytics/analytics.service.ts@@ -903,6 +903,9 @@ export class AnalyticsService {let customEVFilterApplied = falseconst allowTagFilters =dataType === DataType.ANALYTICS || dataType === DataType.ERRORS+ const supportsReferrerFilters = dataType === DataType.ANALYTICS+ const supportsSessionScopedPageFilters =+ dataType === DataType.ANALYTICS || dataType === DataType.ERRORSif (filters === '""' || _isEmpty(filters)) {return [query, params, parsed, customEVFilterApplied]@@ -949,11 +952,13 @@ export class AnalyticsService {customEVFilterApplied = true} else if (!_includes(SUPPORTED_COLUMNS, column) &&- column !== 'refn' &&+ !(supportsReferrerFilters && column === 'refn') &&!(allowTagFilters && _includes(TRAFFIC_METAKEY_COLUMNS, column)) &&!(allowTagFilters && _startsWith(column, 'tag:key:')) &&- column !== 'entryPage' &&- column !== 'exitPage'+ !(+ supportsSessionScopedPageFilters &&+ (column === 'entryPage' || column === 'exitPage')+ )) {return prev}diff --git a/backend/apps/community/src/analytics/analytics.service.ts b/backend/apps/community/src/analytics/analytics.service.tsindex 69d5f016e..f409c69c6 100644--- a/backend/apps/community/src/analytics/analytics.service.ts+++ b/backend/apps/community/src/analytics/analytics.service.ts@@ -913,6 +913,9 @@ export class AnalyticsService {let customEVFilterApplied = falseconst allowTagFilters =dataType === DataType.ANALYTICS || dataType === DataType.ERRORS+ const supportsReferrerFilters = dataType === DataType.ANALYTICS+ const supportsSessionScopedPageFilters =+ dataType === DataType.ANALYTICS || dataType === DataType.ERRORSif (filters === '""' || _isEmpty(filters)) {return [query, params, parsed, customEVFilterApplied]@@ -959,11 +962,13 @@ export class AnalyticsService {customEVFilterApplied = true} else if (!_includes(SUPPORTED_COLUMNS, column) &&- column !== 'refn' &&+ !(supportsReferrerFilters && column === 'refn') &&!(allowTagFilters && _includes(TRAFFIC_METAKEY_COLUMNS, column)) &&!(allowTagFilters && _startsWith(column, 'tag:key:')) &&- column !== 'entryPage' &&- column !== 'exitPage'+ !(+ supportsSessionScopedPageFilters &&+ (column === 'entryPage' || column === 'exitPage')+ )) {return prev}