📈 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
Error tracking -> getGeoDetails: pass headers
Blue Mousea02e003dcd3e
diff --git a/apps/selfhosted/src/analytics/analytics.controller.ts b/apps/selfhosted/src/analytics/analytics.controller.tsindex cbb7f2dac..417aea6c0 100644--- a/apps/selfhosted/src/analytics/analytics.controller.ts+++ b/apps/selfhosted/src/analytics/analytics.controller.ts@@ -1483,7 +1483,7 @@ export class AnalyticsController {await this.analyticsService.validate(errorDTO, origin, 'error', ip)- const { city, region, country } = getGeoDetails(ip, errorDTO.tz)+ const { city, region, country } = getGeoDetails(ip, errorDTO.tz, headers)const ua = UAParser(userAgent)const dv = ua.device.type || 'desktop'