Add city to IP-based geo (#11603)

This commit is contained in:
Eric Bailey
2026-08-28 16:01:54 -05:00
committed by GitHub
parent e39d308fb7
commit e1f75c2c01
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -117,6 +117,7 @@ const Context = createContext<AnalyticsBaseContextType>({
geolocation: device.get(['geolocationServiceResponse']) || {
countryCode: '',
regionCode: '',
city: '',
},
},
})
@@ -181,6 +182,7 @@ export function AnalyticsContext({
}
const deviceId = useDeviceId() ?? 'unknown'
const sessionId = useSessionId()
// only IP based, never GPS
const geolocation = useGeolocationServiceResponse()
const parentContext = useContext(Context)
/*