mirror of
https://github.com/Xevion/100prisoners.git
synced 2025-12-15 20:11:04 -06:00
Move GA into root of App
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
import { type AppType } from "next/app";
|
||||
import {type AppType} from "next/app";
|
||||
|
||||
import { trpc } from "@/utils/trpc";
|
||||
import {trpc} from "@/utils/trpc";
|
||||
|
||||
import "@/styles/globals.scss";
|
||||
import {GoogleAnalytics} from "nextjs-google-analytics";
|
||||
|
||||
const MyApp: AppType = ({ Component, pageProps }) => {
|
||||
return <Component {...pageProps} />;
|
||||
const App: AppType = ({Component, pageProps}) => {
|
||||
return <>
|
||||
<GoogleAnalytics trackPageViews/>
|
||||
<Component {...pageProps} />;
|
||||
</>
|
||||
};
|
||||
|
||||
export default trpc.withTRPC(MyApp);
|
||||
export default trpc.withTRPC(App);
|
||||
|
||||
@@ -13,7 +13,6 @@ const Home: NextPage = () => {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<GoogleAnalytics trackPageViews/>
|
||||
<title>100prisoners.com</title>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
</Head>
|
||||
|
||||
Reference in New Issue
Block a user