From 53094802d33f1fec79ad30396eda97e6a4101e98 Mon Sep 17 00:00:00 2001 From: alicegoarnisson Date: Thu, 5 Dec 2024 11:04:18 +0100 Subject: [PATCH] feat(orga): initialized Matomo --- orga/app/routes/application.js | 2 ++ orga/config/environment.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/orga/app/routes/application.js b/orga/app/routes/application.js index dcfcad8c70a..b46c4097871 100644 --- a/orga/app/routes/application.js +++ b/orga/app/routes/application.js @@ -7,8 +7,10 @@ export default class ApplicationRoute extends Route { @service currentUser; @service session; @service intl; + @service metrics; async beforeModel(transition) { + this.metrics.initialize(); await this.session.setup(); await this.featureToggles.load(); const isFranceDomain = this.currentDomain.isFranceDomain; diff --git a/orga/config/environment.js b/orga/config/environment.js index c85eced80ee..5384c8fdb69 100644 --- a/orga/config/environment.js +++ b/orga/config/environment.js @@ -156,7 +156,7 @@ module.exports = function (environment) { autoClear: null, clearDuration: null, }; - + ENV.metrics.enabled = false; ENV.pagination.debounce = 0; }