Description
🚀 Feature request
Command
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Description
Hey all, I'm trying to set up analytics sharing to get some local build timings from the engineers in my org. It's quite cool and has the potential to be very useful, but I ran into a few issues:
🐞 Bug (ng config
) - The JSON schema for cli.analyticsSharing.tracking
is wrong/overly restrictive
It currently enforces tracking IDs start with GA-
, whereas my tracking ID is UA-XXXXX-X
(and indeed the docs give a UA-
tracking ID as an example). Google Analytics 4 has fully numeric IDs as well.
📚 Docs - https://angular.io/cli/usage-analytics-gathering#per-user-tracking is out of date
It mentions per-user tracking and makes it seem optional, but it's not actually optional - shared tracking doesn't run if user is unset. The field is also uuid
, and not user
like the docs say. It's also not actually possible to disable the tracking via ng config
, as --remove
doesn't exist anymore and schema validation prevents setting to undefined/null.
🚀 Feature request - report AOT
as a custom dimension like Ivy (and not just a CLI flag)
https://github.com/angular/angular-cli/blob/master/docs/design/analytics.md suggests that usage of the --aot
flag is passed to pageview analytics. I'm not sure if this is actually usable anymore due to changes to the CLI, but either way - it would be nice if all reporting (especially build timing event
s) could report AOT status.
Specifically, we have configurations (rather than flags) that allow developers to disable AOT for speed, which obviously results in dramatically different build/rebuild times, and splitting by AOT would make the data more useful.
I should probably make separate issues. Please let me know if that would be better.