Feat: add vercel analytics

This commit is contained in:
Aaron William Po
2023-04-30 13:25:23 -04:00
parent c0d705f8cb
commit 99e3eba7d6
3 changed files with 51 additions and 32 deletions

View File

@@ -5,6 +5,8 @@ import type { AppProps } from 'next/app';
import { useEffect } from 'react';
import { themeChange } from 'theme-change';
import { Analytics } from '@vercel/analytics/react';
import { Space_Grotesk } from 'next/font/google';
import Head from 'next/head';
import Layout from '@/components/ui/Layout';
@@ -39,6 +41,7 @@ export default function App({ Component, pageProps }: AppProps) {
<Component {...pageProps} />
</Layout>
</UserContext.Provider>
<Analytics />
</>
);
}