diff --git a/js/src/services/statistics/matomo.ts b/js/src/services/statistics/matomo.ts index 7ad1151fe..92385376c 100644 --- a/js/src/services/statistics/matomo.ts +++ b/js/src/services/statistics/matomo.ts @@ -9,5 +9,6 @@ export const matomo = (environment: any, matomoConfiguration: any) => { environment.app.use(VueMatomo, { ...matomoConfiguration, router: environment.router, + debug: import.meta.env.DEV, }); }; diff --git a/js/src/services/statistics/sentry.ts b/js/src/services/statistics/sentry.ts index 5044446a0..7d826bee7 100644 --- a/js/src/services/statistics/sentry.ts +++ b/js/src/services/statistics/sentry.ts @@ -12,12 +12,13 @@ export const sentry = (environment: any, sentryConfiguration: any) => { Sentry.init({ app: environment.app, dsn: sentryConfiguration.dsn, + debug: import.meta.env.DEV, integrations: [ new Integrations.BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation( environment.router ), - tracingOrigins: ["localhost", "mobilizon1.com", /^\//], + tracingOrigins: [window.origin, /^\//], }), ], beforeSend(event) { @@ -33,6 +34,7 @@ export const sentry = (environment: any, sentryConfiguration: any) => { // We recommend adjusting this value in production tracesSampleRate: sentryConfiguration.tracesSampleRate, release: environment.version, + logErrors: true, }); };