diff --git a/.env.development.local b/.env.development.local new file mode 100644 index 0000000..6dd79d6 --- /dev/null +++ b/.env.development.local @@ -0,0 +1 @@ +REACT_APP_SECRET_ENCRYPTION_KEY=123123 \ No newline at end of file diff --git a/.gitignore b/.gitignore index f21726c..8f5fe93 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,6 @@ # misc .DS_Store .env.local -.env.development.local .env.test.local .env.production.local .env diff --git a/package.json b/package.json index a9a08e8..b2fb810 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,12 @@ "version": "0.1.0", "private": true, "dependencies": { + "@analytics/google-analytics": "0.5.0", + "analytics": "0.5.5", "axios": "^0.19.0", "fingerprintjs2": "^2.1.0", "framer-motion": "^1.6.12", + "history": "5.0.0", "js-cookie": "^2.2.1", "open-graph-scraper": "^3.6.2", "polished": "^3.4.1", diff --git a/src/App.js b/src/App.js index 27b8348..a71b6e9 100644 --- a/src/App.js +++ b/src/App.js @@ -1,7 +1,7 @@ import { hot } from "react-hot-loader/root"; import React, { useState, useEffect } from "react"; import { createGlobalStyle, ThemeProvider } from "styled-components"; -import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; +import { Router, Route, Switch } from "react-router-dom"; import { useDispatch } from "react-redux"; import socketIOClient from "socket.io-client"; import ReactTooltip from "react-tooltip"; @@ -26,6 +26,8 @@ import Footer from "./components/Footer"; import theme from "./utils/theme"; import { getFingerprint, getIp, getUserInfo } from "./utils/fingerprint"; +import { history } from "./utils/history"; +import "./utils/analytics"; import { setFingerprint, @@ -62,7 +64,7 @@ function App() { return ( - + {/* */} {/* TODO: add this again*/} diff --git a/src/components/HeaderBanner.js b/src/components/HeaderBanner.js index e9bc2c2..9292515 100644 --- a/src/components/HeaderBanner.js +++ b/src/components/HeaderBanner.js @@ -84,31 +84,6 @@ const HeaderBanner = ({}) => { - -