📈 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
import and initialize controlere
Maksim Mrugb0b7b1391b58
diff --git a/apps/production/src/analytics/analytics.controller.ts b/apps/production/src/analytics/analytics.controller.tsindex 6d3b2c24d..a5fdc3de7 100644--- a/apps/production/src/analytics/analytics.controller.ts+++ b/apps/production/src/analytics/analytics.controller.ts@@ -61,6 +61,7 @@ import {import { BotDetection } from '../common/decorators/bot-detection.decorator'import { BotDetectionGuard } from '../common/guards/bot-detection.guard'import { GetCustomEventsDto } from './dto/get-custom-events.dto'+import { GetFiltersDto } from './dto/get-filters.dto'import { IUserFlow } from './interfaces'// eslint-disable-next-line @typescript-eslint/no-var-requires@@ -370,6 +371,15 @@ export class AnalyticsController {}}+ @Get('filters')+ @Auth([], true, true)+ async getFilters(+ @Query() data: GetFiltersDto,+ @CurrentUserId() uid: string,+ @Headers() headers: { 'x-password'?: string },+ ): Promise<any> {+ }+@Get('chart')@Auth([], true, true)async getChartData(