diff options
author | 2019-03-28 12:13:27 +0100 | |
---|---|---|
committer | 2019-03-28 12:13:27 +0100 | |
commit | eb57e4f787d06648dab2c473830dcfbfa168e00c (patch) | |
tree | 5340f3a9f4f181aa990f7a6261a752280fac6cef /src/features/workspaces/components/CreateWorkspaceForm.js | |
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/features/workspaces/components/CreateWorkspaceForm.js')
-rw-r--r-- | src/features/workspaces/components/CreateWorkspaceForm.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/features/workspaces/components/CreateWorkspaceForm.js b/src/features/workspaces/components/CreateWorkspaceForm.js index 8b5039246..a8f07d0d5 100644 --- a/src/features/workspaces/components/CreateWorkspaceForm.js +++ b/src/features/workspaces/components/CreateWorkspaceForm.js | |||
@@ -6,6 +6,8 @@ import { Input, Button } from '@meetfranz/forms'; | |||
6 | import injectSheet from 'react-jss'; | 6 | import injectSheet from 'react-jss'; |
7 | import Form from '../../../lib/Form'; | 7 | import Form from '../../../lib/Form'; |
8 | import { required } from '../../../helpers/validation-helpers'; | 8 | import { required } from '../../../helpers/validation-helpers'; |
9 | import { gaEvent } from '../../../lib/analytics'; | ||
10 | import { GA_CATEGORY_WORKSPACES } from '../index'; | ||
9 | 11 | ||
10 | const messages = defineMessages({ | 12 | const messages = defineMessages({ |
11 | submitButton: { | 13 | submitButton: { |
@@ -63,7 +65,9 @@ class CreateWorkspaceForm extends Component { | |||
63 | form.submit({ | 65 | form.submit({ |
64 | onSuccess: async (f) => { | 66 | onSuccess: async (f) => { |
65 | const { onSubmit } = this.props; | 67 | const { onSubmit } = this.props; |
66 | onSubmit(f.values()); | 68 | const values = f.values(); |
69 | onSubmit(values); | ||
70 | gaEvent(GA_CATEGORY_WORKSPACES, 'create', values.name); | ||
67 | }, | 71 | }, |
68 | }); | 72 | }); |
69 | } | 73 | } |