Skip to content

Commit aede7ca

Browse files
authored
feat: Add screen dimensions and UA as person property (#30222)
1 parent 9030702 commit aede7ca

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

frontend/src/lib/taxonomy.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ const PERSON_PROPERTIES_ADAPTED_FROM_EVENT = new Set([
4646
'$os_version',
4747
'$referring_domain',
4848
'$referrer',
49+
'$screen_height',
50+
'$screen_width',
51+
'$viewport_height',
52+
'$viewport_width',
53+
'$raw_user_agent',
4954
...CAMPAIGN_PROPERTIES,
5055
])
5156

plugin-server/src/utils/db/utils.ts

+5
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ export const eventToPersonProperties = new Set([
103103
'$os_version',
104104
'$referring_domain',
105105
'$referrer',
106+
'$screen_height',
107+
'$screen_width',
108+
'$viewport_height',
109+
'$viewport_width',
110+
'$raw_user_agent',
106111

107112
...campaignParams,
108113
])

posthog/taxonomy/taxonomy.py

+5
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ class CoreFilterDefinition(TypedDict):
5050
"$os_version",
5151
"$referring_domain",
5252
"$referrer",
53+
"$screen_height",
54+
"$screen_width",
55+
"$viewport_height",
56+
"$viewport_width",
57+
"$raw_user_agent",
5358
*CAMPAIGN_PROPERTIES,
5459
}
5560

0 commit comments

Comments
 (0)