File tree Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Expand file tree Collapse file tree 3 files changed +0
-41
lines changed Original file line number Diff line number Diff line change 16
16
"react" : " 17.0.2" ,
17
17
"react-dom" : " 17.0.2" ,
18
18
"react-feather" : " ^2.0.10" ,
19
- "react-ga4" : " ^1.4.1" ,
20
19
"react-parallax" : " ^3.5.1" ,
21
20
"styled-components" : " ^5.3.5" ,
22
21
"uuid" : " ^9.0.0"
Original file line number Diff line number Diff line change 1
- import { useEffect } from 'react' ;
2
1
import Head from 'next/head' ;
3
2
import Footer from '@/components/common/Footer' ;
4
3
import Header from '@/components//common/Header' ;
5
4
import Site from '@/components/common/Site' ;
6
5
import '@/styles/globals.css' ;
7
- import { initGA , logPageView } from '@/utils/analytics' ;
8
6
9
7
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
-
27
8
return (
28
9
< Site >
29
10
< Head >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments