diff --git a/electron/analytics.js b/electron/analytics.js index e3f46c5..9a1c7b6 100644 --- a/electron/analytics.js +++ b/electron/analytics.js @@ -6,6 +6,8 @@ const { default: ipcTypes } = require("../src/ipc.types.commonjs"); const amplitude = require('@amplitude/analytics-node'); const { store } = require("./electron-store"); const deviceId = store.get("deviceId"); +const { app } = require("electron"); + let userId; amplitude.init('a733ff926aef84f93baf95e66b5dcb75'); // Nucleus.init("5f91b569b95bac34eefdb63a", { @@ -32,7 +34,7 @@ ipcMain.on(ipcTypes.app.toMain.track, (e, args) => { const { event, ...eventDetails } = args; try { //// Nucleus.track(event, eventDetails); - amplitude.track(event, eventDetails, { device_id: deviceId, user_id: userId }); + amplitude.track(event, eventDetails, { device_id: deviceId, user_id: userId, app_version: app.getVersion(), }); } catch (error) { log.error(error); } diff --git a/package.json b/package.json index 094dcd1..9a7299b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "productName": "ImEX RPS", "author": "ImEX Systems Inc. ", "description": "ImEX RPS", - "version": "1.4.2-alpha.16", + "version": "1.4.2-beta.5", "main": "electron/main.js", "homepage": "./", "dependencies": {