From 4358300934b656820c295f105ea477617f78d480 Mon Sep 17 00:00:00 2001 From: needs <624097+needs@users.noreply.github.com> Date: Tue, 25 Aug 2026 01:49:15 +0200 Subject: [PATCH] Remove Google Analytics Drops the GoogleAnalytics component and the NEXT_PUBLIC_GOOGLE_ANALYTICS_ID env var from the root layout, along with the now-unused @next/third-parties dependency. Cloudflare analytics replaces it. Co-Authored-By: Claude Opus 5 (1M context) --- apps/frontend/app/layout.tsx | 4 ---- package-lock.json | 18 ------------------ package.json | 1 - 3 files changed, 23 deletions(-) diff --git a/apps/frontend/app/layout.tsx b/apps/frontend/app/layout.tsx index 8aa8348..7233191 100644 --- a/apps/frontend/app/layout.tsx +++ b/apps/frontend/app/layout.tsx @@ -6,11 +6,8 @@ import { HeaderTabs } from '../components/HeaderTabs'; import prisma from '../utils/prisma'; import { SearchForm } from '../components/SearchForm'; import packageJson from 'package.json'; -import { GoogleAnalytics } from '@next/third-parties/google'; import { Suspense } from 'react'; -const gaId = process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID; - export const metadata = { title: 'Welcome to Teerank', description: 'Rank players, clans and servers from Teeworlds', @@ -123,7 +120,6 @@ export default async function RootLayout({ - {gaId !== undefined && } ); } diff --git a/package-lock.json b/package-lock.json index 4da3e54..b2f7ec6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,7 +13,6 @@ "@aws-sdk/client-s3": "^3.1106.0", "@fastify/autoload": "~5.7.1", "@fastify/sensible": "~5.2.0", - "@next/third-parties": "^14.1.0", "@prisma/client": "^5.22.0", "@sentry/nextjs": "^7.107.0", "@sentry/node": "^7.120.2", @@ -4106,18 +4105,6 @@ "node": ">= 10" } }, - "node_modules/@next/third-parties": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@next/third-parties/-/third-parties-14.1.0.tgz", - "integrity": "sha512-f55SdvQ1WWxi4mb5QqtYQh5wRzbm1XaeP7s39DPn4ks3re+n9VlFccbMxBRHqkE62zAyIKmvkUB2cByT/gugGA==", - "dependencies": { - "third-party-capital": "1.0.20" - }, - "peerDependencies": { - "next": "^13.0.0 || ^14.0.0", - "react": "^18.2.0" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -19807,11 +19794,6 @@ "tslib": "^2" } }, - "node_modules/third-party-capital": { - "version": "1.0.20", - "resolved": "https://registry.npmjs.org/third-party-capital/-/third-party-capital-1.0.20.tgz", - "integrity": "sha512-oB7yIimd8SuGptespDAZnNkzIz+NWaJCu2RMsbs4Wmp9zSDUM8Nhi3s2OOcqYuv3mN4hitXc8DVx+LyUmbUDiA==" - }, "node_modules/thread-stream": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.7.0.tgz", diff --git a/package.json b/package.json index 2670615..ec270cb 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ "@aws-sdk/client-s3": "^3.1106.0", "@fastify/autoload": "~5.7.1", "@fastify/sensible": "~5.2.0", - "@next/third-parties": "^14.1.0", "@prisma/client": "^5.22.0", "@sentry/nextjs": "^7.107.0", "@sentry/node": "^7.120.2",