File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
packages/angular/cli/models Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,11 @@ export async function promptGlobalAnalytics(force = false) {
411
411
${ colors . yellow ( 'ng analytics off' ) }
412
412
` ) ;
413
413
console . log ( '' ) ;
414
+
415
+ // Send back a ping with the user `optin`.
416
+ const ua = new UniversalAnalytics ( AnalyticsProperties . AngularCliDefault , 'optin' ) ;
417
+ ua . pageview ( '/telemetry/optin' ) ;
418
+ await ua . flush ( ) ;
414
419
} else {
415
420
// Send back a ping with the user `optout`. This is the only thing we send.
416
421
const ua = new UniversalAnalytics ( AnalyticsProperties . AngularCliDefault , 'optout' ) ;
@@ -465,6 +470,11 @@ export async function promptProjectAnalytics(force = false): Promise<boolean> {
465
470
${ colors . yellow ( 'ng analytics project off' ) }
466
471
` ) ;
467
472
console . log ( '' ) ;
473
+
474
+ // Send back a ping with the user `optin`.
475
+ const ua = new UniversalAnalytics ( AnalyticsProperties . AngularCliDefault , 'optin' ) ;
476
+ ua . pageview ( '/telemetry/project/optin' ) ;
477
+ await ua . flush ( ) ;
468
478
} else {
469
479
// Send back a ping with the user `optout`. This is the only thing we send.
470
480
const ua = new UniversalAnalytics ( AnalyticsProperties . AngularCliDefault , 'optout' ) ;
You can’t perform that action at this time.
0 commit comments