Update clients/cli/src/analytics.rs

Co-authored-by: Collin Jackson <collin@nexus.xyz>
This commit is contained in:
Diego Prats 2024-11-12 17:03:27 -08:00 committed by GitHub
parent ea61b8d481
commit 1c88ffd7ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@ pub fn track(
let mut properties = json!({ let mut properties = json!({
"time": SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_millis(), "time": SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_millis(),
// app_instance_id is the standard key Firebase uses this key to track the same user across sessions // app_instance_id is the standard key Firebase uses this key to track the same user across sessions
// its is a bit redundant, but I wanted to keep the recommended format Firebase uses to minimize surprises // It is a bit redundant, but I wanted to keep the recommended format Firebase uses to minimize surprises
// I still left the distinct_id key as well for backwards compatibility // I still left the distinct_id key as well for backwards compatibility
"app_instance_id": event_properties["prover_id"], "app_instance_id": event_properties["prover_id"],
"distinct_id": event_properties["prover_id"], "distinct_id": event_properties["prover_id"],