Skip to content

Commit

Permalink
feat(orga): updating matomo config
Browse files Browse the repository at this point in the history
  • Loading branch information
alicegoarnisson committed Dec 4, 2024
1 parent e65a74f commit 10dffd1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
15 changes: 5 additions & 10 deletions orga/config/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ module.exports = function (environment) {
warnIfNoIconsIncluded: false,
},

matomo: {},

'ember-cli-notifications': {
autoClear: true,
clearDuration: 5000,
Expand All @@ -120,6 +118,11 @@ module.exports = function (environment) {
'ember-cli-mirage': {
usingProxy: true,
},

metrics: {
enabled: analyticsEnabled,
matomoUrl: process.env.WEB_ANALYTICS_URL,
},
};

if (environment === 'development') {
Expand All @@ -132,10 +135,6 @@ module.exports = function (environment) {
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
if (analyticsEnabled) {
ENV.matomo.url = process.env.WEB_ANALYTICS_URL;
ENV.matomo.debug = true;
}
}

if (environment === 'test') {
Expand Down Expand Up @@ -163,10 +162,6 @@ module.exports = function (environment) {

if (environment === 'production') {
// here you can enable a production-specific feature

if (analyticsEnabled) {
ENV.matomo.url = process.env.WEB_ANALYTICS_URL;
}
}

return ENV;
Expand Down
11 changes: 11 additions & 0 deletions orga/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions orga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
},
"devDependencies": {
"@1024pix/ember-cli-notifications": "^8.0.2",
"@1024pix/ember-matomo-tag-manager": "^2.4.3",
"@1024pix/ember-testing-library": "^3.0.6",
"@1024pix/eslint-config": "^1.3.8",
"@1024pix/pix-ui": "^48.7.1",
Expand Down

0 comments on commit 10dffd1

Please sign in to comment.