Title: Track command options in analytics. · Issue #4211 · NativeScript/nativescript-cli · GitHub
Open Graph Title: Track command options in analytics. · Issue #4211 · NativeScript/nativescript-cli
X Title: Track command options in analytics. · Issue #4211 · NativeScript/nativescript-cli
Description: Is your feature request related to a problem? Please describe. Currently we have no means of analyzing if and how much a command option is used by the users. This affects our ability to prioritize features and to determinate the severity...
Open Graph Description: Is your feature request related to a problem? Please describe. Currently we have no means of analyzing if and how much a command option is used by the users. This affects our ability to prioritize ...
X Description: Is your feature request related to a problem? Please describe. Currently we have no means of analyzing if and how much a command option is used by the users. This affects our ability to prioritize ...
Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/4211
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Track command options in analytics.","articleBody":"**Is your feature request related to a problem? Please describe.**\r\n\u003c!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]. --> \r\nCurrently we have no means of analyzing if and how much a command option is used by the users. This affects our ability to prioritize features and to determinate the severity of issues.\r\n\r\n**Describe the solution you'd like**\r\n\u003c!-- A clear and concise description of what you want to happen. -->\r\nThere should be a way to analyze option usage.\r\n\r\n**Testing**\r\n1 Make sure that usage-reporting is enabled - `tns usage-reporting status`, `tns usage-reporting enable`.\r\n2 Execute a command with `--analytics-log-file` - ` tns run android --analytics-log-file ./test.txt`.\r\n3 Check in the `test.txt` file that an Options event has been send.\r\n\r\n**Acceptance Criteria**\r\n - [x] 1 Options event should be send/written in the analytics-log-file\r\n - [x] 2 Only one Options event should be send per command(this is essential for analyzing the data later)\r\n - [x] 3 All sensitive data should be replaced with `private` placeholder in the data that is sent for tracking (any field that contains password in the key, any field that contains a path or an id). List of options and which are marked as sensitive [here](https://github.com/NativeScript/nativescript-cli/blob/3463f9807b656d6bacd46e0287c1932e5cd03f3f/lib/options.ts#L10) and [here](https://github.com/NativeScript/nativescript-cli/blob/3463f9807b656d6bacd46e0287c1932e5cd03f3f/lib/options.ts#L44). Also any detected path will be replace with \"_localpath\" and the value of any option that has a key containing \"password\" will be replaced with \"private\".\r\n - [x] 4 Event should be sent only when `usage-reporting` is enabled.\r\n - [x] 5 The options data should be stored in the `label` field of the event and should be in `json` format.\r\n - [x] 6 Cloud options should also be tracked.\r\n","author":{"url":"https://github.com/KristianDD","@type":"Person","name":"KristianDD"},"datePublished":"2018-12-06T15:20:55Z","url":"https://github.com/NativeScript/nativescript-cli/issues/4211"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:667aefdd-81f9-ffc4-c33e-cf655a243392 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ABBE:96DDF:29C81CB:34FA6A4:6B019D09 |
| html-safe-nonce | 6ed5a5de9a8e50e6d38c7ef424398cf5362abe5f3a7f934fb047e02a7c463c82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQkJFOjk2RERGOjI5QzgxQ0I6MzRGQTZBNDo2QjAxOUQwOSIsInZpc2l0b3JfaWQiOiI4Mjg1MDExNzU0MjMzMjA4MDczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d6559f1107a8b89175072f0e0337a3aac07ff8227a8172609b825232f16ae81e |
| hovercard-subject-tag | issue:388261182 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/4211/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e27bc6b7762c0964a12a9103c99f1591d83707526b6fd300254b147e3f6bd8b/NativeScript/nativescript-cli/issues/4211 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e27bc6b7762c0964a12a9103c99f1591d83707526b6fd300254b147e3f6bd8b/NativeScript/nativescript-cli/issues/4211 |
| og:image:alt | Is your feature request related to a problem? Please describe. Currently we have no means of analyzing if and how much a command option is used by the users. This affects our ability to prioritize ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | KristianDD |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 21347346 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21347346 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width