From 03c17cd8bacc2de081d348d8354d8209828e3d5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bouget?= Date: Tue, 5 Mar 2024 15:13:09 +0100 Subject: [PATCH] Update GA --- src/app/app.component.ts | 2 ++ src/environments/environment.dev.ts | 3 ++- src/environments/environment.prod.ts | 3 ++- src/environments/environment.ts | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 11164fe..65de7a7 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -13,6 +13,7 @@ import { ElectronService } from './core/services/electron.service'; import { ConfigService } from './core/services/config.service'; import { MenuService } from './core/services/menu.service'; import { FileSystemService } from './core/services/file-system.service'; +import { APP_CONFIG } from '../environments/environment'; @Component({ selector: 'app-root', @@ -57,6 +58,7 @@ export class AppComponent implements OnInit, OnDestroy, AfterViewInit { this.config.setConfig({ appSource: 'ELECTRON', showProjectTab: true, + trackerId: APP_CONFIG.TRACKER_ID, onFileOpen: () => { console.log('fileOpen'); this.menuService.openFileDialog(() => { diff --git a/src/environments/environment.dev.ts b/src/environments/environment.dev.ts index 25c1566..4b48ddf 100644 --- a/src/environments/environment.dev.ts +++ b/src/environments/environment.dev.ts @@ -1,4 +1,5 @@ export const APP_CONFIG = { production: false, - environment: 'DEV' + environment: 'DEV', + TRACKER_ID: process.env.TRACKER_ID, }; diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 21919cf..8335552 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,4 +1,5 @@ export const APP_CONFIG = { production: true, - environment: 'PROD' + environment: 'PROD', + TRACKER_ID: process.env.TRACKER_ID, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index ac0e11c..b00b2e0 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,4 +1,5 @@ export const APP_CONFIG = { production: false, - environment: 'LOCAL' + environment: 'LOCAL', + TRACKER_ID: process.env.TRACKER_ID, };