From 7abf7210b535d703dabe47a5fe91c1a58774f595 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 28 Aug 2026 15:30:58 -0500 Subject: [PATCH] APP-2990: Add city to analytics geolocation metadata --- src/analytics/index.tsx | 1 + src/geolocation/const.ts | 1 + src/geolocation/types.ts | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/analytics/index.tsx b/src/analytics/index.tsx index 07af41473e..2e13aab465 100644 --- a/src/analytics/index.tsx +++ b/src/analytics/index.tsx @@ -117,6 +117,7 @@ const Context = createContext({ geolocation: device.get(['geolocationServiceResponse']) || { countryCode: '', regionCode: '', + city: '', }, }, }) diff --git a/src/geolocation/const.ts b/src/geolocation/const.ts index 653e829bad..ea44e19d7e 100644 --- a/src/geolocation/const.ts +++ b/src/geolocation/const.ts @@ -9,4 +9,5 @@ export const GEOLOCATION_SERVICE_URL = `${GEOLOCATION_URL}/geolocation` export const FALLBACK_GEOLOCATION_SERVICE_RESPONSE: Geolocation = { countryCode: undefined, regionCode: undefined, + city: undefined, } diff --git a/src/geolocation/types.ts b/src/geolocation/types.ts index 979b4dd742..b496fe4917 100644 --- a/src/geolocation/types.ts +++ b/src/geolocation/types.ts @@ -1,6 +1,8 @@ export type Geolocation = { countryCode: string | undefined regionCode: string | undefined + /** Only populated by the IP-based geolocation service. */ + city?: string serviceGeolocation?: Geolocation deviceGeolocation?: Geolocation }