Skip to content

Commit

Permalink
adding gtag (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
josehelps authored Sep 27, 2024
1 parent 19e8e01 commit d110137
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 2 deletions.
20 changes: 20 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-fontawesome": "^0.2.2",
"@next/third-parties": "^14.2.13",
"@tanstack/react-query": "^5.52.2",
"@vercel/analytics": "^1.3.1",
"autoprefixer": "^10.4.20",
Expand Down
8 changes: 6 additions & 2 deletions website/pages/_app.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "../styles.css";
import {useEffect, useState} from "react";
import {EuiProvider} from "@elastic/eui";
import { GoogleAnalytics } from '@next/third-parties/google'

export default function Nextra({Component, pageProps}) {
const [isClient, setIsClient] = useState(false);
Expand All @@ -9,9 +10,12 @@ export default function Nextra({Component, pageProps}) {
}, []);
if (isClient) {
return (
<EuiProvider colorMode={"dark"}>
<>
<EuiProvider colorMode={"dark"}>
<Component {...pageProps} />
</EuiProvider>
</EuiProvider>
<GoogleAnalytics gaId="G-D04FRZLYM5" />
</>
);
}
return null;
Expand Down
20 changes: 20 additions & 0 deletions website/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d110137

Please sign in to comment.