📈 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
using iso_code for country instead of name
Blue Mouse00874af7b409
diff --git a/apps/production/src/analytics/analytics.service.ts b/apps/production/src/analytics/analytics.service.tsindex e5f3ec795..2ae61fb03 100644--- a/apps/production/src/analytics/analytics.service.ts+++ b/apps/production/src/analytics/analytics.service.ts@@ -825,7 +825,8 @@ export class AnalyticsService {// Stage 1: Using IP address based geo lookupconst data = lookup.get(ip)- const country = data?.country?.names?.en+ const country = data?.country?.iso_code+ // TODO: Add city overrides, for example, Colinton -> Edinburgh, etc.const city = data?.city?.names?.enconst region = data?.subdivisions?.[0]?.names?.en