Skip to content

Commit

Permalink
Improve analytics tracking for multy-selects
Browse files Browse the repository at this point in the history
  • Loading branch information
alexstotsky committed Apr 7, 2024
1 parent f4c1c41 commit 9b2abde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/MultiSelect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { MultiSelect as BlueprintMultiSelect } from '@blueprintjs/select'

import Icon from 'icons'
import { tracker } from 'utils/trackers'
import { getSourceFromPathName } from 'utils/browser'

import { propTypes, defaultProps } from './MultiSymbolSelector.props'

Expand All @@ -22,7 +23,7 @@ class MultiSelect extends PureComponent {

onToggle = (isOpen) => {
const { type } = this.props
tracker.trackEvent(type)
tracker.trackEvent(type, getSourceFromPathName())
this.setState({ isOpen })
}

Expand Down

0 comments on commit 9b2abde

Please sign in to comment.