diff --git a/ui/README.md b/ui/README.md index b1cbe07d..126018f7 100644 --- a/ui/README.md +++ b/ui/README.md @@ -42,6 +42,10 @@ Note: If you are running the backend with simplified authentication, your abilit If this is the case, you should be able to navigate to the [home page](https://localhost:3000) and the [test space](https://localhost:3000/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa) +## Set up Analytics +You can add google analytics, hotjar and more by adding the config scripts +in the `analytics.js` file, which is loaded in via the `index.html` file. + ## License PeopleMover is licensed under the Apache 2.0 license. diff --git a/ui/public/analytics.js b/ui/public/analytics.js new file mode 100644 index 00000000..5420cfd3 --- /dev/null +++ b/ui/public/analytics.js @@ -0,0 +1,4 @@ +/* + Add analytics code here. + This file is imported into the index.html file. +*/ \ No newline at end of file diff --git a/ui/public/index.html b/ui/public/index.html index 651564b7..8b733c56 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -77,5 +77,6 @@ To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> - </body> + <script type="application/javascript" src="/analytics.js"></script> +</body> </html> diff --git a/ui/src/__mocks__/README.md b/ui/src/__mocks__/README.md index 998c72a5..e1a6e406 100644 --- a/ui/src/__mocks__/README.md +++ b/ui/src/__mocks__/README.md @@ -5,4 +5,4 @@ Note: This `__mocks__` folder should be in the root folder ajacent to the node_modules folder, however there is a bug and it will only manual mock node modules if this folder is in the src folder right now. This folder should be moved if the bug gets resolved: -https://github.com/facebook/create-react-app/issues/7539 \ No newline at end of file +https://github.com/facebook/create-react-app/issues/7539