File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ import Comparison from "../components/Comparison";
1616function HomepageHeader ( ) {
1717 const { siteConfig} = useDocusaurusContext ( ) ;
1818
19- ReactGA . initialize ( 'G-MNT2DFSGCM' ) ;
20- ReactGA . pageview ( window . location . pathname + window . location . search ) ;
21-
2219 return (
2320 < header className = { clsx ( 'hero hero--primary' , styles . heroBanner ) } >
2421 < img src = { helmsman } className = { styles . image } />
@@ -49,6 +46,12 @@ export default function Home() {
4946 < Layout
5047 title = { `Developer firendly Kubernetes` }
5148 description = "Description will go into a meta tag in <head />" >
49+ < BrowserOnly fallback = { < div > Loading...</ div > } >
50+ { ( ) => {
51+ ReactGA . initialize ( 'G-MNT2DFSGCM' ) ;
52+ ReactGA . pageview ( window . location . pathname + window . location . search ) ;
53+ } }
54+ </ BrowserOnly >
5255 < HomepageHeader />
5356 < main >
5457 < HomepageFeatures />
You can’t perform that action at this time.
0 commit comments