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!

fix: /hb not increasing session duration

Blue Mousee9cd40d2b87f
diff --git a/src/analytics/analytics.controller.ts b/src/analytics/analytics.controller.ts
index 8549ddff4..9132bf40b 100644
--- a/src/analytics/analytics.controller.ts
+++ b/src/analytics/analytics.controller.ts
@@ -822,7 +822,7 @@ export class AnalyticsController {
)
await redis.set(`hb:${pid}:${sessionID}`, 1, 'EX', HEARTBEAT_SID_LIFE_TIME)
- this.analyticsService.processInteractionSD(sessionID, pid)
+ await this.analyticsService.processInteractionSD(sessionID, pid)
}
// Log pageview event