@@ -2176,6 +2176,10 @@ export enum ReplayFieldKey {
2176
2176
SEEN_BY_ME = 'seen_by_me' ,
2177
2177
URLS = 'urls' ,
2178
2178
URL = 'url' ,
2179
+ USER_GEO_CITY = 'user.geo.city' ,
2180
+ USER_GEO_COUNTRY_CODE = 'user.geo.country_code' ,
2181
+ USER_GEO_REGION = 'user.geo.region' ,
2182
+ USER_GEO_SUBDIVISION = 'user.geo.subdivision' ,
2179
2183
VIEWED_BY_ME = 'viewed_by_me' ,
2180
2184
}
2181
2185
@@ -2239,6 +2243,10 @@ export const REPLAY_FIELDS = [
2239
2243
FieldKey . USER_ID ,
2240
2244
FieldKey . USER_IP ,
2241
2245
FieldKey . USER_USERNAME ,
2246
+ ReplayFieldKey . USER_GEO_CITY ,
2247
+ ReplayFieldKey . USER_GEO_COUNTRY_CODE ,
2248
+ ReplayFieldKey . USER_GEO_REGION ,
2249
+ ReplayFieldKey . USER_GEO_SUBDIVISION ,
2242
2250
ReplayFieldKey . VIEWED_BY_ME ,
2243
2251
] ;
2244
2252
@@ -2345,6 +2353,12 @@ const REPLAY_FIELD_DEFINITIONS: Record<ReplayFieldKey, FieldDefinition> = {
2345
2353
kind : FieldKind . FIELD ,
2346
2354
valueType : FieldValueType . STRING ,
2347
2355
} ,
2356
+ [ ReplayFieldKey . USER_GEO_CITY ] : EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_CITY ] ,
2357
+ [ ReplayFieldKey . USER_GEO_COUNTRY_CODE ] :
2358
+ EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_COUNTRY_CODE ] ,
2359
+ [ ReplayFieldKey . USER_GEO_REGION ] : EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_REGION ] ,
2360
+ [ ReplayFieldKey . USER_GEO_SUBDIVISION ] :
2361
+ EVENT_FIELD_DEFINITIONS [ FieldKey . GEO_SUBDIVISION ] ,
2348
2362
[ ReplayFieldKey . VIEWED_BY_ME ] : {
2349
2363
desc : t ( 'Whether you have seen this replay before. Alias of seen_by_me (true/false)' ) ,
2350
2364
kind : FieldKind . FIELD ,
0 commit comments