From dac798b6041a72f219b4cc1e2a596f76ea099fd7 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 3 Apr 2024 10:53:41 -0700 Subject: [PATCH] chore: replace gtag implementation w/ next.js --- app/layout.tsx | 5 +++-- components/GoogleAnalytics.tsx | 31 ------------------------------- lib/gtag.ts | 10 ---------- package-lock.json | 18 ++++++++++++++++++ package.json | 1 + 5 files changed, 22 insertions(+), 43 deletions(-) delete mode 100644 components/GoogleAnalytics.tsx delete mode 100644 lib/gtag.ts diff --git a/app/layout.tsx b/app/layout.tsx index c059a1b..bcfc88d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,10 @@ +import { GoogleAnalytics } from "@next/third-parties/google"; + import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; -import GoogleAnalytics from "@/components/GoogleAnalytics"; import { Toaster } from "@/components/ui/toaster"; const inter = Inter({ subsets: ["latin"], fallback: ["sans-serif"] }); @@ -41,7 +42,7 @@ export default function RootLayout({
- + {children}