Skip to content

Commit 6aa1706

Browse files
committed
refactor(@angular/cli): update analytics prompt copy
Swapping `anonymous` for `pseudonymous` to align with privacy communication guidelines. (cherry picked from commit da271ad)
1 parent ccec469 commit 6aa1706

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/angular/cli/lib/config/workspace-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
"analytics": {
7474
"type": ["boolean", "string"],
75-
"description": "Share anonymous usage data with the Angular Team at Google."
75+
"description": "Share pseudonymous usage data with the Angular Team at Google."
7676
},
7777
"analyticsSharing": {
7878
"type": "object",
@@ -147,7 +147,7 @@
147147
},
148148
"analytics": {
149149
"type": ["boolean", "string"],
150-
"description": "Share anonymous usage data with the Angular Team at Google."
150+
"description": "Share pseudonymous usage data with the Angular Team at Google."
151151
},
152152
"analyticsSharing": {
153153
"type": "object",

packages/angular/cli/src/analytics/analytics.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ export async function promptAnalytics(global: boolean, force = false): Promise<b
103103
type: 'confirm',
104104
name: 'analytics',
105105
message: tags.stripIndents`
106-
Would you like to share anonymous usage data about this project with the Angular Team at
107-
Google under Googles Privacy Policy at https://policies.google.com/privacy. For more
106+
Would you like to share pseudonymous usage data about this project with the Angular Team
107+
at Google under Google's Privacy Policy at https://policies.google.com/privacy. For more
108108
details and how to change this setting, see https://angular.io/analytics.
109109
110110
`,
@@ -118,7 +118,7 @@ export async function promptAnalytics(global: boolean, force = false): Promise<b
118118
console.log('');
119119
console.log(
120120
tags.stripIndent`
121-
Thank you for sharing anonymous usage data. Should you change your mind, the following
121+
Thank you for sharing pseudonymous usage data. Should you change your mind, the following
122122
command will disable this feature entirely:
123123
124124
${colors.yellow(`ng analytics disable${global ? ' --global' : ''}`)}

tests/legacy-cli/e2e/tests/misc/ask-analytics-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { execWithEnv } from '../../utils/process';
22
import { mockHome } from '../../utils/utils';
33

4-
const ANALYTICS_PROMPT = /Would you like to share anonymous usage data/;
4+
const ANALYTICS_PROMPT = /Would you like to share pseudonymous usage data/;
55

66
export default async function () {
77
// CLI should prompt for analytics permissions.

0 commit comments

Comments
 (0)