Skip to content

Commit d86db37

Browse files
Merge pull request #26 from austincondiff/dev
Removed analytics
2 parents eea3981 + a4667be commit d86db37

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
"react": "17.0.2",
1717
"react-dom": "17.0.2",
1818
"react-feather": "^2.0.10",
19-
"react-ga4": "^1.4.1",
2019
"react-parallax": "^3.5.1",
2120
"styled-components": "^5.3.5",
2221
"uuid": "^9.0.0"

pages/_app.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
1-
import { useEffect } from 'react';
21
import Head from 'next/head';
32
import Footer from '@/components/common/Footer';
43
import Header from '@/components//common/Header';
54
import Site from '@/components/common/Site';
65
import '@/styles/globals.css';
7-
import { initGA, logPageView } from '@/utils/analytics';
86

97
function MyApp({ Component, pageProps }) {
10-
useEffect(() => {
11-
if (!window.GA_INITIALIZED) {
12-
initGA();
13-
window.GA_INITIALIZED = true;
14-
}
15-
logPageView();
16-
17-
const appHeight = () => {
18-
const doc = document.documentElement;
19-
doc.style.setProperty('--app-height', `${window.innerHeight}px`);
20-
};
21-
22-
window.addEventListener('resize', appHeight);
23-
24-
appHeight();
25-
}, []);
26-
278
return (
289
<Site>
2910
<Head>

utils/analytics.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)