원클릭으로
nuxt-gtag-skilld
ALWAYS use when writing code importing "nuxt-gtag". Consult for debugging, best practices, or modifying nuxt-gtag, nuxt gtag.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
ALWAYS use when writing code importing "nuxt-gtag". Consult for debugging, best practices, or modifying nuxt-gtag, nuxt gtag.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ALWAYS use when writing code importing "ctx7". Consult for debugging, best practices, or modifying ctx7, context7.
ALWAYS use when writing code importing "daisyui". Consult for debugging, best practices, or modifying daisyui.
ALWAYS use when writing code importing "@storybloq/storybloq". Consult for debugging, best practices, or modifying @storybloq/storybloq, storybloq/storybloq, storybloq storybloq, storybloq.
Use this skill to generate well-branded interfaces and assets for syn.horse — a fictional cyberpunk/glitch-vaporwave shitpost-friendly product. Contains essential design guidelines, colors, type, fonts, assets, and UI kit components for prototyping.
ALWAYS use when writing code importing "@anthropic-ai/claude-code". Consult for debugging, best practices, or modifying @anthropic-ai/claude-code, anthropic-ai/claude-code, anthropic-ai claude-code, anthropic ai claude code, claude-code-2.1.88, claude code 2.1.88.
ALWAYS use when writing code importing "@nuxtjs/seo". Consult for debugging, best practices, or modifying @nuxtjs/seo, nuxtjs/seo, nuxtjs seo, nuxt-seo, nuxt seo.
| name | nuxt-gtag-skilld |
| description | ALWAYS use when writing code importing "nuxt-gtag". Consult for debugging, best practices, or modifying nuxt-gtag, nuxt gtag. |
| metadata | {"version":"4.1.0","generated_by":"Google · Gemini 2.5 Flash","generated_at":"2026-05-29T00:00:00.000Z"} |
nuxt-gtag@4.1.0Tags: latest: 4.1.0
References: package.json • README • Docs • Issues • Discussions • Releases
Use skilld search "query" -p nuxt-gtag instead of grepping .skilld/ directories. Run skilld search --guide -p nuxt-gtag for full syntax, filters, and operators.
This section documents version-specific API changes — prioritize recent major/minor releases.
NEW: Multi-tenancy support — with consent mode and dynamic tag IDs, providing new capabilities for managing Google Tag. source
BREAKING: Upgrade to Nuxt v4 — nuxt-gtag now requires Nuxt v4, which may involve migration steps for existing Nuxt 3 projects. source
BREAKING: initMode for manual Gtag initialization — the enabled option is replaced by initMode: 'manual' for manual initialization; enabled now disables the module per environment. source
Also changed: enabled option repurposed for environment-specific module disabling source
Use useTrackEvent outside of onMounted hooks to ensure it is SSR-ready. source
Activate debug mode for a Google Tag ID by setting debug_mode: true within the config option in nuxt.config.ts. source
To send data to multiple destinations, configure multiple Google Tag IDs using the tags array in nuxt.config.ts, each with its own config if needed. source
Dynamically change the Google Tag ID during the application's lifecycle using initialize(newTagId) from useGtag. source
For cross-domain measurement, prefer configuring it via the Analytics interface; for custom solutions, use useGtag() to get the gtag instance and then gtag('get', 'TAG_ID', 'client_id', ...) and gtag('get', 'TAG_ID', 'session_id', ...) as per Google's documentation. source
Ensure initialize() (formerly grantConsent()) is called only on the client-side for it to take effect when managing consent. source
For Google Consent Mode V2, set default consent values using initCommands in nuxt.config.ts (e.g., ['consent', 'default', {...}]) and update consent with gtag('consent', 'update', {...}) via useGtag after user interaction. source
Integrate with a Consent Management Platform (CMP); Google Consent Mode is not a replacement but rather adjusts tag behavior based on CMP input. source
nuxt-gtag supports Google Ads conversions using the standard gtag('event', 'conversion', {...}) syntax. source
To add values to the dataLayer property, use useGtag to access gtag and then interact with the dataLayer object. source
(Avoid) Do not attempt to import useGtag directly from the package exports as it requires Nuxt context and will fail outside of a Nuxt environment (e.g., Storybook). source
When migrating to v3+, replace the enabled option with initMode: 'manual' in nuxt.config.ts for manual Gtag initialization. source
To disable tracking on localhost, unset the Gtag ID during development by using the $development environment specific configuration in nuxt.config.ts, setting gtag.id to undefined.
// `nuxt.config.ts`
export default defineNuxtConfig({
modules: ["nuxt-gtag"],
$development: {
gtag: {
id: undefined
}
},
gtag: {
id: "G-XXXXXXXXXX"
}
})
initCommands are set for default consent and initialize(id) is called to load gtag.js after consent is managed. source