diff --git a/index.html b/index.html
index c316114..83cb221 100644
--- a/index.html
+++ b/index.html
@@ -14,6 +14,13 @@
100%{-webkit-transform:translate(150px)}
}
+
+
diff --git a/src/views/App.jsx b/src/views/App.jsx
index 42c25f9..65c1819 100644
--- a/src/views/App.jsx
+++ b/src/views/App.jsx
@@ -1,4 +1,4 @@
-import { Outlet, Link, useHref, useNavigate, NavLink } from "react-router-dom";
+import { Outlet, Link, useHref, useNavigate, useLocation, NavLink } from "react-router-dom";
import { useEffect, useState } from 'react';
import { observer } from "mobx-react";
import { toJS } from "mobx";
@@ -39,13 +39,18 @@ function App() {
const href = useHref();
const loginToken = login.token;
const navigate = useNavigate();
+ const location = useLocation();
+
useEffect(() => {
- // console.info("href: " + href + '; login.token: ' + loginToken + '; timeout: ' + login.timeout);
if (href !== '/login' && isEmpty(loginToken)) {
navigate('/login');
}
}, [href]);
+ useEffect(() => {
+ window.gtag('event', 'page_view', { page_location: window.location.href });
+ }, [location]);
+
const onSubmit = () => {
authStore.valdateUserPassword(login.username, password)
.then(() => {