diff --git a/lib/common/declarations.d.ts b/lib/common/declarations.d.ts index aa614c0a7c..676b4fac34 100644 --- a/lib/common/declarations.d.ts +++ b/lib/common/declarations.d.ts @@ -851,7 +851,6 @@ interface IAnalyticsSettingsService { canDoRequest(): Promise; getUserId(): Promise; getClientName(): string; - getPrivacyPolicyLink(): string; /** * Gets current user sessions count. * @param {string} projectName The analytics project id for which the counter should be taken. diff --git a/lib/common/test/unit-tests/analytics-service.ts b/lib/common/test/unit-tests/analytics-service.ts index 9625e6446a..714d04bc31 100644 --- a/lib/common/test/unit-tests/analytics-service.ts +++ b/lib/common/test/unit-tests/analytics-service.ts @@ -62,9 +62,6 @@ function createTestInjector(testScenario: ITestScenario): IInjector { getClientName: () => { return "UnitTests"; }, - getPrivacyPolicyLink: () => { - return "privacy policy link"; - }, getUserId: () => { return Promise.resolve("UnitTestsUserId"); }, diff --git a/lib/services/analytics-settings-service.ts b/lib/services/analytics-settings-service.ts index 97f5398c3c..39c441e008 100644 --- a/lib/services/analytics-settings-service.ts +++ b/lib/services/analytics-settings-service.ts @@ -48,10 +48,6 @@ class AnalyticsSettingsService implements IAnalyticsSettingsService { return "" + this.$staticConfig.CLIENT_NAME_ALIAS.cyan.bold; } - public getPrivacyPolicyLink(): string { - return "http://www.telerik.com/company/privacy-policy"; - } - public async getUserSessionsCount(projectName: string): Promise { const sessionsCountForProject = await this.$userSettingsService.getSettingValue< number diff --git a/lib/services/analytics/analytics-service.ts b/lib/services/analytics/analytics-service.ts index 9bcdb66c31..32df2030ae 100644 --- a/lib/services/analytics/analytics-service.ts +++ b/lib/services/analytics/analytics-service.ts @@ -69,14 +69,7 @@ export class AnalyticsService implements IAnalyticsService, IDisposable { )) && isInteractive() ) { - this.$logger.info( - "Do you want to help us improve " + - this.$analyticsSettingsService.getClientName() + - " by automatically sending anonymous usage statistics? We will not use this information to identify or contact you." + - " You can read our official Privacy Policy at" - ); - - const message = this.$analyticsSettingsService.getPrivacyPolicyLink(); + const message = `Do you want to help us improve ${this.$analyticsSettingsService.getClientName()} by automatically sending anonymous usage statistics? We will not use this information to identify or contact you.`; trackFeatureUsage = await this.$prompter.confirm(message, () => true); await this.setStatus( this.$staticConfig.TRACK_FEATURE_USAGE_SETTING_NAME,