You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Googles analytics question keep showing in a specific condition.
🔬 Minimal Reproduction
docker run -it --rm node:lts bash
export NG_CLI_ANALYTICS=ci
npm install @angular/[email protected] -g
ng new app --routing --style css --skip-git
cd app
ng version
After the last ng version, the question show up again:
root@60d07288e815:/app# ng version
? Would you like to share anonymous usage data about this project with the Angular Team at
Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more
details and how to change this setting, see http://angular.io/analytics. (y/N)
Actually, all the ng commands will show this.
🔥 Exception or Error
I expected to not seeing the Googles analytics question when global config has been set.
Also, this should obey NG_CLI_ANALYTICS environment variable setting as well.
It should be noted that ng analytics off also issues a prompt to collect analytics:
$ node ./node_modules/@angular/cli/bin/ng analytics off
Would you like to share anonymous usage data about this project with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N)
It should be noted that ng analytics off also issues a prompt to collect analytics:
$ node ./node_modules/@angular/cli/bin/ng analytics off
Would you like to share anonymous usage data about this project with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N)
As far as I know that only takes care of the issue on the client, not on the build pipeline. I would like it if it would save to the angular.json and also get from there whether it should use analytics or not. Or provide a (better) way to either accept or deny it when running build commands
THANKYOU!!!!
off worked for installation, but NOT for build --prod
"false" works for both, for me on angular 10.
ng analytics off works if I type it, but not from a bash script :(.
Cabe señalar que ng analytics offtambién emite un mensaje para recopilar análisis:
$ node ./node_modules/@angular/cli/bin/ng analytics off
Would you like to share anonymous usage data about this project with the Angular Team at Google under Google’s Privacy Policy at https://policies.google.com/privacy? For more details and how to change this setting, see http://angular.io/analytics. (y/N)
¿Uno que debe responder en esa pregunta que te genero ahí?
Activity
SanderElias commentedon Jan 29, 2020
@doggy8088 Can you try:
export NG_CLI_ANALYTICS=off offand give it another go?
doggy8088 commentedon Jan 29, 2020
@SanderElias The
export NG_CLI_ANALYTICS=offworks. Thanks!Does the
civalue should disable prompt as well?SanderElias commentedon Jan 29, 2020
@doggy8088 Yeah, I think there is a bug here.
@clydin If we set the var to
cithe normal expectation would be that there would be no prompts.paulyhedral commentedon Feb 11, 2020
It should be noted that
ng analytics offalso issues a prompt to collect analytics:Martinspire commentedon Mar 12, 2020
As far as I know that only takes care of the issue on the client, not on the build pipeline. I would like it if it would save to the angular.json and also get from there whether it should use analytics or not. Or provide a (better) way to either accept or deny it when running build commands
Tyranwyn commentedon May 21, 2020
In my pipeline this keeps blocking my build. I'm using NG_CLI_ANALYTICS: ci. Please fix this.
jwango commentedon May 29, 2020
I'm also seeing this in Angular 9 with my pipeline. Also setting the environment variable inside a docker container but still getting the prompt.
jcesarmobile commentedon Jun 2, 2020
export NG_CLI_ANALYTICS=offdidn't work for me, butexport NG_CLI_ANALYTICS="false"doesbtsimonh commentedon Jul 10, 2020
THANKYOU!!!!
off worked for installation, but NOT for build --prod
"false" works for both, for me on angular 10.
ng analytics off works if I type it, but not from a bash script :(.
hope-himalaya-ahuja commentedon Jan 16, 2021
I've tried every suggested solution for my circle ci build nothing seems to be working :(
JuanMorenoC commentedon Apr 8, 2021
¿Uno que debe responder en esa pregunta que te genero ahí?
fix(@angular/cli): don't prompt for analytics when running `ng analyt…
angular-automatic-lock-bot commentedon Apr 14, 2022
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.