Suggestions for Analytics Sharing
See original GitHub issueπ 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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top GitHub Comments
Ah yeah my bad, itβs because I was using
yarn
to run the workspaceng
and it was wrapping everything weirdly.undefined
does indeed work.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.