added ga-analytics
parent
c671256f90
commit
6b12621dd8
|
@ -40,6 +40,23 @@ export default defineNuxtConfig({
|
||||||
href: baseUrl + 'themes/lara-light-blue/theme.css'
|
href: baseUrl + 'themes/lara-light-blue/theme.css'
|
||||||
},
|
},
|
||||||
{ rel: 'icon', href: baseUrl + 'favicon.ico' }
|
{ rel: 'icon', href: baseUrl + 'favicon.ico' }
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
{
|
||||||
|
strategy: 'lazyOnload',
|
||||||
|
src: 'https://www.googletagmanager.com/gtag/js?id=UA-93461466-1'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'ga-analytics',
|
||||||
|
strategy: 'lazyOnload',
|
||||||
|
children: `
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', 'UA-93461466-1');
|
||||||
|
`
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue