Comparing version 0.3.0 to 0.4.0
@@ -19,2 +19,12 @@ import * as _nuxt_schema from '@nuxt/schema'; | ||
config?: Record<string, any>; | ||
/** | ||
* Whether to load the Google Analytics 4 script asynchronously or defer its loading | ||
* | ||
* @remarks | ||
* If set to `async`, the script will be loaded asynchronously. | ||
* If set to `defer`, the script will be loaded with the `defer` attribute. | ||
* | ||
* @default 'defer' | ||
*/ | ||
loadingStrategy?: 'async' | 'defer'; | ||
} | ||
@@ -21,0 +31,0 @@ declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>; |
{ | ||
"name": "nuxt-gtag", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"configKey": "gtag", | ||
@@ -5,0 +5,0 @@ "compatibility": { |
{ | ||
"name": "nuxt-gtag", | ||
"type": "module", | ||
"version": "0.3.0", | ||
"packageManager": "pnpm@7.30.0", | ||
"version": "0.4.0", | ||
"packageManager": "pnpm@8.1.0", | ||
"description": "Nuxt 3 module to natively integrate Google Analytics", | ||
@@ -47,3 +47,3 @@ "author": "Johann Schopplich <pkg@johannschopplich.com>", | ||
"dependencies": { | ||
"@nuxt/kit": "^3.3.1", | ||
"@nuxt/kit": "^3.3.3", | ||
"defu": "^6.1.2", | ||
@@ -53,13 +53,13 @@ "pathe": "^1.1.0" | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.37.0", | ||
"@antfu/eslint-config": "^0.38.3", | ||
"@nuxt/module-builder": "^0.2.1", | ||
"@nuxt/schema": "^3.3.1", | ||
"@types/node": "^18.15.5", | ||
"bumpp": "^9.0.0", | ||
"eslint": "^8.36.0", | ||
"nuxt": "^3.3.1", | ||
"@nuxt/schema": "^3.3.3", | ||
"@types/node": "^18.15.11", | ||
"bumpp": "^9.1.0", | ||
"eslint": "^8.37.0", | ||
"nuxt": "^3.3.3", | ||
"nuxt-gtag": "workspace:*", | ||
"typescript": "^5.0.2", | ||
"typescript": "^5.0.3", | ||
"vue-tsc": "^1.2.0" | ||
} | ||
} |
@@ -75,6 +75,7 @@ ![Nuxt Gtag module](./.github/og.png) | ||
| Option | Type | Description | Default | | ||
| Option | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| `id` | `string` | The Google Analytics measurement ID. | `undefined` | | ||
| `config` | `Record<string, any>` | The [configuration parameters](https://developers.google.com/analytics/devguides/collection/ga4/reference/config) to be passed to `gtag.js` on initialization. | `{}` | | ||
| `id` | `string` | `undefined` | The Google Analytics measurement ID. | | ||
| `config` | `Record<string, any>` | `{}` | The [configuration parameters](https://developers.google.com/analytics/devguides/collection/ga4/reference/config) to be passed to `gtag.js` on initialization. | | ||
| `loadingStrategy` | `'async' \| 'defer'` | `'defer'` | The loading strategy to be used for the `gtag.js` script. | | ||
@@ -81,0 +82,0 @@ ## Composables |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12009
132
171
Updated@nuxt/kit@^3.3.3