Added initial start for logging the users behaviour
This commit is contained in:
parent
942c22c515
commit
21b97467aa
3 changed files with 76 additions and 39 deletions
|
@ -1,4 +1,4 @@
|
|||
import React from "react";
|
||||
import React, { useState } from "react";
|
||||
import Navbar from "./components/Navbar";
|
||||
import "./App.css";
|
||||
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
|
||||
|
@ -12,8 +12,16 @@ import Manual from "./components/pages/Manual";
|
|||
import Secret from "./components/pages/Secret";
|
||||
import Umfrage from "./components/pages/Umfrage";
|
||||
import PrivateRoute from "./auth/PrivateRoute";
|
||||
import { Logger } from "@behametrics/logger-web";
|
||||
import { useAuth } from "./auth/AuthProvider";
|
||||
|
||||
function App() {
|
||||
let logger = new Logger({
|
||||
inputs: ["cursor", "wheel", "keyboard", "touch"],
|
||||
logToConsole: true,
|
||||
});
|
||||
logger.init();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Router>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue