Skip to content

Commit

Permalink
Removed analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
austincondiff committed Oct 2, 2022
1 parent eea3981 commit a4667be
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-feather": "^2.0.10",
"react-ga4": "^1.4.1",
"react-parallax": "^3.5.1",
"styled-components": "^5.3.5",
"uuid": "^9.0.0"
Expand Down
19 changes: 0 additions & 19 deletions pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,10 @@
import { useEffect } from 'react';
import Head from 'next/head';
import Footer from '@/components/common/Footer';
import Header from '@/components//common/Header';
import Site from '@/components/common/Site';
import '@/styles/globals.css';
import { initGA, logPageView } from '@/utils/analytics';

function MyApp({ Component, pageProps }) {
useEffect(() => {
if (!window.GA_INITIALIZED) {
initGA();
window.GA_INITIALIZED = true;
}
logPageView();

const appHeight = () => {
const doc = document.documentElement;
doc.style.setProperty('--app-height', `${window.innerHeight}px`);
};

window.addEventListener('resize', appHeight);

appHeight();
}, []);

return (
<Site>
<Head>
Expand Down
21 changes: 0 additions & 21 deletions utils/analytics.js

This file was deleted.

0 comments on commit a4667be

Please sign in to comment.