2019-03-18 17:19:54 -04:00
|
|
|
# Usage Metrics Gathering
|
|
|
|
You can help the Angular Team to prioritize features and improvements by permitting the Angular
|
|
|
|
team to send command-line command usage statistics to Google. The Angular Team does not collect
|
|
|
|
usage statistics unless you explicitly opt in during the Angular CLI installation or upgrade.
|
|
|
|
|
|
|
|
## What is collected?
|
|
|
|
Usage analytics include the commands and selected flags for each execution. Usage analytics may
|
|
|
|
include the following information:
|
|
|
|
|
|
|
|
- Your operating system (Mac, Linux distribution, Windows) and its version.
|
|
|
|
- Number of CPUs, amount of RAM.
|
|
|
|
- Node and Angular CLI version (local version only).
|
|
|
|
- How long each command took to initialize and execute.
|
|
|
|
- Command name that was run.
|
2020-09-23 16:23:49 -04:00
|
|
|
- For Schematics commands (add, generate, new and update), a list of selected flags.
|
2019-03-18 17:19:54 -04:00
|
|
|
- For build commands (build, serve), the number and size of bundles (initial and lazy),
|
|
|
|
compilation units, the time it took to build and rebuild, and basic Angular-specific
|
2019-05-28 13:41:52 -04:00
|
|
|
API usage.
|
2019-03-18 17:19:54 -04:00
|
|
|
- Error code of exceptions and crash data. No stack trace is collected.
|
|
|
|
|
|
|
|
Only Angular owned and developed schematics and builders are reported. Third-party schematics and
|
|
|
|
builders do not send data to the Angular Team.
|
|
|
|
|
|
|
|
## Opting in
|
|
|
|
When installing the Angular CLI or upgrading an existing version, you are prompted to allow global
|
|
|
|
collection of usage statistics. If you say no or skip the prompt, no data is collected.
|
|
|
|
|
|
|
|
Starting with version 8, we added the `analytics` command to the CLI. You can change your opt-in
|
|
|
|
decision at any time using this command.
|
|
|
|
|
|
|
|
### Disabling usage analytics
|
|
|
|
To disable analytics gathering, run the following command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Disable all usage analytics.
|
|
|
|
ng analytics off
|
|
|
|
```
|
|
|
|
|
|
|
|
### Enabling usage analytics
|
|
|
|
To enable usage analytics, run the following command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Enable all usage analytics.
|
|
|
|
ng analytics on
|
|
|
|
```
|
|
|
|
|
|
|
|
### Prompting
|
|
|
|
To prompt the user again about usage analytics, run the following command:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Prompt for all usage analytics.
|
|
|
|
ng analytics prompt
|
|
|
|
```
|