diff options
author | 2019-03-28 12:13:27 +0100 | |
---|---|---|
committer | 2019-03-28 12:13:27 +0100 | |
commit | eb57e4f787d06648dab2c473830dcfbfa168e00c (patch) | |
tree | 5340f3a9f4f181aa990f7a6261a752280fac6cef /src/components | |
parent | indicate any server interaction with spinners and infoboxes (diff) | |
download | ferdium-app-eb57e4f787d06648dab2c473830dcfbfa168e00c.tar.gz ferdium-app-eb57e4f787d06648dab2c473830dcfbfa168e00c.tar.zst ferdium-app-eb57e4f787d06648dab2c473830dcfbfa168e00c.zip |
add analytic events for workspace actions
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/layout/Sidebar.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index f7bacfe0f..4fa5e79de 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js | |||
@@ -6,7 +6,8 @@ import { observer } from 'mobx-react'; | |||
6 | 6 | ||
7 | import Tabbar from '../services/tabs/Tabbar'; | 7 | import Tabbar from '../services/tabs/Tabbar'; |
8 | import { ctrlKey } from '../../environment'; | 8 | import { ctrlKey } from '../../environment'; |
9 | import { workspaceStore } from '../../features/workspaces'; | 9 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../../features/workspaces'; |
10 | import { gaEvent } from '../../lib/analytics'; | ||
10 | 11 | ||
11 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
12 | settings: { | 13 | settings: { |
@@ -95,6 +96,7 @@ export default @observer class Sidebar extends Component { | |||
95 | onClick={() => { | 96 | onClick={() => { |
96 | toggleWorkspaceDrawer(); | 97 | toggleWorkspaceDrawer(); |
97 | this.updateToolTip(); | 98 | this.updateToolTip(); |
99 | gaEvent(GA_CATEGORY_WORKSPACES, 'toggleDrawer', 'sidebar'); | ||
98 | }} | 100 | }} |
99 | className={`sidebar__button sidebar__button--workspaces ${isWorkspaceDrawerOpen ? 'is-active' : ''}`} | 101 | className={`sidebar__button sidebar__button--workspaces ${isWorkspaceDrawerOpen ? 'is-active' : ''}`} |
100 | data-tip={`${intl.formatMessage(workspaceToggleMessage)} (${ctrlKey}+Shift+D)`} | 102 | data-tip={`${intl.formatMessage(workspaceToggleMessage)} (${ctrlKey}+Shift+D)`} |