|
|
|
@@ -7,7 +7,7 @@ import Loader from './components/shared/Loader'; |
|
|
|
import ScrollToTop from './components/root/ScrollToTop'; |
|
|
|
|
|
|
|
import ReactGA from 'react-ga'; |
|
|
|
import usePageTracking from './hooks/usePageTracking'; |
|
|
|
//import usePageTracking from './hooks/usePageTracking'; |
|
|
|
|
|
|
|
const Home = lazy(() => import('./pages/Home')); |
|
|
|
const Portfolio = lazy(() => import('./pages/Portfolio')); |
|
|
|
@@ -60,6 +60,9 @@ const links = [ |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
//analytics |
|
|
|
ReactGA.initialize(process.env.GOOGLE_TRACKING_ID); |
|
|
|
|
|
|
|
function App() { |
|
|
|
//tabs for contact form |
|
|
|
const [tab, setTab] = useState(true); |
|
|
|
@@ -70,7 +73,7 @@ function App() { |
|
|
|
const forwardedRef = useRef(null); |
|
|
|
|
|
|
|
//initialize analytics page tracking |
|
|
|
usePageTracking(); |
|
|
|
//usePageTracking(); |
|
|
|
|
|
|
|
//scroll to Contact fn |
|
|
|
function scrollToView(event) { |