@@ -33,7 +33,9 @@ import launchMongoShell from './commands/launchMongoShell';
33
33
import type SchemaTreeItem from './explorer/schemaTreeItem' ;
34
34
import { StatusView } from './views' ;
35
35
import { StorageController , StorageVariables } from './storage' ;
36
- import TelemetryService from './telemetry/telemetryService' ;
36
+ import TelemetryService , {
37
+ TelemetryEventTypes ,
38
+ } from './telemetry/telemetryService' ;
37
39
import type PlaygroundsTreeItem from './explorer/playgroundsTreeItem' ;
38
40
import PlaygroundResultProvider from './editors/playgroundResultProvider' ;
39
41
import WebviewController from './views/webviewController' ;
@@ -823,7 +825,7 @@ export default class MDBExtensionController implements vscode.Disposable {
823
825
this . _storageController . get ( StorageVariables . GLOBAL_SURVEY_SHOWN ) ===
824
826
surveyId ;
825
827
826
- // Show the overview page when it hasn't been show to the
828
+ // Show the survey when it hasn't been show to the
827
829
// user yet, and they have saved connections
828
830
// -> they haven't just started using this extension
829
831
if (
@@ -845,6 +847,13 @@ export default class MDBExtensionController implements vscode.Disposable {
845
847
) ;
846
848
if ( result ?. title === action ) {
847
849
void vscode . env . openExternal ( vscode . Uri . parse ( link ) ) ;
850
+ this . _telemetryService . track ( TelemetryEventTypes . SURVEY_CLICKED , {
851
+ survey_id : surveyId ,
852
+ } ) ;
853
+ } else {
854
+ this . _telemetryService . track ( TelemetryEventTypes . SURVEY_DISMISSED , {
855
+ survey_id : surveyId ,
856
+ } ) ;
848
857
}
849
858
850
859
// whether action was taken or the prompt dismissed, we won't show this again
0 commit comments