diff --git a/nuxt.config.ts b/nuxt.config.ts index 8d3a1e07..b0017257 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -74,6 +74,25 @@ export default defineNuxtConfig({ } : {}, + process.env.NODE_ENV === 'production' + ? { + src: 'https://www.googletagmanager.com/gtag/js?id=G-3R6P1XE0H0', + async: true, + } + : {}, + + process.env.NODE_ENV === 'production' + ? { + innerHTML: `window.dataLayer = window.dataLayer || []; + function gtag() { + dataLayer.push(arguments); + } + gtag('js', new Date()); + gtag('config', 'G-3R6P1XE0H0');`, + type: 'text/javascript', + } + : {}, + process.env.NODE_ENV === 'production' ? { innerHTML: ` diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index 8b137891..00000000 --- a/public/robots.txt +++ /dev/null @@ -1 +0,0 @@ -