johannschopplich/nuxt-gtag (nuxt-gtag)
### [`v3.0.1`](https://redirect.github.com/johannschopplich/nuxt-gtag/releases/tag/v3.0.1)
[Compare Source](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v3.0.0...v3.0.1)
##### 🚀 Features
- Mock composables when module is disabled - by [@johannschopplich](https://redirect.github.com/johannschopplich) in [https://github.com/johannschopplich/nuxt-gtag/issues/90](https://redirect.github.com/johannschopplich/nuxt-gtag/issues/90) [(a1f3a)](https://redirect.github.com/johannschopplich/nuxt-gtag/commit/a1f3a58)
##### [View changes on GitHub](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v3.0.0...v3.0.1)
### [`v3.0.0`](https://redirect.github.com/johannschopplich/nuxt-gtag/releases/tag/v3.0.0)
[Compare Source](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v2.1.0...v3.0.0)
##### 🚨 Breaking Changes
- `initMode` for manual Gtag initialization - by [@johannschopplich](https://redirect.github.com/johannschopplich) [(f9080)](https://redirect.github.com/johannschopplich/nuxt-gtag/commit/f908010)
##### ℹ️ Migration
In v2.x and earlier, the `enabled` option was used to control manual initialization of the Google tag script. This option has been replaced with `initMode` in v3.x. To migrate your configuration, set the `initMode` option to `manual`:
```diff
export default defineNuxtConfig({
modules: ['nuxt-gtag'],
gtag: {
- enabled: false,
+ initMode: 'manual',
id: 'GX-XXXXXXXXXX'
}
})
```
The `enabled` option is still available in v3.x, but is now used to disable the Google tag module for the current environment. This is useful if you want to disable the module in development or staging environments:
```ts
export default defineNuxtConfig({
modules: ['nuxt-gtag'],
gtag: {
enabled: process.env.NODE_ENV === 'production',
id: 'G-XXXXXXXXXX'
}
})
```
##### [View changes on GitHub](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v2.1.0...v3.0.0)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
^2.0.6
->^3.0.0
Release Notes
johannschopplich/nuxt-gtag (nuxt-gtag)
### [`v3.0.1`](https://redirect.github.com/johannschopplich/nuxt-gtag/releases/tag/v3.0.1) [Compare Source](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v3.0.0...v3.0.1) ##### 🚀 Features - Mock composables when module is disabled - by [@johannschopplich](https://redirect.github.com/johannschopplich) in [https://github.com/johannschopplich/nuxt-gtag/issues/90](https://redirect.github.com/johannschopplich/nuxt-gtag/issues/90) [(a1f3a)](https://redirect.github.com/johannschopplich/nuxt-gtag/commit/a1f3a58) ##### [View changes on GitHub](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v3.0.0...v3.0.1) ### [`v3.0.0`](https://redirect.github.com/johannschopplich/nuxt-gtag/releases/tag/v3.0.0) [Compare Source](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v2.1.0...v3.0.0) ##### 🚨 Breaking Changes - `initMode` for manual Gtag initialization - by [@johannschopplich](https://redirect.github.com/johannschopplich) [(f9080)](https://redirect.github.com/johannschopplich/nuxt-gtag/commit/f908010) ##### ℹ️ Migration In v2.x and earlier, the `enabled` option was used to control manual initialization of the Google tag script. This option has been replaced with `initMode` in v3.x. To migrate your configuration, set the `initMode` option to `manual`: ```diff export default defineNuxtConfig({ modules: ['nuxt-gtag'], gtag: { - enabled: false, + initMode: 'manual', id: 'GX-XXXXXXXXXX' } }) ``` The `enabled` option is still available in v3.x, but is now used to disable the Google tag module for the current environment. This is useful if you want to disable the module in development or staging environments: ```ts export default defineNuxtConfig({ modules: ['nuxt-gtag'], gtag: { enabled: process.env.NODE_ENV === 'production', id: 'G-XXXXXXXXXX' } }) ``` ##### [View changes on GitHub](https://redirect.github.com/johannschopplich/nuxt-gtag/compare/v2.1.0...v3.0.0)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.