Skip to content

Commit 74bb5cc

Browse files
committed
fix: GA track
1 parent 5f604ec commit 74bb5cc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/utils/track.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class Tracker {
193193
logMain.info('[track.init] initializing GA');
194194
const publicIp = await this.fetchPublicIp();
195195
this.analytics = new Analytics(process.env.GA_TC, process.env.GA_MP, uid, uuidv4(), publicIp);
196-
this.analytics.setUserProperties({
196+
const userProperties = {
197197
app_version: {
198198
value: app.getVersion(),
199199
},
@@ -203,7 +203,9 @@ class Tracker {
203203
theme_source: {
204204
value: nativeTheme.themeSource,
205205
},
206-
});
206+
};
207+
this.analytics.setUserProperties(userProperties);
208+
logMain.info('[track.init] user properties:', userProperties);
207209
this.queue.forEach(({ eventName, params }) => {
208210
this._event(eventName, params);
209211
});

0 commit comments

Comments
 (0)