1
0
mirror of synced 2025-12-21 02:46:50 -05:00

Add os preference tracking (#20740)

* Set cookie on os switch

* Set os based on cookie value

* Add os preference schema details

* Send os preference on page request

* Send os preference on os switch
This commit is contained in:
Robert Sese
2021-08-09 17:07:27 -05:00
committed by GitHub
parent 3904ab7935
commit 6f6cf56c20
3 changed files with 38 additions and 6 deletions

View File

@@ -100,6 +100,7 @@ export function sendEvent({ type, version = '1.0.0', ...props }: SendEventProps)
// Preference information
application_preference: Cookies.get('toolPreferred'),
color_mode_preference: getColorModePreference(),
os_preference: Cookies.get('osPreferred'),
},
...props,