Add gtag
parent
ee4ae5b381
commit
34887e3215
|
@ -3,6 +3,7 @@ const baseUrl = '/';
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
typescript: false,
|
typescript: false,
|
||||||
|
modules: ['nuxt-gtag'],
|
||||||
components: [
|
components: [
|
||||||
'~/components',
|
'~/components',
|
||||||
{
|
{
|
||||||
|
@ -44,10 +45,6 @@ export default defineNuxtConfig({
|
||||||
{ rel: 'icon', href: baseUrl + 'favicon.ico' }
|
{ rel: 'icon', href: baseUrl + 'favicon.ico' }
|
||||||
],
|
],
|
||||||
script: [
|
script: [
|
||||||
{
|
|
||||||
strategy: 'lazyOnload',
|
|
||||||
src: 'https://www.googletagmanager.com/gtag/js?id=UA-93461466-1'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
src: baseUrl + 'scripts/prism.js',
|
src: baseUrl + 'scripts/prism.js',
|
||||||
'data-manual': true
|
'data-manual': true
|
||||||
|
@ -60,5 +57,8 @@ export default defineNuxtConfig({
|
||||||
contextPath: baseUrl
|
contextPath: baseUrl
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
gtag: {
|
||||||
|
id: 'G-48TTQ6G6KV'
|
||||||
|
},
|
||||||
css: ['/node_modules/primeflex/primeflex.css', '/node_modules/primeicons/primeicons.css', '@/assets/styles/flags.css']
|
css: ['/node_modules/primeflex/primeflex.css', '/node_modules/primeicons/primeicons.css', '@/assets/styles/flags.css']
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -47,9 +47,9 @@
|
||||||
"@babel/preset-env": "^7.21.5",
|
"@babel/preset-env": "^7.21.5",
|
||||||
"@rollup/plugin-babel": "^6.0.3",
|
"@rollup/plugin-babel": "^6.0.3",
|
||||||
"@stackblitz/sdk": "^1.8.2",
|
"@stackblitz/sdk": "^1.8.2",
|
||||||
|
"@vitejs/plugin-vue": "4.1.0",
|
||||||
"@vitest/coverage-istanbul": "^0.29.8",
|
"@vitest/coverage-istanbul": "^0.29.8",
|
||||||
"@vue/test-utils": "^2.0.0",
|
"@vue/test-utils": "^2.0.0",
|
||||||
"@vitejs/plugin-vue": "4.1.0",
|
|
||||||
"chart.js": "3.3.2",
|
"chart.js": "3.3.2",
|
||||||
"eslint": "^8.30.0",
|
"eslint": "^8.30.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
|
@ -79,6 +79,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@docsearch/js": "^3.3.3",
|
"@docsearch/js": "^3.3.3",
|
||||||
|
"nuxt-gtag": "^0.6.2",
|
||||||
"vee-validate": "^4.8.2"
|
"vee-validate": "^4.8.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue