{ "id": "analytics", "title": "Usage Metrics Gathering", "contents": "\n\n\n\n
\n

Usage Metrics Gatheringlink

\n

You can help the Angular Team to prioritize features and improvements by permitting the Angular\nteam to send command-line command usage statistics to Google. The Angular Team does not collect\nusage statistics unless you explicitly opt in during the Angular CLI installation or upgrade.

\n

What is collected?link

\n

Usage analytics include the commands and selected flags for each execution. Usage analytics may\ninclude the following information:

\n\n

Only Angular owned and developed schematics and builders are reported. Third-party schematics and\nbuilders do not send data to the Angular Team.

\n

Opting inlink

\n

When installing the Angular CLI or upgrading an existing version, you are prompted to allow global\ncollection of usage statistics. If you say no or skip the prompt, no data is collected.

\n

Starting with version 8, we added the analytics command to the CLI. You can change your opt-in\ndecision at any time using this command.

\n

Disabling usage analyticslink

\n

To disable analytics gathering, run the following command:

\n\n# Disable all usage analytics.\nng analytics off\n\n

Enabling usage analyticslink

\n

To enable usage analytics, run the following command:

\n\n# Enable all usage analytics.\nng analytics on\n\n

Promptinglink

\n

To prompt the user again about usage analytics, run the following command:

\n\n# Prompt for all usage analytics.\nng analytics prompt\n\n\n \n
\n\n\n" }