12
edits
Rnicoletti (talk | contribs) (Added cd7 (timestamp)) |
Rnicoletti (talk | contribs) (Updating `tid` description) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
Once data is collected, it's stored in a Google BigQuery instance. There are several visualization options available for you to choose from: | Once data is collected, it's stored in a Google BigQuery instance. There are several visualization options available for you to choose from: | ||
*Google Analytics Console - More appropriate for checking if your data arrived and simple graphs such as how many users are currently "live". | *Google Analytics Console - More appropriate for checking if your data arrived and simple graphs such as how many users are currently "live". | ||
*[https:// | *[https://sql.telemetry.mozilla.org Re:Dash] - a 3rd party tool that can be used to formulate SQL queries against the BigQuery Database. | ||
*[https://www.google.com/analytics/360-suite/data-studio/ Google Analytics Data Studio] | *[https://www.google.com/analytics/360-suite/data-studio/ Google Analytics Data Studio] | ||
Line 17: | Line 17: | ||
As a project wanting to send metrics you have the following choices: | As a project wanting to send metrics you have the following choices: | ||
* Rust Library integration (for Rust, c/cpp, Java projects) | * Rust Library integration (for Rust, c/cpp, Java projects) | ||
* | * Node.js module | ||
* Formulate a POST request with your own tools. | * Formulate a POST request with your own tools. | ||
Line 26: | Line 26: | ||
*[https://github.com/tamarahills/metrics_controller/blob/master/examples/main.rs Rust] | *[https://github.com/tamarahills/metrics_controller/blob/master/examples/main.rs Rust] | ||
=== | === Node.js module === | ||
This Node.js [https://www.npmjs.com/package/cd-metrics module] is a Javascript wrapper around the Google Analytics Measurement Protocol. | |||
=== Formulating a POST request with your own tools === | === Formulating a POST request with your own tools === | ||
Line 47: | Line 47: | ||
| t || This is the hit type in the Measurement Protocol. Set this to "event" | | t || This is the hit type in the Measurement Protocol. Set this to "event" | ||
|- | |- | ||
| tid || Contact Metrics team for this number. It is a String in the format UA-XXXXXXXX-X. It is the property ID for all Connected Devices. This will be the same for all requests. | | tid || Tracking Id. Contact Metrics team for this number. It is a String in the format UA-XXXXXXXX-X. It is the property ID for all Connected Devices projeccts. This will be the same for all requests. | ||
|- | |- | ||
| cid || Your device ID should go in here. It should be a unique string (a uuid is nice). | | cid || Your device ID should go in here. It should be a unique string (a uuid is nice). |
edits