Skip to content

Commit

Permalink
added: track timing modal
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-8 committed Nov 28, 2024
1 parent 1015e57 commit 6630fd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/navigation/checkout/components/TimeRangeChangedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useGetOrderTimingQuery } from '../../../redux/api/slice';
import { useNavigation } from '@react-navigation/native';
import { useIsModalVisible } from '../../../hooks/useIsModalVisible';
import tracker from '../../../analytics/Tracker';
import { DatadogLogger } from '../../../Datadog'

const styles = StyleSheet.create({
modalContent: {
Expand Down Expand Up @@ -140,6 +141,7 @@ export default function TimeRangeChangedModal() {
isVisible={isModalVisible}
onModalHide={onModalHide}
onModalShow={() => {
DatadogLogger.info('TimeRangeChangedModal opened');
tracker.logEvent('Checkout', 'openTimeRangeChangedModal');
}}>
<View
Expand Down

0 comments on commit 6630fd1

Please sign in to comment.