diff options
Diffstat (limited to 'webapp/components/sidebar_right.jsx')
-rw-r--r-- | webapp/components/sidebar_right.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/components/sidebar_right.jsx b/webapp/components/sidebar_right.jsx index da7ff818d..fb120337a 100644 --- a/webapp/components/sidebar_right.jsx +++ b/webapp/components/sidebar_right.jsx @@ -12,6 +12,7 @@ import PreferenceStore from 'stores/preference_store.jsx'; import WebrtcStore from 'stores/webrtc_store.jsx'; import {getFlaggedPosts} from 'actions/post_actions.jsx'; +import {trackEvent} from 'actions/diagnostics_actions.jsx'; import * as Utils from 'utils/utils.jsx'; import Constants from 'utils/constants.jsx'; @@ -71,6 +72,10 @@ export default class SidebarRight extends React.Component { const isOpen = this.state.searchVisible || this.state.postRightVisible; const willOpen = nextState.searchVisible || nextState.postRightVisible; + if (!isOpen && willOpen) { + trackEvent('ui', 'ui_rhs_opened'); + } + if (isOpen !== willOpen) { PostStore.jumpPostsViewSidebarOpen(); } |