diff --git a/packages/webapp/src/components/login-page/index.tsx b/packages/webapp/src/components/login-page/index.tsx
index 07dd54fc..742a621a 100644
--- a/packages/webapp/src/components/login-page/index.tsx
+++ b/packages/webapp/src/components/login-page/index.tsx
@@ -10,6 +10,7 @@ import FormContainer from '../layout/form-container';
import Typography from '@mui/material/Typography';
import FormControl from '@mui/material/FormControl';
import Link from '@mui/material/Link';
+import ReactGA from 'react-ga';
type ConfigStatusProps = {
enabled?: boolean;
@@ -68,7 +69,8 @@ const LoginPage = (): React.ReactElement => {
useEffect(() => {
document.title = intl.formatMessage({id:'login.page-title',defaultMessage:'Login | WiseMapping'});
- });
+ ReactGA.pageview(window.location.pathname + window.location.search);
+ },[]);
return (
diff --git a/packages/webapp/src/components/maps-page/index.tsx b/packages/webapp/src/components/maps-page/index.tsx
index 26d386cd..fe09229a 100644
--- a/packages/webapp/src/components/maps-page/index.tsx
+++ b/packages/webapp/src/components/maps-page/index.tsx
@@ -41,6 +41,8 @@ import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction';
import logoIcon from './logo-small.svg';
import poweredByIcon from './pwrdby-white.svg';
import LabelDeleteConfirm from './maps-list/label-delete-confirm';
+import ReactGA from 'react-ga';
+
export type Filter = GenericFilter | LabelFilter;
@@ -81,6 +83,7 @@ const MapsPage = (): ReactElement => {
id: 'maps.page-title',
defaultMessage: 'My Maps | WiseMapping',
});
+ ReactGA.pageview(window.location.pathname + window.location.search);
}, []);
const mutation = useMutation((id: number) => client.deleteLabel(id), {
@@ -261,14 +264,14 @@ const MapsPage = (): ReactElement => {
- { labelToDelete &&
setLabelToDelete(null)}
onConfirm={() => {
handleLabelDelete(labelToDelete);
setLabelToDelete(null);
}}
label={labels.find(l => l.id === labelToDelete)}
- /> }
+ />}
);
};
diff --git a/packages/webapp/src/components/registration-page/index.tsx b/packages/webapp/src/components/registration-page/index.tsx
index dc717785..ab737525 100644
--- a/packages/webapp/src/components/registration-page/index.tsx
+++ b/packages/webapp/src/components/registration-page/index.tsx
@@ -17,6 +17,7 @@ import SubmitButton from '../form/submit-button';
import Typography from '@mui/material/Typography';
import FormControl from '@mui/material/FormControl';
import AppConfig from '../../classes/app-config';
+import ReactGA from 'react-ga';
export type Model = {
email: string;
@@ -164,7 +165,8 @@ const RegistationPage = (): React.ReactElement => {
id: 'registration.page-title',
defaultMessage: 'Registration | WiseMapping',
});
- });
+ ReactGA.pageview(window.location.pathname + window.location.search);
+ },[]);
return (