diff --git a/client/package.json b/client/package.json index a3b11c0..eaf74eb 100644 --- a/client/package.json +++ b/client/package.json @@ -15,12 +15,14 @@ "@oceanprotocol/typographies": "^0.1.0", "classnames": "^2.2.6", "filesize": "^4.1.2", + "history": "^4.9.0", "is-url": "^1.2.4", "moment": "^2.24.0", "query-string": "^6.4.2", "react": "^16.8.6", "react-datepicker": "^2.3.0", "react-dom": "^16.8.6", + "react-ga": "^2.5.7", "react-helmet": "^5.2.0", "react-moment": "^0.8.4", "react-popper": "^1.3.3", diff --git a/client/src/withTracker.tsx b/client/src/withTracker.tsx index af3a544..ca88cfc 100644 --- a/client/src/withTracker.tsx +++ b/client/src/withTracker.tsx @@ -5,7 +5,7 @@ interface TrackerProps { location: any } -ReactGA.initialize('UA-60614729-11'); +ReactGA.initialize('UA-60614729-11', {testMode: process.env.NODE_ENV === 'test'}) export default function withTracker(WrappedComponent: any, options: any = {}) { const trackPage = (page: any) => {