Skip to content

📈 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!

added bot detection guard to POST /analytics/hb

Blue Mouse3ec9e4dbbe59
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.ts
index 933950e3d..cb903c556 100644
--- a/src/analytics/analytics.controller.ts
+++ b/src/analytics/analytics.controller.ts
@@ -820,6 +820,8 @@ export class AnalyticsController {
}
@Post('/hb')
+ @UseGuards(BotDetectionGuard)
+ @BotDetection()
@Auth([], true, true)
async heartbeat(
@Body() logDTO: PageviewsDTO,