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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user