Skip to content

Commit

Permalink
Followed https://app.meticulous.ai/ instractions
Browse files Browse the repository at this point in the history
  • Loading branch information
martinheppner committed Sep 19, 2023
1 parent 928f9e6 commit 974a06b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"version": "2.0.0",
"private": true,
"dependencies": {
"@alwaysmeticulous/recorder-loader": "^2.76.0",
"@babel/polyfill": "^7.12.1",
"@emotion/react": "^11.8.1",
"@emotion/styled": "^11.8.1",
Expand Down
9 changes: 8 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import i18next from "i18next";
function App() {
// UAT and local development should use matomo test instance
if (location.hostname.indexOf("localhost") !== -1 || location.hostname.indexOf("www2.") !== -1) {
tryLoadAndStartRecorder({ projectId: '0HjVPphxK3XDsQ4ka8QMwfxlMW204RtKu2bL92KO', });
tryLoadAndStartRecorder({ projectId: '0HjVPphxK3XDsQ4ka8QMwfxlMW204RtKu2bL92KO', isProduction: false, });
}

// Matomo tracking
Expand All @@ -33,6 +33,9 @@ function App() {
}, []);


ReactDOM.render(component, document.getElementById('root'));


return (
<ThemeProvider theme={theme}>
<div className="App">
Expand Down Expand Up @@ -64,4 +67,8 @@ function App() {
);
}

function isProduction() {
return window.location.hostname.indexOf("www.zuugle.") > -1;
}

export default App;

0 comments on commit 974a06b

Please sign in to comment.