mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-25 08:09:06 -04:00
Update analytics code
This commit is contained in:
1 parent
4037b9a763
commit
39453f6cf7
1 file changed
+6
@@ -38,6 +38,12 @@ export function initAnalytics () {
|
||||
export function trackEvent (event, properties = {}) {
|
||||
// Don't track events if we haven't set them up yet
|
||||
if (analytics) {
|
||||
// Add base properties
|
||||
Object.assign(properties, {
|
||||
appPlatform: process.platform,
|
||||
appVersion: getAppVersion()
|
||||
});
|
||||
|
||||
analytics.track({userId, event, properties});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user