Skip to content

Commit f0fde44

Browse files
committed
Add a track to the new sandbox modal
1 parent ec5f113 commit f0fde44

File tree

1 file changed

+3
-0
lines changed
  • packages/app/src/app/pages/Dashboard/Content/CreateNewSandbox/Modal

1 file changed

+3
-0
lines changed

packages/app/src/app/pages/Dashboard/Content/CreateNewSandbox/Modal/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react';
22

3+
import track from '@codesandbox/common/lib/utils/analytics';
4+
35
import GithubLogo from 'react-icons/lib/go/mark-github';
46
import TerminalIcon from 'react-icons/lib/go/terminal';
57
import UploadIcon from 'react-icons/lib/go/cloud-upload';
@@ -24,6 +26,7 @@ export default class Modal extends React.PureComponent {
2426
};
2527

2628
selectTemplate = template => {
29+
track('New Sandbox Modal - Select Template', { template });
2730
this.props.createSandbox(template);
2831
};
2932

0 commit comments

Comments
 (0)