From 5a1b728f216226ea0d5d327152e613f3d4981078 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 3 Apr 2024 11:07:03 -0700 Subject: [PATCH] Revert "chore: replace gtag implementation w/ next.js" (#51) Revert "chore: replace gtag implementation w/ next.js (#49)" This reverts commit 9a4037d047ed2fb1e3485e12be955ee85fa8f0a3. --- app/layout.tsx | 5 ++--- components/GoogleAnalytics.tsx | 31 +++++++++++++++++++++++++++++++ lib/gtag.ts | 10 ++++++++++ package-lock.json | 18 ------------------ package.json | 1 - 5 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 components/GoogleAnalytics.tsx create mode 100644 lib/gtag.ts diff --git a/app/layout.tsx b/app/layout.tsx index bcfc88d..c059a1b 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,10 +1,9 @@ -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"] }); @@ -42,7 +41,7 @@ export default function RootLayout({
- + {children}