diff --git a/nuxt.config.js b/nuxt.config.js index 9a470d7d9..c62964f60 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -40,6 +40,23 @@ export default defineNuxtConfig({ href: baseUrl + 'themes/lara-light-blue/theme.css' }, { 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'); + ` + } ] } },