@@ -4,6 +4,7 @@ import { useUserPreferences } from 'src/stores/preferences'
44import { isDevelopment } from 'src/utils/Environment'
55import { getAppVersion } from 'src/utils/Os'
66import AppStorage from './localStorage'
7+ import { identifySentryUser } from './sentry'
78
89enum Objects {
910 PAGE = 'Page' ,
@@ -120,6 +121,10 @@ export const setupIdentification = () => {
120121 if ( onboardingResult ?. title ) {
121122 identifyUserOccupation ( onboardingResult . title )
122123 }
124+ identifySentryUser ( {
125+ [ Attributes . LANGUAGES ] : userSelectedTags . map ( ( tag : any ) => tag . value ) ,
126+ [ Attributes . DISPLAY_LAYOUT ] : layout ,
127+ } )
123128}
124129
125130export const trackPageView = ( pageName : string , dndModeActive : boolean = false ) => {
@@ -408,10 +413,10 @@ export const trackUserDelete = () => {
408413 } )
409414}
410415
411- export const trackDisplayTypeChange = ( value : " grid" | " cards" ) => {
416+ export const trackDisplayTypeChange = ( value : ' grid' | ' cards' ) => {
412417 trackEvent ( {
413418 object : Objects . DISPLAY_LAYOUT ,
414- verb : Verbs . CHANGE ,
419+ verb : Verbs . CHANGE ,
415420 attributes : {
416421 [ Attributes . DISPLAY_LAYOUT ] : value ,
417422 } ,
@@ -421,7 +426,7 @@ export const trackDisplayTypeChange = (value: "grid" | "cards") => {
421426export const trackFeedScroll = ( ) => {
422427 trackEvent ( {
423428 object : Objects . FEED ,
424- verb : Verbs . SCROLL
429+ verb : Verbs . SCROLL ,
425430 } )
426431}
427432// Identification
@@ -459,7 +464,7 @@ export const identifyAdvBlocked = (blocked: boolean) => {
459464export const identifyUserStreak = ( value : number ) => {
460465 identifyUserProperty ( Attributes . STREAK , value )
461466}
462- export const identifyDisplayLayout = ( value : " grid" | " cards" ) => {
467+ export const identifyDisplayLayout = ( value : ' grid' | ' cards' ) => {
463468 identifyUserProperty ( Attributes . DISPLAY_LAYOUT , value )
464469}
465470// Private functions
0 commit comments