Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

store country iso instead

Bill Yang5cd48db3a45b
diff --git a/server/src/actions/pageviewQueue.ts b/server/src/actions/pageviewQueue.ts
index cba99ca12..63e8c5b9b 100644
--- a/server/src/actions/pageviewQueue.ts
+++ b/server/src/actions/pageviewQueue.ts
@@ -69,7 +69,7 @@ class PageviewQueue {
screen_width: pv.screenWidth || 0,
screen_height: pv.screenHeight || 0,
device_type: getDeviceType(pv.screenWidth, pv.screenHeight),
- country: geoData[pv.ipAddress]?.data?.country || "",
+ country: geoData[pv.ipAddress]?.data?.countryIso || "",
// countryIso: geoData[pv.ip]?.data?.countryIso || null,
}));