APP-2990: Add city to analytics geolocation metadata

This commit is contained in:
Eric Bailey
2026-08-28 15:30:58 -05:00
parent e39d308fb7
commit 7abf7210b5
3 changed files with 4 additions and 0 deletions
+1
View File
@@ -117,6 +117,7 @@ const Context = createContext<AnalyticsBaseContextType>({
geolocation: device.get(['geolocationServiceResponse']) || { geolocation: device.get(['geolocationServiceResponse']) || {
countryCode: '', countryCode: '',
regionCode: '', regionCode: '',
city: '',
}, },
}, },
}) })
+1
View File
@@ -9,4 +9,5 @@ export const GEOLOCATION_SERVICE_URL = `${GEOLOCATION_URL}/geolocation`
export const FALLBACK_GEOLOCATION_SERVICE_RESPONSE: Geolocation = { export const FALLBACK_GEOLOCATION_SERVICE_RESPONSE: Geolocation = {
countryCode: undefined, countryCode: undefined,
regionCode: undefined, regionCode: undefined,
city: undefined,
} }
+2
View File
@@ -1,6 +1,8 @@
export type Geolocation = { export type Geolocation = {
countryCode: string | undefined countryCode: string | undefined
regionCode: string | undefined regionCode: string | undefined
/** Only populated by the IP-based geolocation service. */
city?: string
serviceGeolocation?: Geolocation serviceGeolocation?: Geolocation
deviceGeolocation?: Geolocation deviceGeolocation?: Geolocation
} }