feat: add analytics component

This commit is contained in:
Timothy Lin
2021-07-28 23:25:05 +08:00
parent 5707e6a186
commit 91d2d40144
6 changed files with 114 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import '@/css/tailwind.css'
import { ThemeProvider } from 'next-themes'
import Head from 'next/head'
import Analytics from '@/components/analytics'
import LayoutWrapper from '@/components/LayoutWrapper'
export default function App({ Component, pageProps }) {
@ -11,6 +12,7 @@ export default function App({ Component, pageProps }) {
<Head>
<meta content="width=device-width, initial-scale=1" name="viewport" />
</Head>
<Analytics />
<LayoutWrapper>
<Component {...pageProps} />
</LayoutWrapper>