Include version #.

This commit is contained in:
Patrick Fic
2025-09-22 15:57:14 -07:00
parent ec5b04304f
commit 9907c0896f
2 changed files with 4 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -3,7 +3,7 @@
"productName": "ImEX RPS",
"author": "ImEX Systems Inc. <support@thinkimex.com>",
"description": "ImEX RPS",
"version": "1.4.2-alpha.16",
"version": "1.4.2-beta.5",
"main": "electron/main.js",
"homepage": "./",
"dependencies": {