diff --git a/convertPheno_client/src/code/App.jsx b/convertPheno_client/src/code/App.jsx index 34fc5578..1a1bd134 100644 --- a/convertPheno_client/src/code/App.jsx +++ b/convertPheno_client/src/code/App.jsx @@ -39,8 +39,8 @@ const security = const matomoUrl = process.env.NODE_ENV === "production" - ? JSON.parse(window.REACT_APP_MATOMO_URL.replace(/'/g, '"')) - : JSON.parse(import.meta.env.MATOMO_TAG_MANAGER_URL); + ? window.REACT_APP_MATOMO_URL + : import.meta.env.MATOMO_TAG_MANAGER_URL; console.log("Matomo URL: ", matomoUrl);