Skip to content

Commit f515d91

Browse files
committed
update analytics
1 parent 21ee34b commit f515d91

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

plugins/analytics/src/ext.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,20 @@ impl<R: tauri::Runtime, T: tauri::Manager<R>> crate::AnalyticsPluginExt<R> for T
2222
store.get(crate::StoreKey::Disabled)?.unwrap_or(false)
2323
};
2424

25+
let app_version = self.config().version.clone();
26+
let app_identifier = self.config().identifier.clone();
2527
let git_hash = self.get_git_hash();
2628
let bundle_id = self.config().identifier.clone();
27-
let version = self.config().version.clone();
2829

2930
payload
3031
.props
31-
.entry("version".into())
32-
.or_insert(version.into());
32+
.entry("app_version".into())
33+
.or_insert(app_version.into());
34+
35+
payload
36+
.props
37+
.entry("app_identifier".into())
38+
.or_insert(app_identifier.into());
3339

3440
payload
3541
.props

0 commit comments

Comments
 (0)