Skip to content

feat: add Google Tag Manager (NEXT_PUBLIC_GTM_ID)#231

Merged
drankou merged 1 commit into
mainfrom
add-gtm-tracking
Jul 10, 2026
Merged

feat: add Google Tag Manager (NEXT_PUBLIC_GTM_ID)#231
drankou merged 1 commit into
mainfrom
add-gtm-tracking

Conversation

@drankou

@drankou drankou commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Adds Google Tag Manager to the demo app, loaded via @next/third-parties/google and gated on NEXT_PUBLIC_GTM_ID so it only loads when the container ID is set (no-op locally / in forks).

Deploy step: set NEXT_PUBLIC_GTM_ID=<shared GTM container id> in the Vercel project env, then redeploy. Coexists with the existing Vercel Analytics + PostHog.

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
fragments Ready Ready Preview, Comment Jul 10, 2026 8:56am

Request Review

@drankou drankou merged commit 0e997d1 into main Jul 10, 2026
9 checks passed
@drankou drankou deleted the add-gtm-tracking branch July 10, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants