Skip to content

Commit

Permalink
feat: update vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Oct 25, 2024
1 parent 96f03e6 commit 8b622c7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Empty file added public/analytics.js
Empty file.
11 changes: 11 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Head from 'next/head'
import Script from 'next/script'
import { useRouter } from 'next/router'
import type { AppProps } from 'next/app'
import { Analytics } from '@vercel/analytics/react'
Expand Down Expand Up @@ -45,6 +46,16 @@ function MaiaPlatform({ Component, pageProps }: AppProps) {
<Footer />
</div>
<Analytics />
<Script async src="/analytics.js?id=G-SNP84LXLKY" />
<Script id="analytics">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SNP84LXLKY');
`}
</Script>
</Compose>
)
}
Expand Down

0 comments on commit 8b622c7

Please sign in to comment.