Skip to content

Commit

Permalink
Set up GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jan 22, 2024
1 parent 828e0df commit 2eafb34
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
18 changes: 18 additions & 0 deletions 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 packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@mdx-js/mdx": "^2.1.5",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "^14.0.4",
"@next/third-parties": "^14.1.0",
"@svgr/webpack": "^8.1.0",
"@types/mdx": "^2.0.10",
"classnames": "^2.3.2",
Expand Down
8 changes: 7 additions & 1 deletion packages/website/src/pages/_app.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { GoogleAnalytics } from '@next/third-parties/google';
import './variables.scss';
import './base.css';
import './styles.scss';

// This default export is required in a new `pages/_app.js` file.
export default function MyApp({ Component, pageProps }) {
return <Component {...pageProps} />;
return (
<>
<GoogleAnalytics gaId="G-B37E2WMSPW" />
<Component {...pageProps} />
</>
);
}

0 comments on commit 2eafb34

Please sign in to comment.