Skip to content

chore: remove Google Analytics and consent tracking#1804

Merged
jdorfman merged 2 commits into
mainfrom
chore/remove-google-analytics
Jul 8, 2026
Merged

chore: remove Google Analytics and consent tracking#1804
jdorfman merged 2 commits into
mainfrom
chore/remove-google-analytics

Conversation

@jdorfman

@jdorfman jdorfman commented Jul 3, 2026

Copy link
Copy Markdown
Member

UPDATE: Wendy approved the change and was positive about removing GA from those properties.

Why

Cloudflare Analytics could cover the same needs server-side, meaning we will not need cookie/privacy banners.

Summary

  • Removes the @next/third-parties GoogleAnalytics component (GTM container GTM-TB4NLS7) from the root layout and the homepage.
  • Drops the now-unused @next/third-parties dependency and updates pnpm-lock.yaml.
  • Result: the site loads no Google Analytics, Google Tag Manager, or Osano consent scripts.

Best practices comparison

CleanShot 2026-07-03 at 10 04 29@2x

Test plan

  • grep -rn "GoogleAnalytics|@next/third-parties|osano|dataLayer|GTM-TB4NLS7" src/ package.json → clean.
  • pnpm lint → no errors (only pre-existing <img>/hooks warnings).
  • Ran pnpm dev and loaded / and /docs — served HTML contains no googletagmanager.com, google-analytics.com, or cmp.osano.com references; both routes return HTTP 200.

Generated with Claude Code


Remove the @next/third-parties GoogleAnalytics component (GTM-TB4NLS7)
from the root layout and homepage, drop the now-unused @next/third-parties
dependency, and update the lockfile. No Google Analytics, Google Tag
Manager, or Osano consent scripts are loaded by the site anymore.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sourcegraph-docs Ready Ready Preview, Comment Jul 8, 2026 11:20pm

Request Review

@jdorfman jdorfman self-assigned this Jul 3, 2026
@jdorfman jdorfman marked this pull request as ready for review July 8, 2026 23:18
@jdorfman jdorfman merged commit 9e83dad into main Jul 8, 2026
2 checks passed
@jdorfman jdorfman deleted the chore/remove-google-analytics branch July 8, 2026 23:52
@jdorfman jdorfman changed the title [Don't merge] chore: remove Google Analytics and consent tracking chore: remove Google Analytics and consent tracking Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants