@@ -8,22 +8,19 @@ Each command creates a pageview with the path `/command/${commandName}/${subcomm
88` ng generate component my-component --dryRun ` would create a page view with the path
99` /command/generate/@schematics_angular/component ` .
1010
11- Additionally, only the Architect configuration of ` default ` , ` production ` and ` staging ` will be
12- logged. The project name will be removed, and if the configuration is different than the three
13- basic ones, it will be replaced with ` _ ` .
11+ We use page views to keep track of sessions more effectively, and to tag events to a page.
12+
13+ Project names and target names will be removed .
1414The command ` ng run some-project:lint:some-configuration ` will create a page view with the path
15- ` /command/run/_:lint:_ ` . Configurations are only used when actually mentioned on the command
16- line, thus the command ` ng build some-project --prod ` will create a page view of
17- ` /command/build/_:default ` (with the ` prod ` flag), while ` ng build some-project:some-conf ` will log
18- ` /command/build/_:_ ` .
15+ ` /command/run ` .
1916
2017# Dimensions
21- Google Analytics Custom Dimensions are used to track flag values. These dimensions are aggregated
22- automatically on the backend.
18+ Google Analytics Custom Dimensions are used to track system values and flag values. These
19+ dimensions are aggregated automatically on the backend.
2320
2421One dimension per flag, and although technically there can be an overlap between 2 commands, for
25- simplicity it should remain unique across all CLI commands. These are numbers added to our own
26- ` schema.json ` files. Dimensions are not to be used for anything else .
22+ simplicity it should remain unique across all CLI commands. The dimension is the value of the
23+ ` x-user-analytics ` field in the ` schema.json ` files .
2724
2825To create a new dimension (tracking a new flag):
2926
@@ -41,43 +38,60 @@ PROJECT NAME TO BUILD OR A MODULE NAME.**
4138Note: There's a limit of 20 custom dimensions.
4239
4340### List Of All Dimensions
44- | Id | Category | Flag | Type | File / Description |
45- | :---:| :---| :---| :---| ---:|
46- | 1 | ` generate ` , ` new ` | ` --dryRun ` | ` Boolean ` | |
47- | 2 | ` generate ` , ` new ` | ` --force ` | ` Boolean ` | |
48- | 3 | ` generate ` , ` new ` | ` --interactive ` | ` Boolean ` | |
49- | 4 | ` generate ` | ` --skipInstall ` | ` Boolean ` | |
50- | 5 | ` generate ` | ` --style ` | ` String ` | |
51- | 6 | ` add ` | ` --collection ` | ` String ` | Only for packages that we control (see safelist in ` add-impl.ts ` ). |
52- | 7 | ` build ` , ` serve ` | ` --buildEventLog ` | ` Boolean ` | If the flag was used (does not report its value). See ` build-impl.ts ` . |
53- | 8 | ` generate ` , ` new ` | ` --enableIvy ` | ` Boolean ` | |
54- | 9 | ` generate ` | ` --inlineStyle ` | ` Boolean ` | |
55- | 10 | ` generate ` | ` --inlineTemplate ` | ` Boolean ` | |
56- | 11 | ` generate ` | ` --viewEncapsulation ` | ` String ` | |
57- | 12 | ` generate ` | ` --skipTests ` | ` Boolean ` | |
58- | 13 | ` build ` | ` --aot ` | ` Boolean ` | |
59- | 14 | ` generate ` | ` --minimal ` | ` Boolean ` | |
60- | 15 | ` generate ` | ` --lintFix ` | ` Boolean ` | |
61- | 16 | ` build ` | ` --optimization ` | ` Boolean ` | |
62- | 17 | ` generate ` | ` --routing ` | ` Boolean ` | |
63- | 18 | ` generate ` | ` --skipImport ` | ` Boolean ` | |
64- | 19 | ` generate ` | ` --export ` | ` Boolean ` | |
65- | 20 | ` generate ` | ` --entryComponent ` | ` Boolean ` | |
41+ <!-- DIMENSIONS_TABLE_BEGIN-->
42+ | Id | Flag | Type |
43+ | :---:| :---| :---|
44+ | 1 | ` CPU Count ` | ` number ` |
45+ | 2 | ` CPU Speed ` | ` number ` |
46+ | 3 | ` RAM (In MB) ` | ` number ` |
47+ | 4 | ` Node Version ` | ` number ` |
48+ | 5 | ` Flag: --style ` | ` string ` |
49+ | 6 | ` --collection ` | ` string ` |
50+ | 7 | ` --buildEventLog ` | ` boolean ` |
51+ | 8 | ` Flag: --enableIvy ` | ` boolean ` |
52+ | 9 | ` Flag: --inlineStyle ` | ` boolean ` |
53+ | 10 | ` Flag: --inlineTemplate ` | ` boolean ` |
54+ | 11 | ` Flag: --viewEncapsulation ` | ` string ` |
55+ | 12 | ` Flag: --skipTests ` | ` boolean ` |
56+ | 13 | ` Flag: --aot ` | ` boolean ` |
57+ | 14 | ` Flag: --minimal ` | ` boolean ` |
58+ | 15 | ` Flag: --lintFix ` | ` boolean ` |
59+ | 16 | ` Flag: --optimization ` | ` boolean ` |
60+ | 17 | ` Flag: --routing ` | ` boolean ` |
61+ | 18 | ` Flag: --skipImport ` | ` boolean ` |
62+ | 19 | ` Flag: --export ` | ` boolean ` |
63+ | 20 | ` Build Errors (comma separated) ` | ` string ` |
64+ <!-- DIMENSIONS_TABLE_END-->
6665
6766# Metrics
6867
6968### List of All Metrics
70- | Id | Type | Description |
71- | :---:| :-----| -------------|
72- | 1 | ` Number ` | CPU count |
73- | 2 | ` Number ` | Average CPU speed |
74- | 3 | ` Number ` | RAM Count |
75- | 4 | ` Number ` | Node Version (Major.Minor) |
69+ <!-- METRICS_TABLE_BEGIN-->
70+ | Id | Flag | Type |
71+ | :---:| :---| :---|
72+ | 1 | ` UNUSED_1 ` | ` none ` |
73+ | 2 | ` UNUSED_2 ` | ` none ` |
74+ | 3 | ` UNUSED_3 ` | ` none ` |
75+ | 4 | ` UNUSED_4 ` | ` none ` |
76+ | 5 | ` Build Time ` | ` number ` |
77+ | 6 | ` NgOnInit Count ` | ` number ` |
78+ | 7 | ` Initial Chunk Size ` | ` number ` |
79+ | 8 | ` Total Chunk Count ` | ` number ` |
80+ | 9 | ` Total Chunk Size ` | ` number ` |
81+ | 10 | ` Lazy Chunk Count ` | ` number ` |
82+ | 11 | ` Lazy Chunk Size ` | ` number ` |
83+ | 12 | ` Asset Count ` | ` number ` |
84+ | 13 | ` Asset Size ` | ` number ` |
85+ | 14 | ` Polyfill Size ` | ` number ` |
86+ | 15 | ` Css Size ` | ` number ` |
87+ <!-- METRICS_TABLE_END-->
7688
7789# Operating System and Node Version
7890A User Agent string is built to "fool" Google Analytics into reading the Operating System and
7991version fields from it. The base dimensions are used for those.
8092
93+ Node version is our App ID, but a dimension is also used to get the numeric MAJOR.MINOR of node.
94+
8195# Debugging
8296Using ` DEBUG=universal-analytics ` will report all calls to the universal-analytics library,
8397including queuing events and sending them to the server.
0 commit comments