Skip to content

Commit

Permalink
commenting out analytics for diff ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
dumathane committed Nov 13, 2024
1 parent 324c8b5 commit 75780ae
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
38 changes: 19 additions & 19 deletions VAMobile/src/constants/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -630,25 +630,25 @@ export const Events = {
name: 'vama_gender_id_success',
}
},
vama_feedback_page_entered: (): Event => {
return {
name: 'vama_feedback_page_entered',
}
},
vama_feedback_page_closed: (): Event => {
return {
name: 'vama_feedback_page_closed',
}
},
vama_feedback_submitted: (taskCompleted: string, satisfaction: string): Event => {
return {
name: 'vama_feedback_submitted',
params: {
taskCompleted,
satisfaction,
},
}
},
// vama_feedback_page_entered: (): Event => {
// return {
// name: 'vama_feedback_page_entered',
// }
// },
// vama_feedback_page_closed: (): Event => {
// return {
// name: 'vama_feedback_page_closed',
// }
// },
// vama_feedback_submitted: (taskCompleted: string, satisfaction: string): Event => {
// return {
// name: 'vama_feedback_submitted',
// params: {
// taskCompleted,
// satisfaction,
// },
// }
// },
vama_givefb_close: (screenName: string): Event => {
return {
name: 'vama_givefb_close',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ import {
TextView,
VAModalPicker,
} from 'components'
import { Events } from 'constants/analytics'
import { NAMESPACE } from 'constants/namespaces'
import { logAnalyticsEvent } from 'utils/analytics'
import { useBeforeNavBackListener, useTheme } from 'utils/hooks'
import { useTheme } from 'utils/hooks'

type InAppFeedbackScreenProps = StackScreenProps<RootNavStackParamList, 'InAppFeedback'>

Expand All @@ -31,9 +29,9 @@ function InAppFeedbackScreen({ navigation, route }: InAppFeedbackScreenProps) {
const task = route?.params?.task || ''
const [taskSelected, setTaskSelected] = useState(task)

useBeforeNavBackListener(navigation, () => {
logAnalyticsEvent(Events.vama_feedback_page_closed())
})
// useBeforeNavBackListener(navigation, () => {
// logAnalyticsEvent(Events.vama_feedback_page_closed())
// })

const onChange = (value: string): void => {
setTaskCompleted(value)
Expand All @@ -44,7 +42,7 @@ function InAppFeedbackScreen({ navigation, route }: InAppFeedbackScreenProps) {
}

const onSubmit = (): void => {
logAnalyticsEvent(Events.vama_feedback_submitted(taskCompleted, satisfaction))
// logAnalyticsEvent(Events.vama_feedback_submitted(taskCompleted, satisfaction))
navigation.goBack()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function SettingsScreen({ navigation }: SettingsScreenProps) {
}

const onFeedback = () => {
logAnalyticsEvent(Events.vama_feedback_page_entered())
// logAnalyticsEvent(Events.vama_feedback_page_entered())
navigateTo('InAppFeedback')
}

Expand Down

0 comments on commit 75780ae

Please sign in to comment.