Skip to content

Commit

Permalink
feat: custom source URL (closes #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Feb 9, 2024
1 parent 61d506d commit 2c4075c
Show file tree
Hide file tree
Showing 6 changed files with 546 additions and 484 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ function acceptTracking() {
| `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. |
| `initialConsent` | `boolean` | `true` | Whether to initially consent to tracking. |
| `loadingStrategy` | `'async' \| 'defer'` | `'defer'` | The loading strategy to be used for the `gtag.js` script. |
| `url` | `string` | `'https://www.googletagmanager.com/gtag/js'` | The URL to the `gtag.js` script. Use this option to load the script from a custom URL. |

## Composables

Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,19 @@
"release": "bumpp --commit --push --tag"
},
"dependencies": {
"@nuxt/kit": "^3.10.0",
"@nuxt/kit": "^3.10.1",
"defu": "^6.1.4",
"pathe": "^1.1.2"
"pathe": "^1.1.2",
"ufo": "^1.4.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@antfu/eslint-config": "^2.6.4",
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.10.0",
"@types/node": "^20.11.16",
"@nuxt/schema": "^3.10.1",
"@types/node": "^20.11.17",
"bumpp": "^9.3.0",
"eslint": "^8.56.0",
"nuxt": "^3.10.0",
"nuxt": "^3.10.1",
"nuxt-gtag": "workspace:*",
"typescript": "^5.3.3",
"vue-tsc": "^1.8.27"
Expand Down

0 comments on commit 2c4075c

Please sign in to comment.