📈 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
minor patch to be in line with cloud edition
Blue Mousef9a274db51aa
diff --git a/backend/apps/community/src/analytics/analytics.controller.ts b/backend/apps/community/src/analytics/analytics.controller.tsindex bb1e1cb42..920517661 100644--- a/backend/apps/community/src/analytics/analytics.controller.ts+++ b/backend/apps/community/src/analytics/analytics.controller.ts@@ -23,6 +23,7 @@ import {Ip,ForbiddenException,Response,+ Header,} from '@nestjs/common'import { ApiTags } from '@nestjs/swagger'@@ -87,7 +88,7 @@ const DEFAULT_MEASURE = 'median'// Silent 200 response for bots// https://github.com/Swetrix/swetrix/issues/371-const BOT_RESPONSE = { message: 'Bot traffic detected, opinion rejected :D' }+const BOT_RESPONSE = { message: 'Bot traffic detected, request is ignored' }const ONLINE_VISITORS_WINDOW_MINUTES = 5 // minutes@@ -1054,7 +1055,7 @@ export class AnalyticsController {profileId,)- if (unique && logDTO.unique) {+ if (!unique && logDTO.unique) {throw new ForbiddenException('The event was not saved because it was not unique while unique only param is provided',)@@ -1157,6 +1158,7 @@ export class AnalyticsController {// Fallback for logging pageviews for users with JavaScript disabled// Returns 1x1 transparent gif@Get('noscript')+ @Header('Cross-Origin-Resource-Policy', 'cross-origin')@Public()async noscript(@Query() data: NoscriptDto,