Skip to content

fix(gtm): extend gtm config to set default consent mode on init - #544

Merged
harlan-zw merged 1 commit into
nuxt:mainfrom
mmeester:feature/gtm-consent-nuxt-config
Jan 20, 2026
Merged

fix(gtm): extend gtm config to set default consent mode on init#544
harlan-zw merged 1 commit into
nuxt:mainfrom
mmeester:feature/gtm-consent-nuxt-config

Conversation

@mmeester

Copy link
Copy Markdown
Contributor

Have the ability to set the default consent mode directly when initializing through nuxt.config.ts

🔗 Linked issue

fix#522

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

Have the ability to set the default consent mode directly when initializing through nuxt.config.ts
fixnuxt#522
@vercel

vercelBot commented Oct 22, 2025

Copy link
Copy Markdown
Contributor

@mmeester is attempting to deploy a commit to the Nuxt Team on Vercel.

A member of the Team first needs to authorize it.

@pkg-pr-new

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/nuxt/scripts/@nuxt/scripts@544

commit: 554321e

@harlan-zw
harlan-zw merged commit 9efc16f into nuxt:mainJan 20, 2026
4 of 6 checks passed
@mmeester
mmeester deleted the feature/gtm-consent-nuxt-config branch January 20, 2026 07:59
@harlan-zwharlan-zw mentioned this pull request Jan 23, 2026
zizzfizzix pushed a commit to zizzfizzix/nuxt-scripts that referenced this pull request Mar 5, 2026
Sign up for freeto 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.

useScriptGoogleTagManager onBeforeGtmStart callback not triggered when GTM ID is set via nuxt.config

2 participants

@mmeester@harlan-zw